|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xml.utils.Trie
A digital search trie for 7-bit ASCII text The API is a subset of java.util.Hashtable The key must be a 7-bit ASCII string The value may be any Java Object
Nested Class Summary | |
(package private) class |
Trie.Node
The node representation for the trie. |
Field Summary | |
static int |
ALPHA_SIZE
Size of the m_nextChar array. |
(package private) Trie.Node |
m_Root
The root node of the tree. |
Constructor Summary | |
Trie()
Construct the trie. |
Method Summary | |
Object |
get(String key)
Get an object that matches the key. |
Object |
put(String key,
Object value)
Put an object into the trie for lookup. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int ALPHA_SIZE
Trie.Node m_Root
Constructor Detail |
public Trie()
Method Detail |
public Object put(String key, Object value)
key
- must be a 7-bit ASCII stringvalue
- any java object.
public Object get(String key)
key
- must be a 7-bit ASCII string
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |