Package io.netty.util
Class AttributeKey<T>
- Type Parameters:
T
- the type of theAttribute
which 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.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
static <T> AttributeKey
<T> newInstance
(String name) Creates a newAttributeKey
for the givenname
or fail with anIllegalArgumentException
if aAttributeKey
for the givenname
exists.static <T> AttributeKey
<T> static <T> AttributeKey
<T> Returns the singleton instance of theAttributeKey
which has the specifiedname
.
-
Field Details
-
pool
-
-
Constructor Details
-
AttributeKey
-
-
Method Details
-
valueOf
Returns the singleton instance of theAttributeKey
which has the specifiedname
. -
exists
-
newInstance
Creates a newAttributeKey
for the givenname
or fail with anIllegalArgumentException
if aAttributeKey
for the givenname
exists. -
valueOf
-