Package org.int4.dirk.core.definition
Class Key
- java.lang.Object
-
- org.int4.dirk.core.definition.Key
-
public final class Key extends java.lang.ObjectRepresents aTypewith a set of qualifierAnnotations.
-
-
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
-
Key
public Key(java.lang.reflect.Type type, java.util.Collection<java.lang.annotation.Annotation> qualifiers)Constructs a new instance.- Parameters:
type- aType, cannot benullqualifiers- a collection of qualifierAnnotations, cannot benullor containnulls but can be empty
-
Key
public Key(java.lang.reflect.Type type)
Constructs a new instance.- Parameters:
type- aType, cannot benull
-
-
Method Detail
-
getType
public java.lang.reflect.Type getType()
Returns theType.- 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
-
-