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 java.lang.Object implements Trie<V>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()voiddump()booleanequals(java.lang.Object obj)Vget(java.lang.String s)Get an exact match from a String keyVget(java.lang.String s, int offset, int len)Get an exact match from a String keyVget(java.nio.ByteBuffer b)Get an exact match from a segment of a ByteBuufer as keyVget(java.nio.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(java.lang.String s)Get the best match from key in a String.VgetBest(java.lang.String s, int offset, int length)Get the best match from key in a String.VgetBest(java.nio.ByteBuffer b, int offset, int len)Get the best match from key in a byte buffer.inthashCode()booleanisCaseInsensitive()booleanisEmpty()booleanisFull()java.util.Set<java.lang.String>keySet()booleanput(java.lang.String s, V v)Put an entry into the Triebooleanput(V v)Put a value as both a key and a value.Vremove(java.lang.String s)intsize()java.lang.StringtoString()
-
-
-
Method Detail
-
put
public boolean put(V v)
Description copied from interface:TriePut a value as both a key and a value.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
get
public V get(java.lang.String s)
Description copied from interface:TrieGet an exact match from a String key
-
get
public V get(java.nio.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>
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
put
public boolean put(java.lang.String s, V v)Description copied from interface:TriePut an entry into the Trie
-
get
public V get(java.lang.String s, int offset, int len)
Description copied from interface:TrieGet an exact match from a String key
-
get
public V get(java.nio.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(java.lang.String s)
Description copied from interface:TrieGet the best match from key in a String.
-
getBest
public V getBest(java.lang.String s, int offset, int length)
Description copied from interface:TrieGet the best match from key in a String.
-
getBest
public V getBest(java.nio.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.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
dump
public void dump()
-
isEmpty
public boolean isEmpty()
-
size
public int size()
-
-