V - the type of object that the Trie holdsTrie<V>ArrayTernaryTrie, ArrayTrie, TreeTriepublic abstract class AbstractTrie<V> extends java.lang.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 | Description |
|---|---|---|
protected |
AbstractTrie(boolean insensitive) |
| Modifier and Type | Method | Description |
|---|---|---|
V |
get(java.lang.String s) |
Get an exact match from a String key
|
V |
get(java.nio.ByteBuffer b) |
Get an exact match from a segment of a ByteBuufer as key
|
V |
getBest(byte[] b,
int offset,
int len) |
Get the best match from key in a byte array.
|
V |
getBest(java.lang.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(java.lang.String s) |
public boolean put(V v)
Triepublic V get(java.lang.String s)
Triepublic V get(java.nio.ByteBuffer b)
Triepublic V getBest(java.lang.String s)
Triepublic V getBest(byte[] b, int offset, int len)
Triepublic boolean isCaseInsensitive()
isCaseInsensitive in interface Trie<V>Copyright © 1995–2017 Webtide. All rights reserved.