TrieNodeList<K, P extends Comparable<P>, V> class

TrieNode that holds children in a sorted List.

Inheritance

Constructors

TrieNodeList()

Properties

children List<TrieNode<K, P, V>>
Ordered child nodes.
final
entries Iterable<MapEntry<K, V>>
An iterable over this node and all its children
no setterinherited
hasChildren bool
Returns true, if the node has child nodes.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
hasKeyAndValue bool
Returns true, if the node has a key and value.
getter/setter pairinherited
key → K
Returns the key of the node, if this node has a key and value.
no setterinherited
parts List<P>
Parts of the child nodes.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value → V
Returns the value of the node, if this node has a key and value.
no setterinherited

Methods

addChild(P part) TrieNode<K, P, V>
Adds a new node with the provided part, or returns the existing one.
override
clearChildren() → void
Clears all the child nodes.
override
clearKeyAndValue() → void
Clears the key and value, if present.
inherited
getChild(P part) TrieNode<K, P, V>?
Returns the node with the provided part, or null.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeChild(P part) TrieNode<K, P, V>?
Returns the removed node with the provided part, or null.
override
setKeyAndValue(K key, V value) → void
Sets (or replaces) the key and value.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited