|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.wisc.ssec.mcidasv.util.trie.PatriciaTrie.TrieEntry<K,V>
private static class PatriciaTrie.TrieEntry<K,V>
The actual Trie nodes.
Field Summary | |
---|---|
private int |
bitIndex
The index this entry is comparing. |
private K |
key
|
private PatriciaTrie.TrieEntry<K,V> |
left
The left child of this entry. |
private PatriciaTrie.TrieEntry<K,V> |
parent
The parent of this entry. |
private PatriciaTrie.TrieEntry<K,V> |
predecessor
The entry who uplinks to this entry. |
private PatriciaTrie.TrieEntry<K,V> |
right
The right child of this entry. |
private static long |
serialVersionUID
|
private V |
value
|
Constructor Summary | |
---|---|
private |
PatriciaTrie.TrieEntry(K key,
V value,
int bitIndex)
|
Method Summary | |
---|---|
boolean |
equals(Object o)
|
K |
getKey()
|
V |
getValue()
|
boolean |
isEmpty()
Whether or not the entry is storing a key. |
private boolean |
isExternalNode()
Either the left or right child is a loopback |
private boolean |
isInternalNode()
Neither the left nor right child is a loopback |
private V |
setKeyValue(K key,
V value)
Replaces the old key and value with the new ones. |
V |
setValue(V value)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map.Entry |
---|
hashCode |
Field Detail |
---|
private static final long serialVersionUID
private K key
private V value
private int bitIndex
private PatriciaTrie.TrieEntry<K,V> parent
private PatriciaTrie.TrieEntry<K,V> left
private PatriciaTrie.TrieEntry<K,V> right
private PatriciaTrie.TrieEntry<K,V> predecessor
Constructor Detail |
---|
private PatriciaTrie.TrieEntry(K key, V value, int bitIndex)
Method Detail |
---|
public boolean equals(Object o)
equals
in interface Map.Entry<K,V>
equals
in class Object
public boolean isEmpty()
public K getKey()
getKey
in interface Map.Entry<K,V>
public V getValue()
getValue
in interface Map.Entry<K,V>
public V setValue(V value)
setValue
in interface Map.Entry<K,V>
private V setKeyValue(K key, V value)
private boolean isInternalNode()
private boolean isExternalNode()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |