Package io.micronaut.inject.qualifiers
Class TypeArgumentQualifier<T>
java.lang.Object
io.micronaut.inject.qualifiers.TypeArgumentQualifier<T>
- Type Parameters:
T- The type
- All Implemented Interfaces:
Qualifier<T>
- Direct Known Subclasses:
ClosestTypeArgumentQualifier
A
Qualifier that qualifies beans by generic type arguments.- Since:
- 1.0
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanareTypesCompatible(Class<?>[] typeArguments, List<Class<?>> classes) Are the given types compatible.protected booleanareTypesCompatible(List<Class<?>> classes) booleanClass<?>[]getTypeArguments(Class<T> beanType, BT candidate) inthashCode()toString()
-
Method Details
-
reduce
-
getTypeArguments
- Returns:
- The type arguments
-
areTypesCompatible
- Parameters:
classes- An array of classes- Returns:
- Whether the types are compatible
-
getTypeArguments
- Type Parameters:
BT- The bean type subclass- Parameters:
beanType- The bean typecandidate- The candidate- Returns:
- The list of type arguments
-
areTypesCompatible
Are the given types compatible.- Parameters:
typeArguments- The type argumentsclasses- The classes to check for alignments- Returns:
- True if they are
-
equals
-
hashCode
public int hashCode() -
toString
-