Interface ValidatorInfo<T>


public interface ValidatorInfo<T>
Interface to retrieve information about a validator used on a config element
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T> ValidatorInfo<T>
     
    boolean
    isValid(Object value)
    Gets whether this object matches the validators type and is not corrected by the validator.
    Gets the annotation class used.
    Gets the annotation used.
    default <A> A
    value(Class<A> cls)
    Gets the annotation used, if it matches the given annotation class or null if not.
  • Method Details

    • type

      @Nullable Class<T> type()
      Gets the annotation class used. This is the class of the annotation, not of the Proxy that implements it at runtime.
    • value

      @Nullable T value()
      Gets the annotation used.
    • value

      @Nullable default <A> A value(Class<A> cls)
      Gets the annotation used, if it matches the given annotation class or null if not.
    • isValid

      boolean isValid(Object value)
      Gets whether this object matches the validators type and is not corrected by the validator.
    • empty

      static <T> ValidatorInfo<T> empty()