K
- type of "strings" used to index valuesV
- type of values (data) indexed by this triepublic abstract class PrefixTree<K,V> extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
PrefixTree.Ops<K,V> |
Modifier and Type | Method and Description |
---|---|
static <K,V> PrefixTree<K,V> |
empty(PrefixTree.Ops<K,V> ops) |
abstract Stream<Map.Entry<K,V>> |
entries() |
abstract PrefixTree<K,V> |
insert(K key,
V value,
BiFunction<? super V,? super V,? extends V> combine) |
PrefixTree<K,V> |
map(Function<? super V,? extends V> f) |
abstract <W> PrefixTree<K,W> |
map(Function<? super V,? extends W> f,
PrefixTree.Ops<K,W> ops) |
public static <K,V> PrefixTree<K,V> empty(PrefixTree.Ops<K,V> ops)
public abstract PrefixTree<K,V> insert(K key, V value, BiFunction<? super V,? super V,? extends V> combine)
public abstract <W> PrefixTree<K,W> map(Function<? super V,? extends W> f, PrefixTree.Ops<K,W> ops)