public interface NodeMap extends NodeCollection
| Modifier and Type | Method and Description |
|---|---|
void |
addNode(GPNode node)
Adds the new node to the map using the name returned by the method
node.getName() as the key. |
void |
addNode(java.lang.Object key,
GPNode node)
Adds the new node to the map using the given key
|
void |
addNodes(GPNode[] nodes)
Adds all nodes in the given array to the map using the name returned by the method
node.getName()
as the key for each node. |
void |
addNodes(java.util.Map nodesMap)
Adds all nodes in the given map to this node map.
|
GPNode |
getNode(java.lang.Object key)
Returns the node associated to the given key or null
|
java.util.Set |
keySet()
Returns a set view of the keys contained in this map.
|
GPNode |
removeNode(java.lang.Object key)
Removes the node associated to the given key
|
void |
removeNodes(java.lang.Object[] keys)
Removes all nodes associated to the given keys
|
clear, findChildByName, getChildrenManager, getNodesCount, getParentNode, refreshOrderingvoid addNode(java.lang.Object key,
GPNode node)
key - the key of the node to addnode - the node to add to the mapvoid addNode(GPNode node)
node.getName() as the key.node - the node to add to the mapvoid addNodes(GPNode[] nodes)
node.getName()
as the key for each node.nodes - the nodes to add to the mapvoid addNodes(java.util.Map nodesMap)
nodesMap - the nodes to add to this mapGPNode removeNode(java.lang.Object key)
key - the key of the node to removevoid removeNodes(java.lang.Object[] keys)
keys - the keys of the nodes to removeGPNode getNode(java.lang.Object key)
key - the key of the node to returnjava.util.Set keySet()