Package collectionManagers.validators
Interface Validator<T>
- Type Parameters:
T
- Type of validation value.
- All Known Implementing Classes:
AreaValidator
,CityValidator
,CoordinateXValidator
,CoordinateYValidator
,MetersAboveSeaLevelValidator
,NameValidator
,PopulationValidator
public interface Validator<T>
Base validator. You should implement it for usage.
- Since:
- 2.0
-
Field Summary
Fields -
Method Summary
-
Field Details
-
canBeNull
static final boolean canBeNull- See Also:
-
-
Method Details
-
validate
Provides validation method.- Parameters:
value
- value to validate- Returns:
- true if value is validate. Otherwise false.
-
getDescr
String getDescr()Provides description for all validators.- Returns:
- String description of validator
-