类 MergedAnnotationSelectors.Nearest
java.lang.Object
cn.taketoday.core.annotation.MergedAnnotationSelectors.Nearest
- 所有已实现的接口:
MergedAnnotationSelector<Annotation>
private static class MergedAnnotationSelectors.Nearest
extends Object
implements MergedAnnotationSelector<Annotation>
MergedAnnotationSelector to select the nearest annotation.-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明booleanisBestCandidate(MergedAnnotation<Annotation> annotation) Determine if the existing annotation is known to be the best candidate and any subsequent selections may be skipped.select(MergedAnnotation<Annotation> existing, MergedAnnotation<Annotation> candidate) Select the annotation that should be used.
-
构造器详细资料
-
Nearest
private Nearest()
-
-
方法详细资料
-
isBestCandidate
从接口复制的说明:MergedAnnotationSelectorDetermine if the existing annotation is known to be the best candidate and any subsequent selections may be skipped.- 指定者:
isBestCandidate在接口中MergedAnnotationSelector<Annotation>- 参数:
annotation- the annotation to check- 返回:
trueif the annotation is known to be the best candidate
-
select
public MergedAnnotation<Annotation> select(MergedAnnotation<Annotation> existing, MergedAnnotation<Annotation> candidate) 从接口复制的说明:MergedAnnotationSelectorSelect the annotation that should be used.- 指定者:
select在接口中MergedAnnotationSelector<Annotation>- 参数:
existing- an existing annotation returned from an earlier resultcandidate- a candidate annotation that may be better suited- 返回:
- the most appropriate annotation from the
existingorcandidate
-