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