Interface SparseList.Segment<E>
- All Known Implementing Classes:
SparseList.AbsentSegment, SparseList.PresentSegment
- Enclosing class:
SparseList<E>
private static interface SparseList.Segment<E>
-
Method Summary
Modifier and TypeMethodDescriptionappendRangeTo(List<E> acc, int from, int to) get(int index) intgetOrThrow(int index) intintgetPresentCountBetween(int from, int to) default SparseList.StatsgetStatsBetween(int from, int to) booleanbooleanisPresent(int index) booleanpossiblyDestructiveAppend(SparseList.Segment<E> suffix) voidsetOrThrow(int index, E elem) subSegment(int from, int to)
-
Method Details
-
isPresent
boolean isPresent() -
getLength
int getLength() -
getPresentCount
int getPresentCount() -
getPresentCountBetween
int getPresentCountBetween(int from, int to) -
isPresent
boolean isPresent(int index) -
get
-
getOrThrow
-
setOrThrow
-
appendTo
-
appendRangeTo
-
subSegment
-
possiblyDestructiveAppend
-
getStatsBetween
-