Class SparseList<E>
java.lang.Object
org.reactfx.util.SparseList<E>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()collect()collect(int from, int to) get(int index) getOrThrow(int index) getPresent(int presentIndex) intintgetPresentCountAfter(int position) intgetPresentCountBefore(int position) intgetPresentCountBetween(int from, int to) javafx.scene.control.IndexRangeintindexOfPresentItem(int presentIndex) voidvoidinsertAll(int position, Collection<? extends E> elems) voidinsertVoid(int position, int length) booleanisPresent(int index) voidremove(int index) voidremove(int from, int to) voidbooleansetIfAbsent(int index, E elem) intsize()voidsplice(int from, int to, Collection<? extends E> elems) voidspliceByVoid(int from, int to, int length)
-
Constructor Details
-
SparseList
public SparseList()
-
-
Method Details
-
size
public int size() -
getPresentCount
public int getPresentCount() -
isPresent
public boolean isPresent(int index) -
getOrThrow
-
get
-
getPresent
-
getPresentCountBefore
public int getPresentCountBefore(int position) -
getPresentCountAfter
public int getPresentCountAfter(int position) -
getPresentCountBetween
public int getPresentCountBetween(int from, int to) -
indexOfPresentItem
public int indexOfPresentItem(int presentIndex) -
getPresentItemsRange
public javafx.scene.control.IndexRange getPresentItemsRange() -
collect
-
collect
-
clear
public void clear() -
remove
public void remove(int index) -
remove
public void remove(int from, int to) -
set
-
setIfAbsent
-
insert
-
insertAll
-
insertVoid
public void insertVoid(int position, int length) -
splice
-
spliceByVoid
public void spliceByVoid(int from, int to, int length)
-