K
- type of "strings" used to index valuesV
- type of values (data) indexed by this triepublic abstract class PrefixTree<K,V>
extends java.lang.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 java.util.stream.Stream<java.util.Map.Entry<K,V>> |
entries() |
abstract PrefixTree<K,V> |
insert(K key,
V value,
java.util.function.BiFunction<? super V,? super V,? extends V> combine) |
PrefixTree<K,V> |
map(java.util.function.Function<? super V,? extends V> f) |
abstract <W> PrefixTree<K,W> |
map(java.util.function.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, java.util.function.BiFunction<? super V,? super V,? extends V> combine)
public abstract <W> PrefixTree<K,W> map(java.util.function.Function<? super V,? extends W> f, PrefixTree.Ops<K,W> ops)
public final PrefixTree<K,V> map(java.util.function.Function<? super V,? extends V> f)