Class AlwaysValid<T>

  • Type Parameters:
    T - the type of object to validate
    All Implemented Interfaces:
    Validator<T>

    public class AlwaysValid<T>
    extends Object
    implements Validator<T>
    An AlwaysValid is an Validator in which it always returns true.
    • Constructor Detail

      • AlwaysValid

        public AlwaysValid()
    • Method Detail

      • validate

        public boolean validate​(T obj)
        Description copied from interface: Validator
        Validates the given object.
        Specified by:
        validate in interface Validator<T>
        Parameters:
        obj - an object of type T to validate.
        Returns:
        true if the provided object is valid.