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