T - The qualifier typepublic interface Qualifier<T>
Used to qualify which bean to select in the case of multiple possible options.
NOTE: When implementing a custom Qualifier you MUST implement Object.hashCode() and
 Object.equals(Object) so that the qualifier can be used in comparisons and equality checks
| Modifier and Type | Field and Description | 
|---|---|
static String | 
PRIMARY
The name of the primary annotation class. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
default boolean | 
contains(Qualifier<T> qualifier)
Whether this qualifier contains the given qualifier. 
 | 
default <BT extends BeanType<T>> | 
qualify(Class<T> beanType,
       Stream<BT> candidates)
Qualify the candidate from the stream of candidates. 
 | 
<BT extends BeanType<T>> | 
reduce(Class<T> beanType,
      Stream<BT> candidates)  | 
static final String PRIMARY
<BT extends BeanType<T>> Stream<BT> reduce(Class<T> beanType, Stream<BT> candidates)
BT - The bean type subclassbeanType - The bean typecandidates - The candidatesdefault boolean contains(Qualifier<T> qualifier)
qualifier - The qualifierdefault <BT extends BeanType<T>> Optional<BT> qualify(Class<T> beanType, Stream<BT> candidates)
BT - The bean type subclassbeanType - The bean typecandidates - The candidatesOptional.empty()