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