Package com.irurueta.commons.validators
Interface Validator<T>
-
- Type Parameters:
T
- model of data to be validated.
- All Known Implementing Classes:
EmailValidator
,ZipCodeValidator
public interface Validator<T>
Defines all data model validators. All validators implementations of data models should extends this interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isValid(T obj)
Indicates whether data model is valid or not.
-
-
-
Method Detail
-
isValid
boolean isValid(T obj)
Indicates whether data model is valid or not.- Parameters:
obj
- object to be validated.- Returns:
- true if object is valid, false otherwise.
-
-