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
- Author:
- Graeme Rocher
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
areTypesCompatible
(Class<?>[] typeArguments, List<Class<?>> classes) Are the given types compatible.protected boolean
areTypesCompatible
(List<Class<?>> classes) boolean
Class<?>[]
getTypeArguments
(Class<T> beanType, BT candidate) int
hashCode()
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
-