public interface RangesBuffer extends SortedListOfRanges
SortedListOfRanges specific to mutable implementations.| Modifier and Type | Method and Description |
|---|---|
default void |
addRange(int lo,
int hi)
Add
[lo hi] to this list. |
void |
appendRange(int lo,
int hi)
Appends
[lo hi] to this list. |
void |
clear()
Removes all ranges from this list.
|
<T extends RangesBuffer> |
create()
Create a new instance of this class.
|
void |
insertRange(int index,
int lo,
int hi)
Insert
[lo hi] at the given index. |
void |
replaceRanges(int fromIndex,
int toIndex,
int lo,
int hi)
Replace all ranges from
fromIndex (inclusive) to toIndex (exclusive) with the
single range [lo hi]. |
addRangeTo, adjacent, adjacent, adjacent, appendRangesTo, binarySearch, binarySearchExactMatch, binarySearchExactMatch, binarySearchGetFirstIntersecting, binarySearchGetFirstIntersecting, binarySearchGetFirstIntersectingOrAdjacent, binarySearchGetFirstIntersectingOrAdjacent, binarySearchNoIntersectingFound, containedBy, contains, contains, contains, contains, contains, defaultToString, equal, equal, equalsListOfRanges, getHi, getLo, getMax, getMin, intersect, intersects, intersects, intersects, intersects, inverseGetMax, inverseGetMin, inverseRangesToString, inverseValueCount, invert, isEmpty, isSingle, leftOf, leftOf, leftOf, leftOf, matches2CharsWith1BitDifference, matchesEverything, matchesMinAndMax, matchesNothing, matchesSingleAscii, matchesSingleChar, matchesSomething, rangesAreSortedAndDisjoint, rangesAreSortedNonAdjacentAndDisjoint, rangesToString, rightOf, rightOf, rightOf, rightOf, size, size, sizeOfInverse, union, valueCount, valueCountEquals, valueCountMaxvoid clear()
void appendRange(int lo,
int hi)
[lo hi] to this list. The given range must be right of and non-adjacent to the last range in this list.void insertRange(int index,
int lo,
int hi)
void replaceRanges(int fromIndex,
int toIndex,
int lo,
int hi)
<T extends RangesBuffer> T create()
default void addRange(int lo,
int hi)
[lo hi] to this list. The list is altered such that all values of the given range
are included and SortedListOfRanges.rangesAreSortedNonAdjacentAndDisjoint() holds after the operation.