public final class ObservableSequentialListWrapper<E> extends ModifiableObservableListBase<E> implements ObservableList<E>, SortableList<E>
modCount| Constructor and Description |
|---|
ObservableSequentialListWrapper(List<E> list) |
ObservableSequentialListWrapper(List<E> list,
Callback<E,Observable[]> extractor) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addAll(int index,
Collection<? extends E> c) |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
protected void |
doAdd(int index,
E element)
Adds the
element to the List at the position of index. |
protected E |
doRemove(int index)
Removes the element at position of
index. |
protected E |
doSet(int index,
E element)
Sets the
element in the List at the position of index. |
E |
get(int index) |
int |
indexOf(Object o) |
Iterator<E> |
iterator() |
int |
lastIndexOf(Object o) |
ListIterator<E> |
listIterator(int index) |
int |
size() |
void |
sort()
Sort using default comparator
|
void |
sort(Comparator<? super E> comparator)
Sort using comparator
|
add, addAll, remove, remove, removeAll, removeRange, retainAll, set, setAll, subListaddAll, addListener, addListener, beginChange, endChange, fireChange, hasListeners, nextAdd, nextPermutation, nextRemove, nextRemove, nextReplace, nextSet, nextUpdate, remove, removeAll, removeListener, removeListener, retainAll, setAlladd, clear, equals, hashCode, listIteratorisEmpty, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, addListener, filtered, remove, removeAll, removeListener, retainAll, setAll, setAll, sorted, sortedaddListener, removeListeneradd, add, addAll, clear, equals, hashCode, isEmpty, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, spliterator, subList, toArray, toArrayparallelStream, removeIf, streampublic ObservableSequentialListWrapper(List<E> list, Callback<E,Observable[]> extractor)
public boolean contains(Object o)
contains in interface Collection<E>contains in interface List<E>contains in class AbstractCollection<E>public boolean containsAll(Collection<?> c)
containsAll in interface Collection<E>containsAll in interface List<E>containsAll in class AbstractCollection<E>public int indexOf(Object o)
public int lastIndexOf(Object o)
lastIndexOf in interface List<E>lastIndexOf in class AbstractList<E>public ListIterator<E> listIterator(int index)
listIterator in interface List<E>listIterator in class AbstractList<E>public E get(int index)
public boolean addAll(int index,
Collection<? extends E> c)
public int size()
size in interface Collection<E>size in interface List<E>size in class ModifiableObservableListBase<E>protected void doAdd(int index,
E element)
ModifiableObservableListBaseelement to the List at the position of index.
For the description of possible exceptions, please refer to the documentation
of AbstractList.add(java.lang.Object) method.
doAdd in class ModifiableObservableListBase<E>index - the position where to add the elementelement - the element that will be addedprotected E doSet(int index, E element)
ModifiableObservableListBaseelement in the List at the position of index.
For the description of possible exceptions, please refer to the documentation
of ModifiableObservableListBase.set(int, java.lang.Object) method.
doSet in class ModifiableObservableListBase<E>index - the position where to set the elementelement - the element that will be set at the specified positionprotected E doRemove(int index)
ModifiableObservableListBaseindex.doRemove in class ModifiableObservableListBase<E>index - the index of the removed elementpublic void sort()
SortableListsort in interface SortableList<E>public void sort(Comparator<? super E> comparator)
SortableListCopyright © 2025. All rights reserved.