@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 metadata from the other node to this one |
|
public Map<?, ?> |
getMetaDataMap() |
<T> |
public T |
getNodeMetaData(Object key) Gets the node metadata. |
<T> |
public T |
getNodeMetaData(Object key, Function<?, ? extends T> valFn) Gets the node metadata. |
|
public Map<?, ?> |
getNodeMetaData() Returns an unmodifiable view of the current node metadata. |
|
public Map<?, ?> |
newMetaDataMap()
|
|
public Object |
putNodeMetaData(Object key, Object value) Sets the node metadata but allows overwriting values. |
|
public void |
removeNodeMetaData(Object key) Removes a node metadata entry. |
|
public void |
setMetaDataMap(Map<?, ?> metaDataMap) |
|
public void |
setNodeMetaData(Object key, Object value) Sets the node metadata. |
Copies all node metadata from the other node to this one
other
- the other nodeGets the node metadata.
key
- the metadata keyGets the node metadata.
key
- the metadata keyvalFn
- the metadata value supplierReturns an unmodifiable view of the current node metadata.
Sets the node metadata but allows overwriting values.
key
- the metadata keyvalue
- the metadata valueRemoves a node metadata entry.
key
- the metadata key