org.apache.struts2.util
Class PrefixTrie

java.lang.Object
  extended by org.apache.struts2.util.PrefixTrie

public class PrefixTrie
extends Object

Quickly matches a prefix to an object.


Nested Class Summary
(package private) static class PrefixTrie.Node
           
 
Field Summary
(package private)  PrefixTrie.Node root
           
private static int SIZE
           
 
Constructor Summary
PrefixTrie()
           
 
Method Summary
 Object get(String key)
           
 void put(String prefix, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SIZE

private static final int SIZE
See Also:
Constant Field Values

root

PrefixTrie.Node root
Constructor Detail

PrefixTrie

public PrefixTrie()
Method Detail

put

public void put(String prefix,
                Object value)

get

public Object get(String key)


Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.