public interface AttributeMap
Attribute
s which can be accessed via AttributeKey
.
Implementations must be Thread-safe.限定符和类型 | 方法和说明 |
---|---|
<T> Attribute<T> |
attr(AttributeKey<T> key)
Get the
Attribute for the given AttributeKey . |
<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.