V
- public abstract class AbstractTrie<V> extends Object implements Trie<V>
Provides some common implementations, which may not be the most efficient. For byte operations, the assumption is made that the charset is ISO-8859-1
Modifier | Constructor and Description |
---|---|
protected |
AbstractTrie(boolean insensitive) |
Modifier and Type | Method and Description |
---|---|
V |
get(ByteBuffer b)
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(String s)
Get the best match from key in a String.
|
boolean |
isCaseInsensitive() |
boolean |
put(V v)
Put a value as both a key and a value.
|
V |
remove(String s) |
public boolean put(V v)
Trie
public V get(String s)
Trie
public V get(ByteBuffer b)
Trie
public V getBest(String s)
Trie
public V getBest(byte[] b, int offset, int len)
Trie
public boolean isCaseInsensitive()
isCaseInsensitive
in interface Trie<V>
Copyright © 1995-2015 Webtide. All Rights Reserved.