T
- The type@Internal public class TypeArgumentQualifier<T> extends Object implements Qualifier<T>
Qualifier
that qualifies beans by generic type arguments.Modifier and Type | Method and Description |
---|---|
static boolean |
areTypesCompatible(Class[] typeArguments,
List<Class> classes)
Are the given types compatible.
|
protected boolean |
areTypesCompatible(List<Class> classes) |
boolean |
equals(Object o) |
Class[] |
getTypeArguments() |
protected <BT extends BeanType<T>> |
getTypeArguments(Class<T> beanType,
BT candidate) |
int |
hashCode() |
<BT extends BeanType<T>> |
reduce(Class<T> beanType,
Stream<BT> candidates) |
String |
toString() |
public Class[] getTypeArguments()
protected boolean areTypesCompatible(List<Class> classes)
classes
- An array of classesprotected <BT extends BeanType<T>> List<Class> getTypeArguments(Class<T> beanType, BT candidate)
BT
- The bean type subclassbeanType
- The bean typecandidate
- The candidatepublic static boolean areTypesCompatible(Class[] typeArguments, List<Class> classes)
typeArguments
- The type argumentsclasses
- The classes to check for alignments