Interface Validator<T>

Type Parameters:
T - T - the type of the objects to validate
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface Validator<T>
Validator interface, used to validate objects
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Validate an object
  • Method Details

    • validate

      void validate(T t) throws InvalidInput
      Validate an object
      Parameters:
      t - - the object to be validated
      Throws:
      InvalidInput - if the object is invalid