public class ObservableListAggregation<E> extends ObservableListBase<E>
An ObservableList aggregating other ObservableList(s).
All events of aggregated ObservableList(s) are forwarded.
The list of aggregated ObservableList(s) can be modified to add, remove or replace one or more of the aggregated ObservableList(s).
An appropriate event will be fired.
An instance of ObservableListAggregation is a read only list. Any attempt to modify the list will throw an UnsupportedOperationException.
modCount| Constructor and Description |
|---|
ObservableListAggregation()
Construct an empty list.
|
ObservableListAggregation(List<ObservableList<? extends E>> pLists)
Construct an aggregate list.
|
ObservableListAggregation(ObservableList<? extends E>... pLists)
Construct an aggregate list.
|
| Modifier and Type | Method and Description |
|---|---|
E |
get(int index) |
ObservableList<ObservableList<? extends E>> |
getLists()
Returns the
ObservableList of aggregated ObservableLists. |
int |
size() |
addAll, addListener, addListener, beginChange, endChange, fireChange, hasListeners, nextAdd, nextPermutation, nextRemove, nextRemove, nextReplace, nextSet, nextUpdate, remove, removeAll, removeListener, removeListener, retainAll, setAll, setAlladd, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitfiltered, sorted, sortedadd, add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, sort, spliterator, subList, toArray, toArrayparallelStream, removeIf, streampublic ObservableListAggregation()
public ObservableListAggregation(List<ObservableList<? extends E>> pLists)
pLists - list of ObservableLists to aggregate@SafeVarargs public ObservableListAggregation(ObservableList<? extends E>... pLists)
pLists - ObservableLists to aggregatepublic ObservableList<ObservableList<? extends E>> getLists()
Returns the ObservableList of aggregated ObservableLists.
The returned ObservableList can be modified.
ObservableList of aggregated ObservableLists.public E get(int index)
public int size()
size in interface Collection<E>size in interface List<E>size in class AbstractCollection<E>Copyright © 2018. All rights reserved.