Package org.eclipse.jetty.util
Class ArrayTernaryTrie.Growing<V>
- java.lang.Object
-
- org.eclipse.jetty.util.ArrayTernaryTrie.Growing<V>
-
- All Implemented Interfaces:
Trie<V>
- Enclosing class:
- ArrayTernaryTrie<V>
public static class ArrayTernaryTrie.Growing<V> extends Object implements Trie<V>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()voiddump()booleanequals(Object obj)Vget(String s)Get an exact match from a String keyVget(String s, int offset, int len)Get an exact match from a String keyVget(ByteBuffer b)Get an exact match from a segment of a ByteBuufer as keyVget(ByteBuffer b, int offset, int len)Get an exact match from a segment of a ByteBuufer as keyVgetBest(byte[] b, int offset, int len)Get the best match from key in a byte array.VgetBest(String s)Get the best match from key in a String.VgetBest(String s, int offset, int length)Get the best match from key in a String.VgetBest(ByteBuffer b, int offset, int len)Get the best match from key in a byte buffer.inthashCode()booleanisCaseInsensitive()booleanisEmpty()booleanisFull()Set<String>keySet()booleanput(String s, V v)Put an entry into the Triebooleanput(V v)Put a value as both a key and a value.Vremove(String s)intsize()StringtoString()
-
-
-
Method Detail
-
put
public boolean put(V v)
Description copied from interface:TriePut a value as both a key and a value.
-
get
public V get(String s)
Description copied from interface:TrieGet an exact match from a String key
-
get
public V get(ByteBuffer b)
Description copied from interface:TrieGet an exact match from a segment of a ByteBuufer as key
-
getBest
public V getBest(byte[] b, int offset, int len)
Description copied from interface:TrieGet the best match from key in a byte array. The key is assumed to by ISO_8859_1 characters.
-
isCaseInsensitive
public boolean isCaseInsensitive()
- Specified by:
isCaseInsensitivein interfaceTrie<V>
-
put
public boolean put(String s, V v)
Description copied from interface:TriePut an entry into the Trie
-
get
public V get(String s, int offset, int len)
Description copied from interface:TrieGet an exact match from a String key
-
get
public V get(ByteBuffer b, int offset, int len)
Description copied from interface:TrieGet an exact match from a segment of a ByteBuufer as key
-
getBest
public V getBest(String s)
Description copied from interface:TrieGet the best match from key in a String.
-
getBest
public V getBest(String s, int offset, int length)
Description copied from interface:TrieGet the best match from key in a String.
-
getBest
public V getBest(ByteBuffer b, int offset, int len)
Description copied from interface:TrieGet the best match from key in a byte buffer. The key is assumed to by ISO_8859_1 characters.
-
dump
public void dump()
-
isEmpty
public boolean isEmpty()
-
size
public int size()
-
-