Skip to content

Instantly share code, notes, and snippets.

@okoye
Created May 28, 2010 09:32
Show Gist options
  • Select an option

  • Save okoye/416965 to your computer and use it in GitHub Desktop.

Select an option

Save okoye/416965 to your computer and use it in GitHub Desktop.
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