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)
int
getLength()
E
getOrThrow(int index)
int
getPresentCount()
int
getPresentCountBetween(int from, int to)
default SparseList.Stats
getStatsBetween(int from, int to)
boolean
isPresent()
boolean
isPresent(int index)
boolean
possiblyDestructiveAppend(SparseList.Segment<E> suffix)
void
setOrThrow(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)
-
-