Package org.eclipse.jetty.util
Interface Trie<V>
- Type Parameters:
V
- the Trie entry type
- All Known Implementing Classes:
AbstractTrie
,ArrayTernaryTrie
,ArrayTernaryTrie.Growing
,ArrayTrie
,TreeTrie
Deprecated.
The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
A Trie String lookup data structure.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Deprecated.static <T> Trie
<T> empty
(boolean caseInsensitive) Deprecated.Deprecated.Get an exact match from a String keyDeprecated.Get an exact match from a String keyget
(ByteBuffer b) Deprecated.Get an exact match from a segment of a ByteBuufer as keyget
(ByteBuffer b, int offset, int len) Deprecated.Get an exact match from a segment of a ByteBuufer as keydefault V
getBest
(byte[] b) Deprecated.getBest
(byte[] b, int offset, int len) Deprecated.Get the best match from key in a byte array.Deprecated.Get the best match from key in a String.Deprecated.Get the best match from key in a String.default V
Deprecated.getBest
(ByteBuffer b, int offset, int len) Deprecated.Get the best match from key in a byte buffer.boolean
Deprecated.boolean
isFull()
Deprecated.keySet()
Deprecated.boolean
Deprecated.Put an entry into the Trieboolean
Deprecated.Put a value as both a key and a value.Deprecated.
-
Method Details
-
put
Deprecated.Put an entry into the Trie- Parameters:
s
- The key for the entryv
- The value of the entry- Returns:
- True if the Trie had capacity to add the field.
-
put
Deprecated.Put a value as both a key and a value.- Parameters:
v
- The value and key- Returns:
- True if the Trie had capacity to add the field.
-
remove
Deprecated. -
get
Deprecated.Get an exact match from a String key- Parameters:
s
- The key- Returns:
- the value for the string key
-
get
Deprecated.Get an exact match from a String key- Parameters:
s
- The keyoffset
- The offset within the string of the keylen
- the length of the key- Returns:
- the value for the string / offset / length
-
get
Deprecated.Get an exact match from a segment of a ByteBuufer as key- Parameters:
b
- The buffer- Returns:
- The value or null if not found
-
get
Deprecated.Get an exact match from a segment of a ByteBuufer as key- Parameters:
b
- The bufferoffset
- The offset within the buffer of the keylen
- the length of the key- Returns:
- The value or null if not found
-
getBest
Deprecated.Get the best match from key in a String.- Parameters:
s
- The string- Returns:
- The value or null if not found
-
getBest
Deprecated.Get the best match from key in a String.- Parameters:
s
- The stringoffset
- The offset within the string of the keylen
- the length of the key- Returns:
- The value or null if not found
-
getBest
Deprecated.Get the best match from key in a byte array. The key is assumed to by ISO_8859_1 characters.- Parameters:
b
- The bufferoffset
- The offset within the array of the keylen
- the length of the key- Returns:
- The value or null if not found
-
getBest
Deprecated. -
getBest
Deprecated.Get the best match from key in a byte buffer. The key is assumed to by ISO_8859_1 characters.- Parameters:
b
- The bufferoffset
- The offset within the buffer of the keylen
- the length of the key- Returns:
- The value or null if not found
-
getBest
Deprecated. -
keySet
Deprecated. -
isFull
boolean isFull()Deprecated. -
isCaseInsensitive
boolean isCaseInsensitive()Deprecated. -
clear
void clear()Deprecated. -
empty
Deprecated.
-