Interface AnnotationBuilder.MemberExtractor<A extends Annotation,​X>

  • Type Parameters:
    A - annotation type to mark member on
    X - annotation member type
    All Superinterfaces:
    FunctionalReference, Serializable
    Enclosing class:
    AnnotationBuilder<A extends Annotation>
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public static interface AnnotationBuilder.MemberExtractor<A extends Annotation,​X>
    extends FunctionalReference
    Functional reference interface which allows type-safe and refactor-safe extraction of members.

    This interface should only be implemented with method reference for a method that is a member of an annotation. The method is never actually called in this class.

    • Method Detail

      • extract

        @CanIgnoreReturnValue
        X extract​(A annotation)