|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.stanford.nlp.ie.hmm.AnswerChecker.Range
Reprsents a range [from,to) (same semantics as substring).
Constructor Summary | |
AnswerChecker.Range(int from,
int to)
Constructs a new range with the given span. |
Method Summary | |
boolean |
equals(Object o)
Returns true iff the given object is a Range with the same from and to as this Range. |
int |
getFrom()
Returns the index of the first element spanned by this Range. |
int |
getTo()
Returns the index immediately after the last element spanned by this Range. |
String |
toString()
Returns a string reprsentation of this Range, indicating the from and to. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public AnswerChecker.Range(int from, int to)
Method Detail |
public boolean equals(Object o)
equals
in class Object
public int getFrom()
public int getTo()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |