public class Dictionary extends java.util.HashMap<Term,java.lang.Integer> implements java.util.Map<Term,java.lang.Integer>
Factory#buildDictionary(java.io.Reader),
Serialized Form| Constructor and Description |
|---|
Dictionary()
Sole Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Term term,
int i)
Adds terms to the dictionary only if they don't exist.
|
boolean |
equals(java.lang.Object o)
Checks if two Dictionary objects are equal.
|
public void add(Term term, int i)
term - term to be addedi - value representing status of termpublic boolean equals(java.lang.Object o)