public class AttributeSupport extends Object implements Attributeable
ALSO_IMPORT, DEFAULT_VALUE, INIT, INIT_FUNCTION, LAZY_INIT| Constructor and Description |
|---|
AttributeSupport(Map<AttributeKey,Object> attributes) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
getAttribute(AttributeKey<T> key) |
Map<AttributeKey,Object> |
getAttributes() |
<T> boolean |
hasAttribute(AttributeKey<T> key) |
public AttributeSupport(Map<AttributeKey,Object> attributes)
public Map<AttributeKey,Object> getAttributes()
getAttributes in interface Attributeablepublic <T> T getAttribute(AttributeKey<T> key)
getAttribute in interface Attributeablepublic <T> boolean hasAttribute(AttributeKey<T> key)
hasAttribute in interface AttributeableCopyright © 2023. All rights reserved.