public abstract class DelegatingObservableList<E> extends ObservableListBase<E> implements ObservableList<E>
modCount
Constructor and Description |
---|
DelegatingObservableList(ObservableList<E> delegate) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(E e) |
void |
add(int index,
E element) |
boolean |
addAll(Collection<? extends E> c) |
boolean |
addAll(E... elements) |
boolean |
addAll(int index,
Collection<? extends E> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
E |
get(int index) |
protected ObservableList<E> |
getDelegate() |
int |
indexOf(Object o) |
boolean |
isEmpty() |
Iterator<E> |
iterator() |
int |
lastIndexOf(Object o) |
ListIterator<E> |
listIterator() |
ListIterator<E> |
listIterator(int index) |
E |
remove(int index) |
void |
remove(int from,
int to) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
removeAll(E... elements) |
boolean |
retainAll(Collection<?> c) |
boolean |
retainAll(E... elements) |
E |
set(int index,
E element) |
boolean |
setAll(Collection<? extends E> col) |
boolean |
setAll(E... elements) |
int |
size() |
protected abstract void |
sourceChanged(ListChangeListener.Change<? extends E> c) |
List<E> |
subList(int fromIndex,
int toIndex) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
addListener, addListener, beginChange, endChange, fireChange, hasListeners, nextAdd, nextPermutation, nextRemove, nextRemove, nextReplace, nextSet, nextUpdate, removeListener, removeListener
equals, hashCode, removeRange
toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addListener, filtered, removeListener, sorted, sorted
equals, hashCode, replaceAll, sort, spliterator
parallelStream, removeIf, stream
addListener, removeListener
public DelegatingObservableList(@Nonnull ObservableList<E> delegate)
protected ObservableList<E> getDelegate()
protected abstract void sourceChanged(@Nonnull ListChangeListener.Change<? extends E> c)
public boolean removeAll(E... elements)
removeAll
in interface ObservableList<E>
removeAll
in class ObservableListBase<E>
public void remove(int from, int to)
remove
in interface ObservableList<E>
remove
in class ObservableListBase<E>
public E remove(int index)
public int size()
size
in interface Collection<E>
size
in interface List<E>
size
in class AbstractCollection<E>
public int lastIndexOf(Object o)
lastIndexOf
in interface List<E>
lastIndexOf
in class AbstractList<E>
public boolean isEmpty()
isEmpty
in interface Collection<E>
isEmpty
in interface List<E>
isEmpty
in class AbstractCollection<E>
public boolean addAll(E... elements)
addAll
in interface ObservableList<E>
addAll
in class ObservableListBase<E>
public void add(int index, E element)
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<E>
containsAll
in interface List<E>
containsAll
in class AbstractCollection<E>
public void clear()
clear
in interface Collection<E>
clear
in interface List<E>
clear
in class AbstractList<E>
public boolean removeAll(Collection<?> c)
removeAll
in interface Collection<E>
removeAll
in interface List<E>
removeAll
in class AbstractCollection<E>
public <T> T[] toArray(T[] a)
toArray
in interface Collection<E>
toArray
in interface List<E>
toArray
in class AbstractCollection<E>
public boolean remove(Object o)
remove
in interface Collection<E>
remove
in interface List<E>
remove
in class AbstractCollection<E>
public boolean addAll(Collection<? extends E> c)
addAll
in interface Collection<E>
addAll
in interface List<E>
addAll
in class AbstractCollection<E>
public boolean retainAll(E... elements)
retainAll
in interface ObservableList<E>
retainAll
in class ObservableListBase<E>
public boolean retainAll(Collection<?> c)
retainAll
in interface Collection<E>
retainAll
in interface List<E>
retainAll
in class AbstractCollection<E>
public boolean contains(Object o)
contains
in interface Collection<E>
contains
in interface List<E>
contains
in class AbstractCollection<E>
public boolean setAll(Collection<? extends E> col)
setAll
in interface ObservableList<E>
setAll
in class ObservableListBase<E>
public ListIterator<E> listIterator(int index)
listIterator
in interface List<E>
listIterator
in class AbstractList<E>
public boolean add(E e)
add
in interface Collection<E>
add
in interface List<E>
add
in class AbstractList<E>
public boolean addAll(int index, Collection<? extends E> c)
public Object[] toArray()
toArray
in interface Collection<E>
toArray
in interface List<E>
toArray
in class AbstractCollection<E>
public ListIterator<E> listIterator()
listIterator
in interface List<E>
listIterator
in class AbstractList<E>
public E get(int index)
public boolean setAll(E... elements)
setAll
in interface ObservableList<E>
setAll
in class ObservableListBase<E>