T
- the type of the Attribute
which can be accessed via this AttributeKey
.public final class AttributeKey<T> extends AbstractConstant<AttributeKey<T>>
Attribute
out of the AttributeMap
. Be aware that it is not be
possible to have multiple keys with the same name.Modifier and Type | Method and Description |
---|---|
static boolean |
exists(String name)
|
static <T> AttributeKey<T> |
newInstance(String name)
Creates a new
AttributeKey for the given or fail with an
IllegalArgumentException if a AttributeKey for the given exists. |
static <T> AttributeKey<T> |
valueOf(Class<?> firstNameComponent,
String secondNameComponent) |
static <T> AttributeKey<T> |
valueOf(String name)
Returns the singleton instance of the
AttributeKey which has the specified name . |
public static <T> AttributeKey<T> valueOf(String name)
AttributeKey
which has the specified name
.public static boolean exists(String name)
public static <T> AttributeKey<T> newInstance(String name)
AttributeKey
for the given or fail with an
IllegalArgumentException
if a AttributeKey
for the given exists.public static <T> AttributeKey<T> valueOf(Class<?> firstNameComponent, String secondNameComponent)
Copyright © 2008–2015 The Netty Project. All rights reserved.