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