A
- the annotation type@FunctionalInterface public interface MergedAnnotationSelector<A extends Annotation>
MergedAnnotation
instances.MergedAnnotationSelectors
Modifier and Type | Method and Description |
---|---|
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.
|
MergedAnnotation<A> |
select(MergedAnnotation<A> existing,
MergedAnnotation<A> candidate)
Select the annotation that should be used.
|
default boolean isBestCandidate(MergedAnnotation<A> annotation)
annotation
- the annotation to checktrue
if the annotation is known to be the best candidateMergedAnnotation<A> select(MergedAnnotation<A> existing, MergedAnnotation<A> candidate)
existing
- an existing annotation returned from an earlier resultcandidate
- a candidate annotation that may be better suitedexisting
or
candidate