public final class ElementObservableListDecorator<E> extends ObservableListBase<E> implements ObservableList<E>
modCount
Constructor and Description |
---|
ElementObservableListDecorator(ObservableList<E> decorated,
Callback<E,Observable[]> extractor) |
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)
A convenient method for var-arg adding of elements.
|
boolean |
addAll(int index,
Collection<? extends E> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
E |
get(int index) |
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)
Basically a shortcut to sublist(from, to).clear()
As this is a common operation, ObservableList has this method for convenient usage.
|
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
removeAll(E... elements)
A convenient method for var-arg usage of removaAll method.
|
boolean |
retainAll(Collection<?> c) |
boolean |
retainAll(E... elements)
A convenient method for var-arg usage of retain method.
|
E |
set(int index,
E element) |
boolean |
setAll(Collection<? extends E> col)
Clears the ObservableList and add all elements from the collection.
|
boolean |
setAll(E... elements)
Clears the ObservableList and add all the elements passed as var-args.
|
int |
size() |
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 ElementObservableListDecorator(ObservableList<E> decorated, Callback<E,Observable[]> extractor)
public <T> T[] toArray(T[] a)
toArray
in interface Collection<E>
toArray
in interface List<E>
toArray
in class AbstractCollection<E>
public Object[] toArray()
toArray
in interface Collection<E>
toArray
in interface List<E>
toArray
in class AbstractCollection<E>
public int size()
size
in interface Collection<E>
size
in interface List<E>
size
in class AbstractCollection<E>
public boolean retainAll(Collection<?> c)
retainAll
in interface Collection<E>
retainAll
in interface List<E>
retainAll
in class AbstractCollection<E>
public boolean removeAll(Collection<?> c)
removeAll
in interface Collection<E>
removeAll
in interface List<E>
removeAll
in class AbstractCollection<E>
public E remove(int index)
public boolean remove(Object o)
remove
in interface Collection<E>
remove
in interface List<E>
remove
in class AbstractCollection<E>
public ListIterator<E> listIterator(int index)
listIterator
in interface List<E>
listIterator
in class AbstractList<E>
public ListIterator<E> listIterator()
listIterator
in interface List<E>
listIterator
in class AbstractList<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 int indexOf(Object o)
public E get(int index)
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<E>
containsAll
in interface List<E>
containsAll
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 void clear()
clear
in interface Collection<E>
clear
in interface List<E>
clear
in class AbstractList<E>
public boolean addAll(int index, Collection<? extends E> c)
public boolean addAll(Collection<? extends E> c)
addAll
in interface Collection<E>
addAll
in interface List<E>
addAll
in class AbstractCollection<E>
public void add(int index, E element)
public boolean add(E e)
add
in interface Collection<E>
add
in interface List<E>
add
in class AbstractList<E>
public boolean setAll(Collection<? extends E> col)
ObservableList
setAll
in interface ObservableList<E>
setAll
in class ObservableListBase<E>
col
- the collection with elements that will be added to this observableArrayListpublic boolean setAll(E... elements)
ObservableList
setAll
in interface ObservableList<E>
setAll
in class ObservableListBase<E>
elements
- the elements to setpublic boolean retainAll(E... elements)
ObservableList
retainAll
in interface ObservableList<E>
retainAll
in class ObservableListBase<E>
elements
- the elements to be retainedpublic boolean removeAll(E... elements)
ObservableList
removeAll
in interface ObservableList<E>
removeAll
in class ObservableListBase<E>
elements
- the elements to be removedpublic void remove(int from, int to)
ObservableList
remove
in interface ObservableList<E>
remove
in class ObservableListBase<E>
from
- the start of the range to remove (inclusive)to
- the end of the range to remove (exclusive)public boolean addAll(E... elements)
ObservableList
addAll
in interface ObservableList<E>
addAll
in class ObservableListBase<E>
elements
- the elements to addCopyright © 2020. All rights reserved.