public static class SynthesizedAnnotationSelector.NearestAndNewestPrioritySelector extends Object implements SynthesizedAnnotationSelector
SynthesizedAnnotationSelector.FarthestAndNewestPrioritySelector, SynthesizedAnnotationSelector.FarthestAndOldestPrioritySelector, SynthesizedAnnotationSelector.NearestAndNewestPrioritySelector, SynthesizedAnnotationSelector.NearestAndOldestPrioritySelector
FARTHEST_AND_NEWEST_PRIORITY, FARTHEST_AND_OLDEST_PRIORITY, NEAREST_AND_NEWEST_PRIORITY, NEAREST_AND_OLDEST_PRIORITY
Constructor and Description |
---|
NearestAndNewestPrioritySelector() |
Modifier and Type | Method and Description |
---|---|
<T extends SynthesizedAnnotation> |
choose(T oldAnnotation,
T newAnnotation)
比较两个被合成的注解,选择其中的一个并返回
|
public <T extends SynthesizedAnnotation> T choose(T oldAnnotation, T newAnnotation)
SynthesizedAnnotationSelector
choose
in interface SynthesizedAnnotationSelector
T
- 复合注解类型oldAnnotation
- 已存在的注解,该参数不允许为空newAnnotation
- 新获取的注解,该参数不允许为空Copyright © 2024. All rights reserved.