Package org.languagetool
Class SentenceRange
java.lang.Object
org.languagetool.SentenceRange
- All Implemented Interfaces:
Comparable<SentenceRange>
A range in a text that makes up a sentence.
- Since:
- 5.8
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanintstatic List<SentenceRange> getRangesFromSentences(AnnotatedText annotatedText, List<String> sentences) intgetToPos()inthashCode()toString()
-
Field Details
-
BEGINS_WITH_SPACE
-
ENDS_WITH_SPACE
-
fromPos
private final int fromPos -
toPos
private final int toPos
-
-
Constructor Details
-
SentenceRange
SentenceRange(int fromPos, int toPos)
-
-
Method Details
-
getRangesFromSentences
public static List<SentenceRange> getRangesFromSentences(AnnotatedText annotatedText, List<String> sentences) -
getFromPos
public int getFromPos() -
getToPos
public int getToPos() -
toString
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<SentenceRange>
-