Interface Validator<T>

Type Parameters:
T - value type
All Superinterfaces:
Consumer<T>
All Known Implementing Classes:
AbstractBeanValidator, AbstractValidator, BeanPropertyValidator, DateTimeRangeValidator, DecimalMaxValidator, DecimalMinValidator, DigitsValidator, DoubleMaxValidator, DoubleMinValidator, EmailValidator, FutureOrPresentValidator, FutureValidator, MaxValidator, MinValidator, NegativeOrZeroValidator, NegativeValidator, NotBlankValidator, NotEmptyValidator, NotNullValidator, PastOrPresentValidator, PastValidator, PositiveOrZeroValidator, PositiveValidator, RegexpValidator, SizeValidator

public interface Validator<T> extends Consumer<T>
Marker interface to indicate that the implementing class can be used as a validator.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(T value)
    Checks a value.

    Methods inherited from interface java.util.function.Consumer

    andThen
  • Method Details

    • accept

      void accept(@Nullable T value)
      Checks a value.
      Specified by:
      accept in interface Consumer<T>
      Parameters:
      value - a value