edu.stanford.nlp.ie.hmm
Class AnswerChecker.Range

java.lang.Object
  |
  +--edu.stanford.nlp.ie.hmm.AnswerChecker.Range
Enclosing class:
AnswerChecker

public static class AnswerChecker.Range
extends Object

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

AnswerChecker.Range

public AnswerChecker.Range(int from,
                           int to)
Constructs a new range with the given span.

Method Detail

equals

public boolean equals(Object o)
Returns true iff the given object is a Range with the same from and to as this Range.

Overrides:
equals in class Object

getFrom

public int getFrom()
Returns the index of the first element spanned by this Range.


getTo

public int getTo()
Returns the index immediately after the last element spanned by this Range.


toString

public String toString()
Returns a string reprsentation of this Range, indicating the from and to.

Overrides:
toString in class Object


Stanford NLP Group