Package | Description |
---|---|
io.netty.util |
Utility classes used across multiple packages.
|
Modifier and Type | Method and Description |
---|---|
AttributeKey<T> |
Attribute.key()
Returns the key of this attribute.
|
static <T> AttributeKey<T> |
AttributeKey.newInstance(String name)
Creates a new
AttributeKey for the given name or fail with an
IllegalArgumentException if a AttributeKey for the given name exists. |
static <T> AttributeKey<T> |
AttributeKey.valueOf(Class<?> firstNameComponent,
String secondNameComponent) |
static <T> AttributeKey<T> |
AttributeKey.valueOf(String name)
Returns the singleton instance of the
AttributeKey which has the specified name . |
Modifier and Type | Method and Description |
---|---|
<T> Attribute<T> |
AttributeMap.attr(AttributeKey<T> key)
Get the
Attribute for the given AttributeKey . |
<T> Attribute<T> |
DefaultAttributeMap.attr(AttributeKey<T> key) |
<T> boolean |
AttributeMap.hasAttr(AttributeKey<T> key)
Returns true if and only if the given
Attribute exists in this AttributeMap . |
<T> boolean |
DefaultAttributeMap.hasAttr(AttributeKey<T> key) |
Copyright © 2008–2019 The Netty Project. All rights reserved.