public interface AttributedObject
Modifier and Type | Method and Description |
---|---|
<T> T |
getAttribute(String name)
Gets an attribute.
|
<T> T |
getAttribute(String name,
T defaultValue)
Gets an attribute.
|
Map<String,Object> |
getAttributes()
Gets all attributes.
|
boolean |
hasAttribute(String name)
Checks is an attribute is available.
|
<T> Optional<T> |
lookupAttribute(String name)
Gets an attribute.
|
void |
removeAttribute(String name)
Removes an attribute.
|
<T> void |
setAttribute(String name,
T value)
Sets an attribute.
|
<T> T getAttribute(String name)
name
- Attribute name.<T> T getAttribute(String name, T defaultValue)
name
- Attribute name.boolean hasAttribute(String name)
name
- Attribute name.<T> Optional<T> lookupAttribute(String name)
name
- Attribute name.void removeAttribute(String name)
name
- Attribute name<T> void setAttribute(String name, T value)
name
- Attribute namevalue
- Attribute valueCopyright © 2000-2020 Sualeh Fatehi. All rights reserved.