public static class Trie.Search
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
(package private) wwwordz.puzzle.Trie.Node |
node |
| Constructor and Description |
|---|
Search(wwwordz.puzzle.Trie.Node node)
Create a search starting in given node
|
Search(Trie.Search search)
Create a clone of the given search, with the same fields.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) boolean |
continueWith(char letter)
Check if the search can continue with the given letter.
|
(package private) boolean |
isWord()
Check if characters searched so far correspond to a word
|
public Search(wwwordz.puzzle.Trie.Node node)
node - prefix already searchedpublic Search(Trie.Search search)
search - to be clonedboolean continueWith(char letter)
letter - to continue searchtrue if letter found; false otherwiseboolean isWord()
true if node is a complete word; false otherwise