V
- public interface Trie<V>
Modifier and Type | Method and Description |
---|---|
V |
get(ByteBuffer b)
Get and exact match from a segment of a ByteBuufer as key
|
V |
get(ByteBuffer b,
int offset,
int len)
Get and exact match from a segment of a ByteBuufer as key
|
V |
get(String s)
Get and exact match from a String key
|
V |
get(String s,
int offset,
int len)
Get and 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(ByteBuffer b,
int offset,
int len)
Get the best match from key in a byte buffer.
|
V |
getBest(String s)
Get the best match from key in a String.
|
V |
getBest(String s,
int offset,
int len)
Get the best match from key in a String.
|
boolean |
isCaseInsensitive() |
boolean |
isFull() |
Set<String> |
keySet() |
boolean |
put(String s,
V v)
Put and entry into the Trie
|
boolean |
put(V v)
Put a value as both a key and a value.
|
V |
remove(String s) |
boolean put(String s, V v)
s
- The key for the entryv
- The value of the entryboolean put(V v)
v
- The value and keyV get(String s, int offset, int len)
s
- The keyoffset
- The offset within the string of the keylen
- the length of the keyV get(ByteBuffer b)
b
- The bufferV get(ByteBuffer b, int offset, int len)
b
- The bufferoffset
- The offset within the buffer of the keylen
- the length of the keyV getBest(String s)
s
- The stringV getBest(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(ByteBuffer b, int offset, int len)
b
- The bufferoffset
- The offset within the buffer of the keylen
- the length of the keyboolean isFull()
boolean isCaseInsensitive()
Copyright © 1995-2015 Webtide. All Rights Reserved.