Class ArrayTernaryTrie.Growing<V>
java.lang.Object
org.eclipse.jetty.util.ArrayTernaryTrie.Growing<V>
- All Implemented Interfaces:
Trie<V>
- Enclosing class:
ArrayTernaryTrie<V>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()voiddump()booleanGet an exact match from a String keyGet an exact match from a String keyget(ByteBuffer b) Get an exact match from a segment of a ByteBuufer as keyget(ByteBuffer b, int offset, int len) Get an exact match from a segment of a ByteBuufer as keygetBest(byte[] b, int offset, int len) Get the best match from key in a byte array.Get the best match from key in a String.Get the best match from key in a String.getBest(ByteBuffer b, int offset, int len) Get the best match from key in a byte buffer.inthashCode()booleanbooleanisEmpty()booleanisFull()keySet()booleanPut an entry into the TriebooleanPut a value as both a key and a value.intsize()toString()
-
Field Details
-
_growby
private final int _growby -
_trie
-
-
Constructor Details
-
Growing
public Growing() -
Growing
public Growing(int capacity, int growby) -
Growing
public Growing(boolean insensitive, int capacity, int growby)
-
-
Method Details
-
put
-
hashCode
-
remove
-
get
-
get
-
getBest
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
-
clear
-
put
-
get
Description copied from interface:TrieGet an exact match from a String key -
get
Description copied from interface:TrieGet an exact match from a segment of a ByteBuufer as key -
getBest
-
getBest
Description copied from interface:TrieGet the best match from key in a String. -
getBest
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
-
keySet
-
isFull
-
dump
public void dump() -
isEmpty
public boolean isEmpty() -
size
public int size()
-