V
- value typepublic static class PatriciaTrie.PatriciaNode<V> extends Object
PatriciaTrie
containing a String key and associated value dataConstructor and Description |
---|
PatriciaNode(String key,
V value,
int bit)
Constructs a new node
|
Modifier and Type | Method and Description |
---|---|
int |
getBit()
Returns this node's critical bit index
|
String |
getKey()
Get this node's key
|
PatriciaTrie.PatriciaNode<V> |
getLeft()
Returns this node's left node
|
PatriciaTrie.PatriciaNode<V> |
getRight()
Returns this node's right node
|
V |
getValue()
Returns this node's value
|
void |
setLeft(PatriciaTrie.PatriciaNode<V> left)
Set this node's left node
|
void |
setRight(PatriciaTrie.PatriciaNode<V> right)
Set this node's right node
|
void |
setValue(V value)
Sets this node's value
|
String |
toString() |
public String getKey()
public V getValue()
public void setValue(V value)
value
- value to setpublic int getBit()
public PatriciaTrie.PatriciaNode<V> getLeft()
public PatriciaTrie.PatriciaNode<V> getRight()
public void setLeft(PatriciaTrie.PatriciaNode<V> left)
left
- left nodepublic void setRight(PatriciaTrie.PatriciaNode<V> right)
right
- right nodeCopyright © 2020. All rights reserved.