public class DefaultAttributeMap extends Object implements AttributeMap
AttributeMap implementation which not exibit any blocking behaviour on attribute lookup while using a
copy-on-write approach on the modify path.O(logn) time worst-case
complexity, hence attribute::set(null) is to be preferred to remove.| 构造器和说明 |
|---|
DefaultAttributeMap() |
public <T> Attribute<T> attr(AttributeKey<T> key)
AttributeMapAttribute for the given AttributeKey. This method will never return null, but may return
an Attribute which does not have a value set yet.attr 在接口中 AttributeMappublic <T> boolean hasAttr(AttributeKey<T> key)
AttributeMaphasAttr 在接口中 AttributeMapCopyright © 2021. All rights reserved.