T
- The type@Internal public class ClosestTypeArgumentQualifier<T> extends TypeArgumentQualifier<T>
Qualifier
that qualifies beans by generic type arguments and only
returns the candidates that most closely match.Modifier and Type | Method and Description |
---|---|
protected int |
compare(java.util.List<java.lang.Class> classesToCompare) |
<BT extends BeanType<T>> |
reduce(java.lang.Class<T> beanType,
java.util.stream.Stream<BT> candidates) |
areTypesCompatible, areTypesCompatible, equals, getTypeArguments, getTypeArguments, hashCode, toString
public <BT extends BeanType<T>> java.util.stream.Stream<BT> reduce(java.lang.Class<T> beanType, java.util.stream.Stream<BT> candidates)
protected int compare(java.util.List<java.lang.Class> classesToCompare)
classesToCompare
- An array of classes