public class TermOccurrence extends java.lang.Object implements java.lang.Comparable<TermOccurrence>
Constructor and Description |
---|
TermOccurrence(Term term,
java.lang.String coveredText,
Document sourceFile,
int begin,
int end) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(TermOccurrence o) |
boolean |
equals(java.lang.Object obj) |
int |
getBegin() |
java.lang.String |
getCoveredText() |
int |
getEnd() |
Document |
getSourceDocument() |
Term |
getTerm() |
int |
hashCode() |
void |
setTerm(Term term2) |
java.lang.String |
toString() |
public Term getTerm()
public Document getSourceDocument()
public int getBegin()
public int getEnd()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int compareTo(TermOccurrence o)
compareTo
in interface java.lang.Comparable<TermOccurrence>
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getCoveredText()
public void setTerm(Term term2)