T - the type of the attributepublic interface AttributeMatchingStrategy<T>
Attribute
 is matched during dependency resolution. In particular, it will tell if a value, provided by a consumer,
 is compatible with a value provided by a candidate.| Modifier and Type | Method | Description | 
|---|---|---|
| CompatibilityRuleChain<T> | getCompatibilityRules() | |
| DisambiguationRuleChain<T> | getDisambiguationRules() | |
| void | ordered(boolean pickLast,
       Comparator<T> comparator) | A short-hand way to define both a compatibility rule and
 a disambiguation rule based on an order defined by the provided
  Comparator. | 
| void | ordered(Comparator<T> comparator) | A short-hand way to define both a compatibility rule and
 a disambiguation rule based on an order defined by the provided
  Comparator. | 
CompatibilityRuleChain<T> getCompatibilityRules()
DisambiguationRuleChain<T> getDisambiguationRules()
void ordered(Comparator<T> comparator)
A short-hand way to define both a compatibility rule and
 a disambiguation rule based on an order defined by the provided
 Comparator.
All provider values which are lower than or equal the consumer value are compatible. When disambiguating, it will pick the highest compatible value.
comparator - the comparator to use for compatibility and disambiguationvoid ordered(boolean pickLast,
             Comparator<T> comparator)
A short-hand way to define both a compatibility rule and
 a disambiguation rule based on an order defined by the provided
 Comparator.
All provider values which are lower than or equal the consumer value are compatible.
pickLast - tells if, for disambiguation, we should pick the last value in order instead of the first onecomparator - the comparator to use for compatibility and disambiguation