Class SparseList<E>

java.lang.Object
org.reactfx.util.SparseList<E>

public final class SparseList<E> extends Object
  • Constructor Details

    • SparseList

      public SparseList()
  • Method Details

    • size

      public int size()
    • getPresentCount

      public int getPresentCount()
    • isPresent

      public boolean isPresent(int index)
    • getOrThrow

      public E getOrThrow(int index)
    • get

      public Optional<E> get(int index)
    • getPresent

      public E getPresent(int presentIndex)
    • 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

      public List<E> collect()
    • collect

      public List<E> collect(int from, int to)
    • clear

      public void clear()
    • remove

      public void remove(int index)
    • remove

      public void remove(int from, int to)
    • set

      public void set(int index, E elem)
    • setIfAbsent

      public boolean setIfAbsent(int index, E elem)
    • insert

      public void insert(int position, E elem)
    • insertAll

      public void insertAll(int position, Collection<? extends E> elems)
    • insertVoid

      public void insertVoid(int position, int length)
    • splice

      public void splice(int from, int to, Collection<? extends E> elems)
    • spliceByVoid

      public void spliceByVoid(int from, int to, int length)