| Modifier and Type | Field and Description |
|---|---|
private java.util.Map<java.lang.Character,HashTrie.Node<T>> |
nextMap |
private T |
value |
| Modifier | Constructor and Description |
|---|---|
private |
Node() |
| Modifier and Type | Method and Description |
|---|---|
(package private) boolean |
containsValue(java.lang.Object toFind)
Recursively search for a value.
|
(package private) java.util.Set<java.util.Map.Entry<java.lang.CharSequence,T>> |
entrySet(java.lang.StringBuilder key,
java.util.Set<java.util.Map.Entry<java.lang.CharSequence,T>> entries)
Recursively build a entry set.
|
(package private) T |
get(java.lang.CharSequence key,
int pos)
Recursively lookup a key's value.
|
(package private) HashTrie.Entry<T> |
getLongestMatch(java.lang.CharSequence key,
int pos)
Recursively lookup the longest key match.
|
(package private) HashTrie.Entry<T> |
getLongestMatch(java.io.PushbackReader keyIn,
java.lang.StringBuilder key)
Recursively lookup the longest key match.
|
(package private) HashTrie.Node<T> |
getNextNode(java.lang.Character ch)
Get the node for the specified character.
|
(package private) java.util.Set<java.lang.CharSequence> |
keySet(java.lang.StringBuilder key,
java.util.Set<java.lang.CharSequence> keys)
Recursively build a key set.
|
private static <T> java.util.Map<java.lang.Character,HashTrie.Node<T>> |
newNodeMap()
Create a new Map for a node level.
|
private static <T> java.util.Map<java.lang.Character,HashTrie.Node<T>> |
newNodeMap(java.util.Map<java.lang.Character,HashTrie.Node<T>> prev)
Create a new Map for a node level.
|
(package private) T |
put(java.lang.CharSequence key,
int pos,
T addValue)
Recursively add a key.
|
(package private) void |
remap()
Recursively rebuild the internal maps.
|
(package private) void |
setValue(T value)
Set the value for the key terminated at this node.
|
(package private) java.util.Collection<T> |
values(java.util.Collection<T> values)
Recursively build values.
|
private T value
private java.util.Map<java.lang.Character,HashTrie.Node<T>> nextMap
private static <T> java.util.Map<java.lang.Character,HashTrie.Node<T>> newNodeMap()
private static <T> java.util.Map<java.lang.Character,HashTrie.Node<T>> newNodeMap(java.util.Map<java.lang.Character,HashTrie.Node<T>> prev)
prev - Pervious map to use to populate the
new map.void setValue(T value)
value - The value for this key.HashTrie.Node<T> getNextNode(java.lang.Character ch)
ch - The next character to look for.T put(java.lang.CharSequence key, int pos, T addValue)
key - The key being added.pos - The position in key that is being handled
at this level.T get(java.lang.CharSequence key, int pos)
key - The key being looked up.pos - The position in the key that is being
looked up at this level.HashTrie.Entry<T> getLongestMatch(java.lang.CharSequence key, int pos)
key - The key being looked up.pos - The position in the key that is being
looked up at this level.HashTrie.Entry<T> getLongestMatch(java.io.PushbackReader keyIn, java.lang.StringBuilder key) throws java.io.IOException
keyIn - Where to read the key frompos - The position in the key that is being
looked up at this level.java.io.IOExceptionvoid remap()
boolean containsValue(java.lang.Object toFind)
toFind - The value to search forjava.util.Collection<T> values(java.util.Collection<T> values)
values - List being built.java.util.Set<java.lang.CharSequence> keySet(java.lang.StringBuilder key,
java.util.Set<java.lang.CharSequence> keys)
key - StringBuilder with our key.keys - Set to add tojava.util.Set<java.util.Map.Entry<java.lang.CharSequence,T>> entrySet(java.lang.StringBuilder key, java.util.Set<java.util.Map.Entry<java.lang.CharSequence,T>> entries)
key - StringBuilder with our key.entries - Set to add to