public class ProperTextRange extends TextRange
EMPTY_ARRAY, EMPTY_RANGE
BY_START_OFFSET_THEN_END_OFFSET
Constructor and Description |
---|
ProperTextRange(int startOffset,
int endOffset) |
ProperTextRange(TextRange range) |
Modifier and Type | Method and Description |
---|---|
static ProperTextRange |
create(int startOffset,
int endOffset) |
static ProperTextRange |
create(Segment segment) |
ProperTextRange |
cutOut(TextRange subRange) |
static ProperTextRange |
from(int offset,
int length) |
ProperTextRange |
grown(int lengthDelta) |
ProperTextRange |
intersection(TextRange textRange) |
ProperTextRange |
shiftRight(int delta) |
ProperTextRange |
union(TextRange textRange) |
allOf, areSegmentsEqual, assertProperRange, assertProperRange, assertProperRange, contains, contains, contains, containsOffset, containsRange, containsRange, equals, equalsToRange, getEndOffset, getLength, getStartOffset, hashCode, intersects, intersects, intersects, intersectsStrict, intersectsStrict, isEmpty, replace, shiftLeft, subSequence, substring, toString
public ProperTextRange(int startOffset, int endOffset)
public ProperTextRange(TextRange range)
public ProperTextRange cutOut(TextRange subRange)
public ProperTextRange shiftRight(int delta)
shiftRight
in class TextRange
public ProperTextRange grown(int lengthDelta)
public ProperTextRange intersection(TextRange textRange)
intersection
in class TextRange
public ProperTextRange union(TextRange textRange)
public static ProperTextRange create(Segment segment)
public static ProperTextRange create(int startOffset, int endOffset)
public static ProperTextRange from(int offset, int length)