Package io.netty.util
Interface AttributeMap
-
- All Known Implementing Classes:
DefaultAttributeMap
public interface AttributeMap
HoldsAttribute
s which can be accessed viaAttributeKey
. Implementations must be Thread-safe.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> Attribute<T>
attr(AttributeKey<T> key)
Get theAttribute
for the givenAttributeKey
.<T> boolean
hasAttr(AttributeKey<T> key)
-
-
-
Method Detail
-
attr
<T> Attribute<T> attr(AttributeKey<T> key)
Get theAttribute
for the givenAttributeKey
. This method will never return null, but may return anAttribute
which does not have a value set yet.
-
hasAttr
<T> boolean hasAttr(AttributeKey<T> key)
-
-