public static class Trie.Node<K extends Comparable<? super K>,V> extends Object
Constructor and Description |
---|
Node(V value,
SortedMap<K,Trie.Node<K,V>> branches) |
Modifier and Type | Method and Description |
---|---|
SortedMap<K,Trie.Node<K,V>> |
branches() |
boolean |
equals(Object o) |
boolean |
equals(Trie.Node o) |
V |
getValue() |
int |
hashCode() |
static <K extends Comparable<? super K>,V> |
sequence(V pre,
Iterable<? extends K> keys,
V post) |
protected static <K extends Comparable<? super K>,V> |
sequence(V pre,
Iterator<? extends K> keys,
V post) |
static <K extends Comparable<? super K>,V> |
singleton(V pre,
K key,
V post)
Create a cell labelled with the value and having one subnode with given key and post value.
|
String |
toString() |
static <K extends Comparable<? super K>,V> |
unit(V value)
Create a cell labelled with the value and having no subnodes.
|
public static <K extends Comparable<? super K>,V> Trie.Node<K,V> unit(V value)
public static <K extends Comparable<? super K>,V> Trie.Node<K,V> singleton(V pre, K key, V post)
public static <K extends Comparable<? super K>,V> Trie.Node<K,V> sequence(V pre, Iterable<? extends K> keys, V post)
protected static <K extends Comparable<? super K>,V> Trie.Node<K,V> sequence(V pre, Iterator<? extends K> keys, V post)
public final V getValue()
public boolean equals(Trie.Node o)
see also the complete user documentation .