- All Implemented Interfaces:
Validator<Integer>
Implementation of validator for distance field. (Route)
- Since:
- 1.0
-
Constructor Summary
Constructors
-
Method Summary
boolean
Checks if value greater than 1
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
DistanceValidator
public DistanceValidator()
-
Method Details
-
validate
public boolean validate(Integer value)
Checks if value greater than 1
- Specified by:
validate
in interface Validator<Integer>
- Parameters:
value
- distance to validate
- Returns:
- true/false -- matches the restrictions
- See Also:
-