Class SparseList.PresentSegment<E>
java.lang.Object
org.reactfx.util.SparseList.PresentSegment<E>
- All Implemented Interfaces:
SparseList.Segment<E>
- Enclosing class:
SparseList<E>
private static final class SparseList.PresentSegment<E>
extends Object
implements SparseList.Segment<E>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappendRangeTo(List<E> acc, int from, int to) get(int index) intgetOrThrow(int index) intintgetPresentCountBetween(int from, int to) booleanbooleanisPresent(int index) booleanpossiblyDestructiveAppend(SparseList.Segment<E> suffix) voidsetOrThrow(int index, E elem) subSegment(int from, int to) toString()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface SparseList.Segment
getStatsBetween
-
Field Details
-
list
-
-
Constructor Details
-
PresentSegment
-
-
Method Details
-
toString
-
isPresent
public boolean isPresent()- Specified by:
isPresentin interfaceSparseList.Segment<E>
-
getLength
public int getLength()- Specified by:
getLengthin interfaceSparseList.Segment<E>
-
getPresentCount
public int getPresentCount()- Specified by:
getPresentCountin interfaceSparseList.Segment<E>
-
getPresentCountBetween
public int getPresentCountBetween(int from, int to) - Specified by:
getPresentCountBetweenin interfaceSparseList.Segment<E>
-
isPresent
public boolean isPresent(int index) - Specified by:
isPresentin interfaceSparseList.Segment<E>
-
get
- Specified by:
getin interfaceSparseList.Segment<E>
-
getOrThrow
- Specified by:
getOrThrowin interfaceSparseList.Segment<E>
-
setOrThrow
- Specified by:
setOrThrowin interfaceSparseList.Segment<E>
-
appendTo
-
appendRangeTo
- Specified by:
appendRangeToin interfaceSparseList.Segment<E>
-
subSegment
- Specified by:
subSegmentin interfaceSparseList.Segment<E>
-
possiblyDestructiveAppend
- Specified by:
possiblyDestructiveAppendin interfaceSparseList.Segment<E>
-