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