V
- the Trie entry typepublic interface Trie<V>
Modifier and Type | Method and Description |
---|---|
void |
clear() |
V |
get(java.nio.ByteBuffer b)
Get an exact match from a segment of a ByteBuufer as key
|
V |
get(java.nio.ByteBuffer b,
int offset,
int len)
Get an exact match from a segment of a ByteBuufer as key
|
V |
get(java.lang.String s)
Get an exact match from a String key
|
V |
get(java.lang.String s,
int offset,
int len)
Get an exact match from a String key
|
V |
getBest(byte[] b,
int offset,
int len)
Get the best match from key in a byte array.
|
V |
getBest(java.nio.ByteBuffer b,
int offset,
int len)
Get the best match from key in a byte buffer.
|
V |
getBest(java.lang.String s)
Get the best match from key in a String.
|
V |
getBest(java.lang.String s,
int offset,
int len)
Get the best match from key in a String.
|
boolean |
isCaseInsensitive() |
boolean |
isFull() |
java.util.Set<java.lang.String> |
keySet() |
boolean |
put(java.lang.String s,
V v)
Put an entry into the Trie
|
boolean |
put(V v)
Put a value as both a key and a value.
|
V |
remove(java.lang.String s) |
boolean put(java.lang.String s, V v)
s
- The key for the entryv
- The value of the entryboolean put(V v)
v
- The value and keyV remove(java.lang.String s)
V get(java.lang.String s)
s
- The keyV get(java.lang.String s, int offset, int len)
s
- The keyoffset
- The offset within the string of the keylen
- the length of the keyV get(java.nio.ByteBuffer b)
b
- The bufferV get(java.nio.ByteBuffer b, int offset, int len)
b
- The bufferoffset
- The offset within the buffer of the keylen
- the length of the keyV getBest(java.lang.String s)
s
- The stringV getBest(java.lang.String s, int offset, int len)
s
- The stringoffset
- The offset within the string of the keylen
- the length of the keyV getBest(byte[] b, int offset, int len)
b
- The bufferoffset
- The offset within the array of the keylen
- the length of the keyV getBest(java.nio.ByteBuffer b, int offset, int len)
b
- The bufferoffset
- The offset within the buffer of the keylen
- the length of the keyjava.util.Set<java.lang.String> keySet()
boolean isFull()
boolean isCaseInsensitive()
void clear()
Copyright © 1995–2023 Webtide. All rights reserved.