| Modifier and Type | Method and Description |
|---|---|
| public String[] | |
| public default < the type of the attribute value T> T | Returns: the existing value or newly computed value for the named attributethe unique attribute key name, Function<String, T> a function that computes a new value for the attribute
name; the function must not return a computeFunction)null valueCompute a new value for the attribute identified by |
| public Object | Returns: the current value of the attribute, if anythe unique attribute key name)Get the value of the attribute identified by |
| public boolean | hasAttribute(String
the unique attribute key name)Return |
| public Object | Returns: the last value of the attribute, if anythe unique attribute key name)Remove the attribute identified by |
| public void | setAttribute(String
the unique attribute key name, Object the attribute value to be attached value)Set the attribute defined by |
| attributeNames | back to summary |
|---|---|
| public String[] attributeNames() Return the names of all attributes. | |
| computeAttribute | back to summary |
|---|---|
| public default <T> T computeAttribute(String name, Function<String, T> computeFunction) Compute a new value for the attribute identified by If a value for the attribute identified by The default implementation of this method is not thread safe but can be overridden by concrete implementations of this interface.
| |
| getAttribute | back to summary |
|---|---|
| public Object getAttribute(String name) Get the value of the attribute identified by Return | |
| hasAttribute | back to summary |
|---|---|
| public boolean hasAttribute(String name) Return Otherwise return
| |
| removeAttribute | back to summary |
|---|---|
| public Object removeAttribute(String name) Remove the attribute identified by Return | |
| setAttribute | back to summary |
|---|---|
| public void setAttribute(String name, Object value) Set the attribute defined by If In general, users should take care to prevent overlaps with other metadata attributes by using fully-qualified names, perhaps using class or package names as prefix. | |