Class FlatListVal<E>
- java.lang.Object
-
- org.reactfx.ObservableBase<org.reactfx.collection.LiveList.Observer<? super E,?>,org.reactfx.collection.QuasiListChange<? extends E>>
-
- org.reactfx.collection.LiveListBase<E>
-
- net.sourceforge.pmd.util.fxdesigner.util.reactfx.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 aVal<LiveList<E>>
into aLiveList<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 class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface net.sourceforge.pmd.util.fxdesigner.util.reactfx.DefaultMutableLiveList
addAll, removeAll, retainAll, setAll
-
Methods inherited from interface java.util.List
equals, hashCode, replaceAll, sort, spliterator
-
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.collection.ProperLiveList
contentReplacement, defaultEquals, defaultHashCode, defaultNotificationAccumulator, defaultToString, fireContentReplacement, fireElemInsertion, fireElemRemoval, fireElemReplacement, fireModification, fireRangeInsertion, fireRemoveRange
-
-
-
-
Constructor Detail
-
FlatListVal
public FlatListVal(org.reactfx.value.Val<? extends javafx.collections.ObservableList<E>> base)
-
-
Method Detail
-
observeInputs
protected org.reactfx.Subscription observeInputs()
-
size
public int size()
-
add
public boolean add(E e)
-
remove
public boolean remove(Object o)
-
addAll
public boolean addAll(Collection<? extends E> c)
-
addAll
public boolean addAll(int index, Collection<? extends E> c)
-
removeAll
public boolean removeAll(Collection<?> c)
-
retainAll
public boolean retainAll(Collection<?> c)
-
clear
public void clear()
-
setAll
public boolean setAll(Collection<? extends E> col)
- Specified by:
setAll
in interfacejavafx.collections.ObservableList<E>
-
remove
public void remove(int from, int to)
- Specified by:
remove
in interfacejavafx.collections.ObservableList<E>
-
isEmpty
public default boolean isEmpty()
-
indexOf
public default int indexOf(Object arg0)
-
lastIndexOf
public default int lastIndexOf(Object arg0)
- Specified by:
lastIndexOf
in interfaceList<E extends Object>
-
contains
public default boolean contains(Object arg0)
-
containsAll
public default boolean containsAll(Collection<?> arg0)
- Specified by:
containsAll
in interfaceCollection<E extends Object>
- Specified by:
containsAll
in interfaceList<E extends Object>
-
iterator
public default Iterator<E> iterator()
-
listIterator
public default ListIterator<E> listIterator()
- Specified by:
listIterator
in interfaceList<E extends Object>
-
listIterator
public default ListIterator<E> listIterator(int arg0)
- Specified by:
listIterator
in interfaceList<E extends Object>
-
subList
public default List<E> subList(int arg0, int arg1)
-
toArray
public default Object[] toArray()
-
-