Package be.panako.util
Class Trie
java.lang.Object
be.panako.util.Trie
A trie that can be used for auto completion
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
add
(char c) protected Collection<String>
autoComplete
(String prefix) void
-
Field Details
-
children
-
value
-
terminal
protected boolean terminal
-
-
Constructor Details
-
Trie
public Trie()
-
-
Method Details
-
add
protected void add(char c) -
insert
-
find
-
autoComplete
-
allPrefixes
-