Class FlatListVal<E>

  • Type Parameters:
    E -
    All Implemented Interfaces:
    Iterable<E>, Collection<E>, List<E>, javafx.beans.Observable, javafx.collections.ObservableList<E>, DefaultMutableLiveList<E>, org.reactfx.collection.LiveList<E>, org.reactfx.collection.ProperLiveList<E>, org.reactfx.Observable<org.reactfx.collection.LiveList.Observer<? super E,​?>>, org.reactfx.ProperObservable<org.reactfx.collection.LiveList.Observer<? super E,​?>,​org.reactfx.collection.QuasiListChange<? extends E>>

    public class FlatListVal<E>
    extends org.reactfx.collection.LiveListBase<E>
    implements DefaultMutableLiveList<E>
    Turns a Val<LiveList<E>> into a LiveList<E> that is an empty, unmodifiable list when the base Val is null, and otherwise delegates everything (including mutation methods) to the underlying value.

    When the value changes a list change that deletes the list is emitted.

    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.reactfx.collection.LiveList

        org.reactfx.collection.LiveList.Observer<E extends Object,​O extends Object>, org.reactfx.collection.LiveList.QuasiChangeObserver<E extends Object>, org.reactfx.collection.LiveList.QuasiModificationObserver<E extends Object>
    • Constructor Summary

      Constructors 
      Constructor Description
      FlatListVal​(org.reactfx.value.Val<? extends javafx.collections.ObservableList<E>> base)  
    • Method Summary

      All Methods Instance Methods Concrete Methods Default Methods 
      Modifier and Type Method Description
      void add​(int index, E element)  
      boolean add​(E e)  
      boolean addAll​(int index, Collection<? extends E> c)  
      boolean addAll​(Collection<? extends E> c)  
      void clear()  
      default boolean contains​(Object arg0)  
      default boolean containsAll​(Collection<?> arg0)  
      E get​(int index)  
      default int indexOf​(Object arg0)  
      default boolean isEmpty()  
      default Iterator<E> iterator()  
      default int lastIndexOf​(Object arg0)  
      default ListIterator<E> listIterator()  
      default ListIterator<E> listIterator​(int arg0)  
      protected org.reactfx.Subscription observeInputs()  
      E remove​(int index)  
      void remove​(int from, int to)  
      boolean remove​(Object o)  
      boolean removeAll​(Collection<?> c)  
      boolean retainAll​(Collection<?> c)  
      E set​(int index, E element)  
      boolean setAll​(Collection<? extends E> col)  
      int size()  
      default List<E> subList​(int arg0, int arg1)  
      default Object[] toArray()  
      default <T extends Object>
      T[]
      toArray​(T[] arg0)  
      • Methods inherited from class org.reactfx.ObservableBase

        addObserver, enqueueNotifications, equals, forEachObserver, getObserverCount, hashCode, isObservingInputs, newObserver, notifyObservers, notifyObservers, observe, removeObserver, toString
      • Methods inherited from interface org.reactfx.collection.LiveList

        addChangeObserver, addListener, addListener, addModificationObserver, addQuasiChangeObserver, addQuasiModificationObserver, changes, collapse, collapseDynamic, map, mapDynamic, memoize, modifications, observeChanges, observeModifications, observeQuasiChanges, observeQuasiModifications, pin, quasiChanges, quasiModifications, reduce, reduceRange, removeChangeObserver, removeListener, removeListener, removeModificationObserver, removeQuasiChangeObserver, removeQuasiModificationObserver, sizeProperty, suspendable
      • Methods inherited from interface org.reactfx.Observable

        addObserver, observe, removeObserver
      • Methods inherited from interface javafx.collections.ObservableList

        filtered, sorted, sorted
      • Methods inherited from interface org.reactfx.collection.ProperLiveList

        contentReplacement, defaultEquals, defaultHashCode, defaultNotificationAccumulator, defaultToString, fireContentReplacement, fireElemInsertion, fireElemRemoval, fireElemReplacement, fireModification, fireRangeInsertion, fireRemoveRange
      • Methods inherited from interface org.reactfx.ProperObservable

        notifyObservers