Interface TypeValidation

All Superinterfaces:
Type
All Known Implementing Classes:
ImmutableTypeValidation

@Immutable public interface TypeValidation extends Type
Validation annotations for a type. This is not a proper type, but just a carrier
  • Method Details

    • of

      static TypeValidation of(Validation validation)
      Creates a new validation carrier type.
      Parameters:
      validation - the validation object
      Returns:
      a dummy type carrying a validation
    • validation

      Validation validation()
      Returns the validation carried by this dummy type.
      Returns:
      the validation carried by this dummy type
    • isValidation

      default boolean isValidation()
      Description copied from interface: Type
      Returns true if this type represents validation information, otherwise false.
      Specified by:
      isValidation in interface Type
      Returns:
      true if this type represents validation information, otherwise false