| Modifier | Constructor and Description |
|---|---|
protected |
Range(int start,
int end)
Create range
|
protected |
Range(@NotNull Range other) |
| Modifier and Type | Method and Description |
|---|---|
@NotNull BasedSequence |
basedSafeSubSequence(@NotNull CharSequence charSequence) |
@NotNull BasedSequence |
basedSubSequence(@NotNull CharSequence charSequence) |
@NotNull CharSequence |
charSubSequence(@NotNull CharSequence charSequence) |
int |
compare(@NotNull Range other) |
int |
component1() |
int |
component2() |
boolean |
contains(int index) |
boolean |
contains(int start,
int end) |
boolean |
contains(@NotNull Range other) |
boolean |
doesContain(int index) |
boolean |
doesContain(int start,
int end) |
boolean |
doesContain(@NotNull Range other) |
boolean |
doesNotOverlap(@NotNull Range other) |
boolean |
doesNotOverlapNorAdjacent(@NotNull Range other) |
boolean |
doesNotOverlapOrAdjacent(@NotNull Range other) |
boolean |
doesOverlap(@NotNull Range other) |
boolean |
doesOverlapOrAdjacent(@NotNull Range other) |
boolean |
doesProperlyContain(@NotNull Range other) |
static @NotNull Range |
emptyOf(int position) |
Range |
endMinus(int delta) |
Range |
endPlus(int delta) |
boolean |
equals(Object o) |
@NotNull Range |
exclude(@NotNull Range other) |
@NotNull Range |
expandToInclude(int start,
int end) |
@NotNull Range |
expandToInclude(@NotNull Range other) |
int |
getEnd() |
int |
getEndOffset() |
int |
getSpan() |
int |
getStart() |
int |
getStartOffset() |
int |
hashCode() |
@NotNull Range |
include(int pos) |
@NotNull Range |
include(int start,
int end) |
@NotNull Range |
include(@NotNull Range other) |
@NotNull Range |
intersect(@NotNull Range other) |
boolean |
isAdjacent(int index) |
boolean |
isAdjacent(@NotNull Range other) |
boolean |
isAdjacentAfter(int index) |
boolean |
isAdjacentAfter(@NotNull Range other) |
boolean |
isAdjacentBefore(int index) |
boolean |
isAdjacentBefore(@NotNull Range other) |
boolean |
isContainedBy(int start,
int end) |
boolean |
isContainedBy(@NotNull Range other) |
boolean |
isEmpty() |
boolean |
isEnd(int index) |
boolean |
isEqual(@NotNull Range other) |
boolean |
isLast(int index) |
boolean |
isNotEmpty() |
boolean |
isNotNull() |
boolean |
isNull() |
boolean |
isProperlyContainedBy(int start,
int end) |
boolean |
isProperlyContainedBy(@NotNull Range other) |
boolean |
isStart(int index) |
boolean |
isValidIndex(int index) |
boolean |
leadBy(int index) |
boolean |
leads(int index) |
static @NotNull Range |
of(int start,
int end) |
static @NotNull Range |
ofLength(int start,
int length) |
boolean |
overlaps(@NotNull Range other) |
boolean |
overlapsOrAdjacent(@NotNull Range other) |
boolean |
properlyContains(@NotNull Range other) |
@NotNull RichSequence |
richSafeSubSequence(@NotNull CharSequence charSequence) |
@NotNull RichSequence |
richSubSequence(@NotNull CharSequence charSequence) |
@NotNull CharSequence |
safeSubSequence(@NotNull CharSequence charSequence) |
Range |
shiftLeft(int delta) |
Range |
shiftRight(int delta) |
Range |
startMinus(int delta) |
Range |
startPlus(int delta) |
@NotNull BasedSequence |
subSequence(@NotNull CharSequence charSequence)
Deprecated.
use
basedSubSequence(CharSequence) instead |
String |
toString() |
boolean |
trailedBy(int index) |
boolean |
trails(int index) |
Range |
withEnd(int end) |
Range |
withRange(int start,
int end) |
Range |
withStart(int start) |
protected Range(int start,
int end)
start - startend - endprotected Range(@NotNull
@NotNull Range other)
@NotNull public static @NotNull Range of(int start, int end)
@NotNull public static @NotNull Range emptyOf(int position)
@NotNull public static @NotNull Range ofLength(int start, int length)
public int getStart()
public int getEnd()
public int component1()
public int component2()
public int getStartOffset()
public int getEndOffset()
public Range withStart(int start)
public Range withEnd(int end)
public Range endMinus(int delta)
public Range endPlus(int delta)
public Range startMinus(int delta)
public Range startPlus(int delta)
public Range withRange(int start, int end)
public Range shiftLeft(int delta)
public Range shiftRight(int delta)
public int getSpan()
public boolean isNull()
public boolean isNotNull()
public boolean isEmpty()
public boolean isNotEmpty()
public boolean contains(@NotNull
@NotNull Range other)
public boolean doesContain(@NotNull
@NotNull Range other)
public boolean contains(int index)
public boolean doesContain(int index)
public boolean contains(int start,
int end)
public boolean doesContain(int start,
int end)
public boolean overlaps(@NotNull
@NotNull Range other)
public boolean doesOverlap(@NotNull
@NotNull Range other)
public boolean doesNotOverlap(@NotNull
@NotNull Range other)
public boolean overlapsOrAdjacent(@NotNull
@NotNull Range other)
public boolean doesOverlapOrAdjacent(@NotNull
@NotNull Range other)
public boolean doesNotOverlapOrAdjacent(@NotNull
@NotNull Range other)
public boolean doesNotOverlapNorAdjacent(@NotNull
@NotNull Range other)
public boolean properlyContains(@NotNull
@NotNull Range other)
public boolean doesProperlyContain(@NotNull
@NotNull Range other)
public boolean isAdjacent(int index)
public boolean isAdjacentAfter(int index)
public boolean isAdjacentBefore(int index)
public boolean isAdjacent(@NotNull
@NotNull Range other)
public boolean isAdjacentBefore(@NotNull
@NotNull Range other)
public boolean isAdjacentAfter(@NotNull
@NotNull Range other)
public boolean isContainedBy(@NotNull
@NotNull Range other)
public boolean isContainedBy(int start,
int end)
public boolean isProperlyContainedBy(@NotNull
@NotNull Range other)
public boolean isProperlyContainedBy(int start,
int end)
public boolean isEqual(@NotNull
@NotNull Range other)
public boolean isValidIndex(int index)
public boolean isStart(int index)
public boolean isEnd(int index)
public boolean isLast(int index)
public boolean leadBy(int index)
public boolean leads(int index)
public boolean trailedBy(int index)
public boolean trails(int index)
public int compare(@NotNull
@NotNull Range other)
@NotNull public @NotNull Range include(int pos)
@NotNull public @NotNull Range include(int start, int end)
@NotNull public @NotNull Range expandToInclude(int start, int end)
@NotNull @Deprecated public @NotNull BasedSequence subSequence(@NotNull @NotNull CharSequence charSequence)
basedSubSequence(CharSequence) insteadcharSequence - char sequence from which to extract the range@NotNull public @NotNull BasedSequence basedSubSequence(@NotNull @NotNull CharSequence charSequence)
@NotNull public @NotNull BasedSequence basedSafeSubSequence(@NotNull @NotNull CharSequence charSequence)
@NotNull public @NotNull RichSequence richSubSequence(@NotNull @NotNull CharSequence charSequence)
@NotNull public @NotNull RichSequence richSafeSubSequence(@NotNull @NotNull CharSequence charSequence)
@NotNull public @NotNull CharSequence charSubSequence(@NotNull @NotNull CharSequence charSequence)
@NotNull public @NotNull CharSequence safeSubSequence(@NotNull @NotNull CharSequence charSequence)
Copyright © 2020. All rights reserved.