Package com.sun.javafx.collections
Class ObservableSequentialListWrapper<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
javafx.collections.ObservableListBase<E>
javafx.collections.ModifiableObservableListBase<E>
com.sun.javafx.collections.ObservableSequentialListWrapper<E>
- All Implemented Interfaces:
SortableList<E>
,Iterable<E>
,Collection<E>
,List<E>
,Observable
,ObservableList<E>
public final class ObservableSequentialListWrapper<E>
extends ModifiableObservableListBase<E>
implements ObservableList<E>, SortableList<E>
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
ConstructorDescriptionObservableSequentialListWrapper
(List<E> list) ObservableSequentialListWrapper
(List<E> list, Callback<E, Observable[]> extractor) -
Method Summary
Modifier and TypeMethodDescriptionboolean
addAll
(int index, Collection<? extends E> c) boolean
boolean
containsAll
(Collection<?> c) protected void
Adds theelement
to the List at the position ofindex
.protected E
doRemove
(int index) Removes the element at position ofindex
.protected E
Sets theelement
in the List at the position ofindex
.get
(int index) int
iterator()
int
listIterator
(int index) int
size()
void
sort()
Sort using default comparatorvoid
sort
(Comparator<? super E> comparator) Sort using comparatorMethods inherited from class javafx.collections.ModifiableObservableListBase
add, addAll, remove, remove, removeAll, removeRange, retainAll, set, setAll, subList
Methods inherited from class javafx.collections.ObservableListBase
addAll, addListener, addListener, beginChange, endChange, fireChange, hasListeners, nextAdd, nextPermutation, nextRemove, nextRemove, nextReplace, nextSet, nextUpdate, remove, removeAll, removeListener, removeListener, retainAll, setAll
Methods inherited from class java.util.AbstractList
add, clear, equals, hashCode, listIterator
Methods inherited from class java.util.AbstractCollection
isEmpty, toArray, toArray, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream
Methods inherited from interface java.util.List
add, add, addAll, clear, equals, hashCode, isEmpty, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, spliterator, subList, toArray, toArray
Methods inherited from interface javafx.beans.Observable
addListener, removeListener
Methods inherited from interface javafx.collections.ObservableList
addAll, addListener, filtered, remove, removeAll, removeListener, retainAll, setAll, setAll, sorted
-
Constructor Details
-
ObservableSequentialListWrapper
-
ObservableSequentialListWrapper
-
-
Method Details
-
contains
- Specified by:
contains
in interfaceCollection<E>
- Specified by:
contains
in interfaceList<E>
- Overrides:
contains
in classAbstractCollection<E>
-
containsAll
- Specified by:
containsAll
in interfaceCollection<E>
- Specified by:
containsAll
in interfaceList<E>
- Overrides:
containsAll
in classAbstractCollection<E>
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOf
in interfaceList<E>
- Overrides:
lastIndexOf
in classAbstractList<E>
-
listIterator
- Specified by:
listIterator
in interfaceList<E>
- Overrides:
listIterator
in classAbstractList<E>
-
iterator
-
get
-
addAll
-
size
public int size()- Specified by:
size
in interfaceCollection<E>
- Specified by:
size
in interfaceList<E>
- Specified by:
size
in classModifiableObservableListBase<E>
-
doAdd
Description copied from class:ModifiableObservableListBase
Adds theelement
to the List at the position ofindex
.For the description of possible exceptions, please refer to the documentation of
AbstractList.add(java.lang.Object)
method.- Specified by:
doAdd
in classModifiableObservableListBase<E>
- Parameters:
index
- the position where to add the elementelement
- the element that will be added
-
doSet
Description copied from class:ModifiableObservableListBase
Sets theelement
in the List at the position ofindex
.For the description of possible exceptions, please refer to the documentation of
ModifiableObservableListBase.set(int, java.lang.Object)
method.- Specified by:
doSet
in classModifiableObservableListBase<E>
- Parameters:
index
- the position where to set the elementelement
- the element that will be set at the specified position- Returns:
- the old element at the specified position
-
doRemove
Description copied from class:ModifiableObservableListBase
Removes the element at position ofindex
.- Specified by:
doRemove
in classModifiableObservableListBase<E>
- Parameters:
index
- the index of the removed element- Returns:
- the removed element
-
sort
public void sort()Description copied from interface:SortableList
Sort using default comparator- Specified by:
sort
in interfaceSortableList<E>
-
sort
Description copied from interface:SortableList
Sort using comparator
-