Class LiveArrayList<E>

java.lang.Object
org.reactfx.ObservableBase<LiveList.Observer<? super E,?>,QuasiListChange<? extends E>>
org.reactfx.collection.LiveListBase<E>
org.reactfx.collection.LiveArrayList<E>
All Implemented Interfaces:
Iterable<E>, Collection<E>, List<E>, SequencedCollection<E>, javafx.beans.Observable, javafx.collections.ObservableList<E>, AccessorListMethods<E>, LiveList<E>, ProperLiveList<E>, Observable<LiveList.Observer<? super E,?>>, ProperObservable<LiveList.Observer<? super E,?>,QuasiListChange<? extends E>>

public final class LiveArrayList<E> extends LiveListBase<E>
  • Field Details

    • list

      private List<E> list
  • Constructor Details

    • LiveArrayList

      public LiveArrayList()
    • LiveArrayList

      public LiveArrayList(Collection<? extends E> c)
    • LiveArrayList

      @SafeVarargs public LiveArrayList(E... initialElements)
  • Method Details

    • size

      public int size()
    • get

      public E get(int index)
    • set

      public E set(int index, E element)
    • setAll

      public boolean setAll(Collection<? extends E> c)
    • setAll

      @SafeVarargs public final boolean setAll(E... elems)
    • add

      public void add(int index, E element)
    • add

      public boolean add(E e)
    • addAll

      public boolean addAll(int index, Collection<? extends E> c)
    • addAll

      public boolean addAll(Collection<? extends E> c)
    • addAll

      @SafeVarargs public final boolean addAll(E... elems)
    • remove

      public E remove(int index)
    • remove

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

      public boolean remove(Object o)
    • removeAll

      public boolean removeAll(Collection<?> c)
    • removeAll

      @SafeVarargs public final boolean removeAll(E... elems)
    • retainAll

      public boolean retainAll(Collection<?> c)
    • retainAll

      @SafeVarargs public final boolean retainAll(E... elems)
    • clear

      public void clear()
    • observeInputs

      protected Subscription observeInputs()
      Description copied from class: ObservableBase
      Starts observing this observable's input(s), if any. This method is called when the number of observers goes from 0 to 1. This method is called before ObservableBase.newObserver(Object) is called for the first observer.
      Specified by:
      observeInputs in class ObservableBase<LiveList.Observer<? super E,?>,QuasiListChange<? extends E>>
      Returns:
      subscription used to stop observing inputs. The subscription is unsubscribed (i.e. input observation stops) when the number of observers goes down to 0.