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>, 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>
  • 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.
    • isEmpty

      default boolean isEmpty()
      Specified by:
      isEmpty in interface Collection<E>
      Specified by:
      isEmpty in interface List<E>
    • indexOf

      default int indexOf(Object o)
      Specified by:
      indexOf in interface List<E>
    • lastIndexOf

      default int lastIndexOf(Object o)
      Specified by:
      lastIndexOf in interface List<E>
    • contains

      default boolean contains(Object o)
      Specified by:
      contains in interface Collection<E>
      Specified by:
      contains in interface List<E>
    • containsAll

      default boolean containsAll(Collection<?> c)
      Specified by:
      containsAll in interface Collection<E>
      Specified by:
      containsAll in interface List<E>
    • iterator

      default Iterator<E> iterator()
      Specified by:
      iterator in interface Collection<E>
      Specified by:
      iterator in interface Iterable<E>
      Specified by:
      iterator in interface List<E>
    • listIterator

      default ListIterator<E> listIterator()
      Specified by:
      listIterator in interface List<E>
    • listIterator

      default ListIterator<E> listIterator(int index)
      Specified by:
      listIterator in interface List<E>
    • subList

      default List<E> subList(int fromIndex, int toIndex)
      Specified by:
      subList in interface List<E>
    • toArray

      default Object[] toArray()
      Specified by:
      toArray in interface Collection<E>
      Specified by:
      toArray in interface List<E>
    • toArray

      default <T> T[] toArray(T[] a)
      Specified by:
      toArray in interface Collection<E>
      Specified by:
      toArray in interface List<E>