private static class FXCollections.UnmodifiableObservableListImpl<T> extends ObservableListBase<T> implements ObservableList<T>
| Modifier and Type | Field and Description |
|---|---|
private ObservableList<T> |
backingList |
private ListChangeListener<T> |
listener |
| Constructor and Description |
|---|
UnmodifiableObservableListImpl(ObservableList<T> backingList) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addAll(T... elements)
A convenient method for var-arg adding of elements.
|
T |
get(int index) |
void |
remove(int from,
int to)
Basically a shortcut to sublist(from, to).clear()
As this is a common operation, ObservableList has this method for convenient usage.
|
boolean |
removeAll(T... elements)
A convenient method for var-arg usage of removaAll method.
|
boolean |
retainAll(T... elements)
A convenient method for var-arg usage of retain method.
|
boolean |
setAll(java.util.Collection<? extends T> col)
Clears the ObservableList and add all elements from the collection.
|
boolean |
setAll(T... elements)
Clears the ObservableList and add all the elements passed as var-args.
|
int |
size() |
addListener, addListener, beginChange, endChange, fireChange, hasListeners, nextAdd, nextPermutation, nextRemove, nextRemove, nextReplace, nextSet, nextUpdate, removeListener, removeListeneradd, 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, waitaddListener, filtered, removeListener, 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, toArrayaddListener, removeListenerprivate final ObservableList<T> backingList
private final ListChangeListener<T> listener
public UnmodifiableObservableListImpl(ObservableList<T> backingList)
public T get(int index)
public int size()
public boolean addAll(T... elements)
ObservableListaddAll in interface ObservableList<T>addAll in class ObservableListBase<T>elements - the elements to addpublic boolean setAll(T... elements)
ObservableListsetAll in interface ObservableList<T>setAll in class ObservableListBase<T>elements - the elements to setpublic boolean setAll(java.util.Collection<? extends T> col)
ObservableListsetAll in interface ObservableList<T>setAll in class ObservableListBase<T>col - the collection with elements that will be added to this observableArrayListpublic boolean removeAll(T... elements)
ObservableListremoveAll in interface ObservableList<T>removeAll in class ObservableListBase<T>elements - the elements to be removedpublic boolean retainAll(T... elements)
ObservableListretainAll in interface ObservableList<T>retainAll in class ObservableListBase<T>elements - the elements to be retainedpublic void remove(int from,
int to)
ObservableListremove in interface ObservableList<T>remove in class ObservableListBase<T>from - the start of the range to remove (inclusive)to - the end of the range to remove (exclusive)