Class FieldData<I,​O>

  • Type Parameters:
    I - intermediate type
    O - container type

    public abstract class FieldData<I,​O>
    extends Object
    Holder for field-specific information.
    Since:
    4.0.0
    • Method Detail

      • name

        public abstract String name()
        The name of the field.
        Returns:
        field name
        Since:
        4.0.0
      • resolvedType

        public abstract AnnotatedType resolvedType()
        The calculated type of this field within the object type.

        This value has had any possible type parameters resolved using information available in the context.

        Returns:
        the resolved type
        Since:
        4.0.0
      • isValid

        public boolean isValid​(Object instance)
        Test if an object would be valid for this field.
        Parameters:
        instance - instance to validate
        Returns:
        true if valid
        Since:
        4.0.0