| Package | Description |
|---|---|
| com.illucit.instatrie.trie |
| Modifier and Type | Method and Description |
|---|---|
TrieNode<T> |
TrieNode.getFirstSon()
Get the first son of this node.
|
TrieNode<T> |
TrieNode.getNextBrother()
Get the next brother of this node.
|
TrieNode<T> |
Trie.getNode(char[] word,
boolean exact)
Find a node that represents the given word.
|
TrieNode<T> |
Trie.getRoot()
Get the root node of the trie.
|
| Modifier and Type | Method and Description |
|---|---|
Iterator<TrieNode<T>> |
TrieNode.TrieNodeBrothersIterable.iterator() |
Iterator<TrieNode<T>> |
TrieNode.TrieNodeDescendantsIterable.iterator() |
default Stream<TrieNode<T>> |
TrieNode.TrieNodeIterable.stream()
Returns a sequential
Stream with this iterable as its source. |
| Modifier and Type | Method and Description |
|---|---|
void |
TrieNode.setFirstSon(TrieNode<T> firstSon)
Set the first son of this node.
|
void |
TrieNode.setNextBrother(TrieNode<T> nextBrother)
Set the next brother of this node.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
Trie.walkPath(char[] word,
Consumer<TrieNode<T>> consumer,
boolean includePrefixMatch)
Walk the trie down along a path (up to the outermost node still matching
the word) and call the consumer function every time (from the root to the
outermost node).
|
| Constructor and Description |
|---|
Trie(TrieNode<T> root)
Create a trie with an existing root node.
|
TrieNode(char[] chars,
TrieNode<T> brother,
TrieNode<T> son,
T data,
boolean inserted)
Create new trie node.
|
TrieNode(char[] chars,
TrieNode<T> brother,
TrieNode<T> son,
T data,
boolean inserted)
Create new trie node.
|
TrieNode(String chars,
TrieNode<T> brother,
TrieNode<T> son,
T data,
boolean inserted)
Create new trie node.
|
TrieNode(String chars,
TrieNode<T> brother,
TrieNode<T> son,
T data,
boolean inserted)
Create new trie node.
|
TrieNodeBrothersIterable(TrieNode<T> node)
Create iterable on a target node.
|
TrieNodeDescendantsIterable(TrieNode<T> node)
Create iterable on a target node.
|
Copyright © 2015 illucIT Software GmbH. All rights reserved.