接口 MergedAnnotationSelector<A extends Annotation>

    • 方法详细资料

      • isBestCandidate

        default boolean isBestCandidate​(MergedAnnotation<A> annotation)
        Determine if the existing annotation is known to be the best candidate and any subsequent selections may be skipped.
        参数:
        annotation - the annotation to check
        返回:
        true if the annotation is known to be the best candidate
      • select

        MergedAnnotation<Aselect​(MergedAnnotation<A> existing,
                                   MergedAnnotation<A> candidate)
        Select the annotation that should be used.
        参数:
        existing - an existing annotation returned from an earlier result
        candidate - a candidate annotation that may be better suited
        返回:
        the most appropriate annotation from the existing or candidate