AttributeHolder supports indexed Attribute access.
AttributeHolder
| Modifier and Type | Method and Description |
|---|---|
| public Object | Returns: the value of the attribute by indexthe attribute index index)Internal method for dynamic attribute support. |
| public Object | Returns: the value of the attribute by indexthe attribute index index, Supplier<T> the default value initializer)SupplierInternal method for dynamic attribute support. |
| public Object | Returns: the previous value associated with the attributethe attribute index index)Internal method for dynamic attribute support. |
| public void | setAttribute(int
the attribute index index, Object the value value)Internal method for dynamic attribute support. |
| getAttribute | back to summary |
|---|---|
| public Object getAttribute(int index) Internal method for dynamic attribute support. Return the value of the attribute by index.
| |
| getAttribute | back to summary |
|---|---|
| public Object getAttribute(int index, Supplier<T> initializer) Internal method for dynamic attribute support. Return the value of the attribute by index. If the attribute with such index is not set, set it to the default value, using the initializer, and return the default. | |
| removeAttribute | back to summary |
|---|---|
| public Object removeAttribute(int index) Internal method for dynamic attribute support. Removes the attribute with the index and returns its previous value.
| |
| setAttribute | back to summary |
|---|---|
| public void setAttribute(int index, Object value) Internal method for dynamic attribute support. Set the attribute with the index to value.
| |