Class AttributeKey<T>
- Type Parameters:
T- the type of theAttributewhich can be accessed via thisAttributeKey.
- All Implemented Interfaces:
Constant<AttributeKey<T>>, 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.-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanstatic <T> AttributeKey<T> newInstance(String name) Creates a newAttributeKeyfor the givennameor fail with anIllegalArgumentExceptionif aAttributeKeyfor the givennameexists.static <T> AttributeKey<T> static <T> AttributeKey<T> Returns the singleton instance of theAttributeKeywhich has the specifiedname.
-
Method Details
-
valueOf
Returns the singleton instance of theAttributeKeywhich has the specifiedname. -
exists
-
newInstance
Creates a newAttributeKeyfor the givennameor fail with anIllegalArgumentExceptionif aAttributeKeyfor the givennameexists. -
valueOf
-