Interface Constraint.Factory<A extends Annotation,​V>

  • Type Parameters:
    A - annotation type
    V - data type
    Enclosing interface:
    Constraint<V>

    public static interface Constraint.Factory<A extends Annotation,​V>
    Provider for a specific constraint given a field type.
    Since:
    4.0.0
    • Method Detail

      • make

        Constraint<Vmake​(A data,
                           Type type)
        Create a new specialized constraint.
        Parameters:
        data - annotation with metadata
        type - annotated type. is a subtype of V
        Returns:
        new constraint
        Since:
        4.0.0