public static final class SourceSectionFilter.IndexRange extends Object
source section
filter. Instances are immutable.| Modifier and Type | Method and Description |
|---|---|
static SourceSectionFilter.IndexRange |
between(int startIndex,
int endIndex)
Constructs a new index range between one a first index inclusive and a second index
exclusive.
|
static SourceSectionFilter.IndexRange |
byLength(int startIndex,
int length)
Constructs a new index range with a given first index inclusive and a given length.
|
String |
toString() |
public static SourceSectionFilter.IndexRange between(int startIndex, int endIndex)
startIndex >= 0 and
startIndex <= endIndex.startIndex - the start index (inclusive)endIndex - the end index (exclusive)IllegalArgumentException - if parameter invariants are violatedpublic static SourceSectionFilter.IndexRange byLength(int startIndex, int length)
startIndex >= 0 and length >= 0.startIndex - the start index (inclusive)length - the length of the rangeIllegalArgumentException - if parameter invariants are violated