public class Term
extends java.lang.Object
CoOccurrence objects and TermSeen.| Constructor and Description |
|---|
Term()
Creates an empty term
|
Term(java.lang.String line)
Creates a term from line.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o)
Comparison is done on the strings in the two terms.
|
int |
getLength()
Returns the length of the string represented by this Term
|
java.lang.String |
getTerm()
Returns the term as a string.
|
int |
hashCode()
Returns the hash value of the string representing term.
|
void |
setTerm(java.lang.String line)
Changes the string representing this term as well as the
hash value representing the object.
|
java.lang.String |
toString()
Return the string representing this term.
|
public Term()
public Term(java.lang.String line)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int getLength()
public java.lang.String getTerm()
public int hashCode()
hashCode in class java.lang.Objectpublic void setTerm(java.lang.String line)
This method might be redundant.
line - the new string to be used.public java.lang.String toString()
toString in class java.lang.Object