K
- the type of the keys used for mapping the childrenV
- the type of the values for the nodespublic class ResponseNode<K,V>
extends java.lang.Object
Constructor and Description |
---|
ResponseNode(K key,
V value) |
ResponseNode(K key,
V value,
ResponseNode<K,V> parent) |
Modifier and Type | Method and Description |
---|---|
void |
addChild(K key,
V value) |
void |
addChild(ResponseNode<K,V> child) |
ResponseNode<K,V> |
getChild(K key) |
java.util.Map<K,ResponseNode<K,V>> |
getChildren() |
K |
getKey() |
V |
getValue() |
boolean |
hasChild(K key) |
boolean |
hasChildren() |
boolean |
hasParent() |
ResponseNode<K,V> |
removeChild(K key) |
void |
removeParent() |
void |
setKey(K key) |
void |
setParent(ResponseNode<K,V> parent) |
void |
setValue(V value) |
java.lang.String |
toString() |
public ResponseNode(K key, V value, ResponseNode<K,V> parent)
public java.util.Map<K,ResponseNode<K,V>> getChildren()
public void setParent(ResponseNode<K,V> parent)
public void addChild(ResponseNode<K,V> child)
public boolean hasChild(K key)
public ResponseNode<K,V> getChild(K key)
public ResponseNode<K,V> removeChild(K key)
public K getKey()
public void setKey(K key)
public V getValue()
public void setValue(V value)
public void removeParent()
public boolean hasParent()
public boolean hasChildren()
public java.lang.String toString()
toString
in class java.lang.Object