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 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.