Package org.int4.dirk.core.definition
Class QualifiedType
- java.lang.Object
-
- org.int4.dirk.core.definition.QualifiedType
-
public final class QualifiedType extends java.lang.ObjectRepresents a fully resolvedTypewith a set of qualifierAnnotations.
-
-
Constructor Summary
Constructors Constructor Description QualifiedType(java.lang.reflect.Type type)Constructs a new instance.QualifiedType(java.lang.reflect.Type type, java.util.Collection<java.lang.annotation.Annotation> qualifiers)Constructs a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.util.Set<java.lang.annotation.Annotation>getQualifiers()Returns an immutable set of qualifierAnnotations.java.lang.reflect.TypegetType()Returns theType.inthashCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
QualifiedType
public QualifiedType(java.lang.reflect.Type type, java.util.Collection<java.lang.annotation.Annotation> qualifiers) throws BadQualifiedTypeExceptionConstructs a new instance.- Parameters:
type- aType, cannot benullqualifiers- a collection of qualifierAnnotations, cannot benullor containnulls but can be empty- Throws:
BadQualifiedTypeException- when the given type or qualifiers are not suitable for injection
-
QualifiedType
public QualifiedType(java.lang.reflect.Type type) throws BadQualifiedTypeExceptionConstructs a new instance.- Parameters:
type- aType, cannot benull- Throws:
BadQualifiedTypeException- when the given type or qualifiers are not suitable for injection
-
-
Method Detail
-
getType
public java.lang.reflect.Type getType()
Returns theType. The type is always fully resolved (no type variables) and nevervoid.- Returns:
- the
Type, nevernull
-
getQualifiers
public java.util.Set<java.lang.annotation.Annotation> getQualifiers()
Returns an immutable set of qualifierAnnotations.- Returns:
- an immutable set of qualifier
Annotations, nevernulland never containsnulls but can be empty
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-