AttributeAccessorSupport
作者:互联网
AttributeAccessorSupport
AttributeAccessor的实现,使用LinkedHashMap key=name,value=value作为容器
#setAttribute 若value!=null,设置kv;否则视为removeAttribute
#getAttribute 直接map.get
#computeAttribute 直接map.computeIfAbsent(内部规则:若name对应的value==null,则触发function.apply得到value并put(key, newValue) )返回value
#removeAttribute 直接map.remove
#has Attribute 直接map. containsKey
#attributeNames map. keySet转换为String[]
标签:map,AttributeAccessorSupport,removeAttribute,value,key,null 来源: https://www.cnblogs.com/FangfangXu/p/15376047.html