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
ConstructorsConstructorDescriptionObservableSequentialListWrapper(List<E> list) ObservableSequentialListWrapper(List<E> list, Callback<E, Observable[]> extractor) -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddAll(int index, Collection<? extends E> c) booleanbooleancontainsAll(Collection<?> c) protected voidAdds theelementto the List at the position ofindex.protected EdoRemove(int index) Removes the element at position ofindex.protected ESets theelementin the List at the position ofindex.get(int index) intiterator()intlistIterator(int index) intsize()voidsort()Sort using default comparatorvoidsort(Comparator<? super E> comparator) Sort using comparatorMethods inherited from class javafx.collections.ModifiableObservableListBase
add, addAll, remove, remove, removeAll, removeRange, retainAll, set, setAll, subListMethods 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, setAllMethods inherited from class java.util.AbstractList
add, clear, equals, hashCode, listIteratorMethods inherited from class java.util.AbstractCollection
isEmpty, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, streamMethods inherited from interface java.util.List
add, add, addAll, clear, equals, hashCode, isEmpty, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, spliterator, subList, toArray, toArrayMethods inherited from interface javafx.beans.Observable
addListener, removeListenerMethods 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:
containsin interfaceCollection<E>- Specified by:
containsin interfaceList<E>- Overrides:
containsin classAbstractCollection<E>
-
containsAll
- Specified by:
containsAllin interfaceCollection<E>- Specified by:
containsAllin interfaceList<E>- Overrides:
containsAllin classAbstractCollection<E>
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<E>- Overrides:
lastIndexOfin classAbstractList<E>
-
listIterator
- Specified by:
listIteratorin interfaceList<E>- Overrides:
listIteratorin classAbstractList<E>
-
iterator
-
get
-
addAll
-
size
public int size()- Specified by:
sizein interfaceCollection<E>- Specified by:
sizein interfaceList<E>- Specified by:
sizein classModifiableObservableListBase<E>
-
doAdd
Description copied from class:ModifiableObservableListBaseAdds theelementto 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:
doAddin classModifiableObservableListBase<E>- Parameters:
index- the position where to add the elementelement- the element that will be added
-
doSet
Description copied from class:ModifiableObservableListBaseSets theelementin 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:
doSetin 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:ModifiableObservableListBaseRemoves the element at position ofindex.- Specified by:
doRemovein classModifiableObservableListBase<E>- Parameters:
index- the index of the removed element- Returns:
- the removed element
-
sort
public void sort()Description copied from interface:SortableListSort using default comparator- Specified by:
sortin interfaceSortableList<E>
-
sort
Description copied from interface:SortableListSort using comparator
-