E
- the generic type of the elements
of this list.public final class ImmutableObservableList<E> extends AbstractList<E> implements javafx.collections.ObservableList<E>
ObservableList
.Modifier and Type | Field and Description |
---|---|
private E[] |
elements |
modCount
Constructor and Description |
---|
ImmutableObservableList(E... elements)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addAll(E... items) |
void |
addListener(javafx.beans.InvalidationListener listener) |
void |
addListener(javafx.collections.ListChangeListener<? super E> listener) |
E |
get(int index) |
void |
remove(int from,
int to) |
boolean |
removeAll(E... items) |
void |
removeListener(javafx.beans.InvalidationListener listener) |
void |
removeListener(javafx.collections.ListChangeListener<? super E> listener) |
boolean |
retainAll(E... items) |
boolean |
setAll(Collection<? extends E> col) |
boolean |
setAll(E... items) |
int |
size() |
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
add, add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, sort, spliterator, subList, toArray, toArray
parallelStream, removeIf, stream
private final E[] elements
@SafeVarargs public ImmutableObservableList(E... elements)
elements
- the elements of this list.public void addListener(javafx.beans.InvalidationListener listener)
addListener
in interface javafx.beans.Observable
public void removeListener(javafx.beans.InvalidationListener listener)
removeListener
in interface javafx.beans.Observable
public void addListener(javafx.collections.ListChangeListener<? super E> listener)
addListener
in interface javafx.collections.ObservableList<E>
public void removeListener(javafx.collections.ListChangeListener<? super E> listener)
removeListener
in interface javafx.collections.ObservableList<E>
@SafeVarargs public final boolean addAll(E... items)
addAll
in interface javafx.collections.ObservableList<E>
@SafeVarargs public final boolean setAll(E... items)
setAll
in interface javafx.collections.ObservableList<E>
public final boolean setAll(Collection<? extends E> col)
setAll
in interface javafx.collections.ObservableList<E>
@SafeVarargs public final boolean removeAll(E... items)
removeAll
in interface javafx.collections.ObservableList<E>
@SafeVarargs public final boolean retainAll(E... items)
retainAll
in interface javafx.collections.ObservableList<E>
public void remove(int from, int to)
remove
in interface javafx.collections.ObservableList<E>
public E get(int index)
public int size()
size
in interface Collection<E>
size
in interface List<E>
size
in class AbstractCollection<E>
Copyright © 2001–2016 mmm-Team. All rights reserved.