public class Trie extends java.lang.Object
Constructor and Description |
---|
Trie() |
Modifier and Type | Method and Description |
---|---|
TrieNode |
addValue(java.lang.StringBuilder symbol,
TrieSymbolTable table,
int code) |
TrieNode |
addValue(java.lang.String value,
TrieSymbolTable table,
int code) |
boolean |
equals(java.lang.Object obj) |
java.lang.Integer |
getEntry(java.lang.String value,
TrieSymbolTable table) |
java.lang.String |
getValue(TrieNode node,
TrieSymbolTable table) |
int |
hashCode() |
public Trie()
public TrieNode addValue(java.lang.String value, TrieSymbolTable table, int code) throws SymbolException
SymbolException
public TrieNode addValue(java.lang.StringBuilder symbol, TrieSymbolTable table, int code) throws SymbolException
SymbolException
public java.lang.String getValue(TrieNode node, TrieSymbolTable table)
public java.lang.Integer getEntry(java.lang.String value, TrieSymbolTable table)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright 2007-2017 Johan Hall, Jens Nilsson and Joakim Nivre.