Trie<V>public static class ArrayTernaryTrie.Growing<V> extends java.lang.Object implements Trie<V>
| Constructor | Description |
|---|---|
Growing() |
|
Growing(boolean insensitive,
int capacity,
int growby) |
|
Growing(int capacity,
int growby) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
clear() |
|
void |
dump() |
|
boolean |
equals(java.lang.Object obj) |
|
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 |
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 |
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.
|
V |
getBest(java.lang.String s,
int offset,
int length) |
Get the best match from key in a String.
|
V |
getBest(java.nio.ByteBuffer b,
int offset,
int len) |
Get the best match from key in a byte buffer.
|
int |
hashCode() |
|
boolean |
isCaseInsensitive() |
|
boolean |
isEmpty() |
|
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) |
|
int |
size() |
|
java.lang.String |
toString() |
public Growing()
public Growing(int capacity,
int growby)
public Growing(boolean insensitive,
int capacity,
int growby)
public boolean put(V v)
Triepublic int hashCode()
hashCode in class java.lang.Objectpublic V get(java.lang.String s)
Triepublic V get(java.nio.ByteBuffer b)
Triepublic V getBest(byte[] b, int offset, int len)
Triepublic boolean isCaseInsensitive()
isCaseInsensitive in interface Trie<V>public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic boolean put(java.lang.String s,
V v)
Triepublic V get(java.lang.String s, int offset, int len)
Triepublic V get(java.nio.ByteBuffer b, int offset, int len)
Triepublic V getBest(java.lang.String s)
Triepublic V getBest(java.lang.String s, int offset, int length)
Triepublic V getBest(java.nio.ByteBuffer b, int offset, int len)
Triepublic java.lang.String toString()
toString in class java.lang.Objectpublic void dump()
public boolean isEmpty()
public int size()
Copyright © 1995–2017 Webtide. All rights reserved.