Created
May 28, 2010 09:32
-
-
Save okoye/416965 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.ArrayList; | |
| /** | |
| * @author Chuka Okoye | |
| * | |
| */ | |
| public class TrieNode | |
| { | |
| protected char character; | |
| protected boolean endWord; | |
| protected ArrayList<TrieNode> childNodes; | |
| protected ArrayList<Integer> index; | |
| //TODO: Full Documentation | |
| public TrieNode(char character, boolean endword) | |
| { | |
| this.character = character; | |
| this.endWord = endword; | |
| this.childNodes = new ArrayList<TrieNode>(); | |
| this.index = new ArrayList<Integer>(); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment