Top Description Methods
org.reactfx.collection

public Interface UnmodifiableByDefaultLiveList<E>

extends ObservableList<E>, UnmodifiableByDefaultList<E>
Known Direct Implementers
org.reactfx.collection.ValAsList, org.reactfx.collection.MappedList, org.reactfx.collection.DynamicallyMappedList, org.reactfx.collection.MemoizationListImpl, org.reactfx.collection.MemoizationListImpl.MemoizedView
Imports
java.util.Collection, javafx.collections.ObservableList

Trait to be mixed into implementations of unmodifiable LiveLists. Provides default implementations of mutating list methods.

Method Summary

Modifier and TypeMethod and Description
public default boolean
addAll(E... elems)

Implements javafx.collections.ObservableList.addAll.

A convenience method for var-arg addition of elements.

public default void
remove(int from, int to)

Implements javafx.collections.ObservableList.remove.

A simplified way of calling sublist(from, to).clear().

public default boolean
removeAll(E... elems)

Implements javafx.collections.ObservableList.removeAll.

A convenience method for var-arg usage of the removeAll method.

public default boolean
retainAll(E... elems)

Implements javafx.collections.ObservableList.retainAll.

A convenience method for var-arg usage of the retainAll method.

public default boolean
setAll(E... elems)

Implements javafx.collections.ObservableList.setAll.

Clears the ObservableList and adds all the elements passed as var-args.

public default boolean
setAll(Collection<? extends E> elems)

Implements javafx.collections.ObservableList.setAll.

Clears the ObservableList and adds all elements from the collection.

Inherited from javafx.collections.ObservableList:
addListenerfilteredremoveListenersortedsorted
Inherited from org.reactfx.collection.UnmodifiableByDefaultList:
addaddaddAlladdAllclearremoveremoveremoveAllretainAllset

Method Detail

addAllback to summary
public default boolean addAll(E... elems)

Implements javafx.collections.ObservableList.addAll.

Doc from javafx.collections.ObservableList.addAll.

A convenience method for var-arg addition of elements.

Annotations
@Override
removeback to summary
public default void remove(int from, int to)

Implements javafx.collections.ObservableList.remove.

Doc from javafx.collections.ObservableList.remove.

A simplified way of calling sublist(from, to).clear(). As this is a common operation, ObservableList has this method for convenient usage.

Annotations
@Override
removeAllback to summary
public default boolean removeAll(E... elems)

Implements javafx.collections.ObservableList.removeAll.

Doc from javafx.collections.ObservableList.removeAll.

A convenience method for var-arg usage of the removeAll method.

Annotations
@Override
retainAllback to summary
public default boolean retainAll(E... elems)

Implements javafx.collections.ObservableList.retainAll.

Doc from javafx.collections.ObservableList.retainAll.

A convenience method for var-arg usage of the retainAll method.

Annotations
@Override
setAllback to summary
public default boolean setAll(E... elems)

Implements javafx.collections.ObservableList.setAll.

Doc from javafx.collections.ObservableList.setAll.

Clears the ObservableList and adds all the elements passed as var-args.

Annotations
@Override
setAllback to summary
public default boolean setAll(Collection<? extends E> elems)

Implements javafx.collections.ObservableList.setAll.

Doc from javafx.collections.ObservableList.setAll.

Clears the ObservableList and adds all elements from the collection.

Annotations
@Override