@SuppressWarnings({"unchecked", "rawtypes"}) public interface NodeMetaDataHandler
An interface to mark a node being able to handle metadata.
Type Params | Return Type | Name and description |
---|---|---|
|
void |
copyNodeMetaData(NodeMetaDataHandler other) Copies all node meta data from the other node to this one |
|
Map<?, ?> |
getMetaDataMap() |
<T> |
T |
getNodeMetaData(Object key) Gets the node meta data. |
<T> |
T |
getNodeMetaData(Object key, Function<?, ? extends T> valFn) Gets the node meta data. |
|
Map<?, ?> |
getNodeMetaData() Returns an unmodifiable view of the current node metadata. |
|
Object |
putNodeMetaData(Object key, Object value) Sets the node meta data but allows overwriting values. |
|
void |
removeNodeMetaData(Object key) Removes a node meta data entry. |
|
void |
setMetaDataMap(Map<?, ?> metaDataMap) |
|
void |
setNodeMetaData(Object key, Object value) Sets the node meta data. |
Copies all node meta data from the other node to this one
other
- the other nodeGets the node meta data.
key
- the meta data keyGets the node meta data.
key
- the meta data keyvalFn
- the meta data value supplierReturns an unmodifiable view of the current node metadata.
Sets the node meta data but allows overwriting values.
key
- the meta data keyvalue
- the meta data valueRemoves a node meta data entry.
key
- the meta data key