Package org.reactfx.util
Class SparseList.AbsentSegment<E>
java.lang.Object
org.reactfx.util.SparseList.AbsentSegment<E>
- All Implemented Interfaces:
SparseList.Segment<E>
- Enclosing class:
SparseList<E>
private static final class SparseList.AbsentSegment<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) int
getOrThrow
(int index) int
int
getPresentCountBetween
(int from, int to) boolean
boolean
isPresent
(int index) boolean
possiblyDestructiveAppend
(SparseList.Segment<E> suffix) void
setOrThrow
(int index, E elem) subSegment
(int from, int to) toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.reactfx.util.SparseList.Segment
getStatsBetween
-
Field Details
-
length
private int length
-
-
Constructor Details
-
AbsentSegment
AbsentSegment(int length)
-
-
Method Details
-
toString
-
isPresent
public boolean isPresent()- Specified by:
isPresent
in interfaceSparseList.Segment<E>
-
getLength
public int getLength()- Specified by:
getLength
in interfaceSparseList.Segment<E>
-
getPresentCount
public int getPresentCount()- Specified by:
getPresentCount
in interfaceSparseList.Segment<E>
-
getPresentCountBetween
public int getPresentCountBetween(int from, int to) - Specified by:
getPresentCountBetween
in interfaceSparseList.Segment<E>
-
isPresent
public boolean isPresent(int index) - Specified by:
isPresent
in interfaceSparseList.Segment<E>
-
get
- Specified by:
get
in interfaceSparseList.Segment<E>
-
getOrThrow
- Specified by:
getOrThrow
in interfaceSparseList.Segment<E>
-
setOrThrow
- Specified by:
setOrThrow
in interfaceSparseList.Segment<E>
-
appendTo
- Specified by:
appendTo
in interfaceSparseList.Segment<E>
-
appendRangeTo
- Specified by:
appendRangeTo
in interfaceSparseList.Segment<E>
-
subSegment
- Specified by:
subSegment
in interfaceSparseList.Segment<E>
-
possiblyDestructiveAppend
- Specified by:
possiblyDestructiveAppend
in interfaceSparseList.Segment<E>
-