public interface AttributeMap
Attribute
s which can be accessed via AttributeKey
.
Implementations must be Thread-safe.Modifier and Type | Method and Description |
---|---|
<T> Attribute<T> |
attr(AttributeKey<T> key)
Get the
Attribute for the given AttributeKey . |
<T> boolean |
hasAttr(AttributeKey<T> key)
Returns true if and only if the given
Attribute exists in this AttributeMap . |
<T> Attribute<T> attr(AttributeKey<T> key)
Attribute
for the given AttributeKey
. This method will never return null, but may return
an Attribute
which does not have a value set yet.<T> boolean hasAttr(AttributeKey<T> key)
Attribute
exists in this AttributeMap
.Copyright © 2008–2019 The Netty Project. All rights reserved.