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 void
clear()
void
dump()
boolean
equals(java.lang.Object obj)
V
get(java.lang.String s)
Get an exact match from a String keyV
get(java.lang.String s, int offset, int len)
Get an exact match from a String keyV
get(java.nio.ByteBuffer b)
Get an exact match from a segment of a ByteBuufer as keyV
get(java.nio.ByteBuffer b, int offset, int len)
Get an exact match from a segment of a ByteBuufer as keyV
getBest(byte[] b, int offset, int len)
Get the best match from key in a byte array.V
getBest(java.lang.String s)
Get the best match from key in a String.V
getBest(java.lang.String s, int offset, int length)
Get the best match from key in a String.V
getBest(java.nio.ByteBuffer b, int offset, int len)
Get the best match from key in a byte buffer.int
hashCode()
boolean
isCaseInsensitive()
boolean
isEmpty()
boolean
isFull()
java.util.Set<java.lang.String>
keySet()
boolean
put(java.lang.String s, V v)
Put an entry into the Trieboolean
put(V v)
Put a value as both a key and a value.V
remove(java.lang.String s)
int
size()
java.lang.String
toString()
-
-
-
Method Detail
-
put
public boolean put(V v)
Description copied from interface:Trie
Put a value as both a key and a value.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
get
public V get(java.lang.String s)
Description copied from interface:Trie
Get an exact match from a String key
-
get
public V get(java.nio.ByteBuffer b)
Description copied from interface:Trie
Get 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:Trie
Get 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:
isCaseInsensitive
in interfaceTrie<V>
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
put
public boolean put(java.lang.String s, V v)
Description copied from interface:Trie
Put an entry into the Trie
-
get
public V get(java.lang.String s, int offset, int len)
Description copied from interface:Trie
Get an exact match from a String key
-
get
public V get(java.nio.ByteBuffer b, int offset, int len)
Description copied from interface:Trie
Get an exact match from a segment of a ByteBuufer as key
-
getBest
public V getBest(java.lang.String s)
Description copied from interface:Trie
Get the best match from key in a String.
-
getBest
public V getBest(java.lang.String s, int offset, int length)
Description copied from interface:Trie
Get the best match from key in a String.
-
getBest
public V getBest(java.nio.ByteBuffer b, int offset, int len)
Description copied from interface:Trie
Get 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:
toString
in classjava.lang.Object
-
dump
public void dump()
-
isEmpty
public boolean isEmpty()
-
size
public int size()
-
-