Constructor and Description |
---|
TreeTrie() |
Modifier and Type | Method and Description |
---|---|
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 |
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.
|
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) |
String |
toString() |
public boolean put(V v)
Trie
public boolean put(String s, V v)
Trie
public V get(String s)
Trie
public V get(ByteBuffer b, int offset, int len)
Trie
public V getBest(byte[] b, int offset, int len)
Trie
public V getBest(ByteBuffer b, int offset, int len)
Trie
Copyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.