Class Validator<T>

  • Type Parameters:
    T - Type of object to be validated. For generic validation (where object's class is determined in validate(Object), use Object.
    All Implemented Interfaces:
    com.google.common.base.Predicate<T>, Predicate<T>
    Direct Known Subclasses:
    AllLowerCaseValidator, DnsNameValidator

    public abstract class Validator<T>
    extends Object
    implements com.google.common.base.Predicate<T>
    Abstract class that creates a bridge between Predicate and ParamValidatorss.
    See Also:
    Predicate
    • Constructor Detail

      • Validator

        public Validator()
    • Method Detail

      • apply

        public boolean apply​(@Nullable
                             T t)
        Specified by:
        apply in interface com.google.common.base.Predicate<T>
      • test

        public boolean test​(@Nullable
                            T t)
        Specified by:
        test in interface com.google.common.base.Predicate<T>
        Specified by:
        test in interface Predicate<T>