Package org.reactfx.util
Interface SparseList.Segment<E>
-
- All Known Implementing Classes:
SparseList.AbsentSegment,SparseList.PresentSegment
- Enclosing class:
- SparseList<E>
private static interface SparseList.Segment<E>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.util.List<E>appendRangeTo(java.util.List<E> acc, int from, int to)java.util.List<E>appendTo(java.util.List<E> acc)java.util.Optional<E>get(int index)intgetLength()EgetOrThrow(int index)intgetPresentCount()intgetPresentCountBetween(int from, int to)default SparseList.StatsgetStatsBetween(int from, int to)booleanisPresent()booleanisPresent(int index)booleanpossiblyDestructiveAppend(SparseList.Segment<E> suffix)voidsetOrThrow(int index, E elem)SparseList.Segment<E>subSegment(int from, int to)
-
-
-
Method Detail
-
isPresent
boolean isPresent()
-
getLength
int getLength()
-
getPresentCount
int getPresentCount()
-
getPresentCountBetween
int getPresentCountBetween(int from, int to)
-
isPresent
boolean isPresent(int index)
-
get
java.util.Optional<E> get(int index)
-
getOrThrow
E getOrThrow(int index)
-
setOrThrow
void setOrThrow(int index, E elem)
-
subSegment
SparseList.Segment<E> subSegment(int from, int to)
-
possiblyDestructiveAppend
boolean possiblyDestructiveAppend(SparseList.Segment<E> suffix)
-
getStatsBetween
default SparseList.Stats getStatsBetween(int from, int to)
-
-