Class AttributeKey<T>
java.lang.Object
- Type Parameters:
T- the type of theAttributewhich can be accessed via thisAttributeKey.
- All Implemented Interfaces:
Constant<AttributeKey<T>>, java.lang.Comparable<AttributeKey<T>>
Key which can be used to access
Attribute out of the AttributeMap. Be aware that it is not be
possible to have multiple keys with the same name.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final ConstantPool<AttributeKey<java.lang.Object>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanexists(java.lang.String name) static <T> AttributeKey<T> newInstance(java.lang.String name) Creates a newAttributeKeyfor the givennameor fail with anIllegalArgumentExceptionif aAttributeKeyfor the givennameexists.static <T> AttributeKey<T> valueOf(java.lang.Class<?> firstNameComponent, java.lang.String secondNameComponent) static <T> AttributeKey<T> valueOf(java.lang.String name) Returns the singleton instance of theAttributeKeywhich has the specifiedname.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
pool
-
-
Constructor Details
-
AttributeKey
private AttributeKey(int id, java.lang.String name)
-
-
Method Details
-
valueOf
Returns the singleton instance of theAttributeKeywhich has the specifiedname. -
exists
public static boolean exists(java.lang.String name) -
newInstance
Creates a newAttributeKeyfor the givennameor fail with anIllegalArgumentExceptionif aAttributeKeyfor the givennameexists. -
valueOf
public static <T> AttributeKey<T> valueOf(java.lang.Class<?> firstNameComponent, java.lang.String secondNameComponent)
-