Module com.iamsoft.util.ui
Class SnapshotObservableList<T>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
javafx.collections.ObservableListBase<T>
com.iamsoft.util.ui.javafx.collections.SnapshotObservableList<T>
- Type Parameters:
T
- the list element type.
- All Implemented Interfaces:
Iterable<T>
,Collection<T>
,List<T>
,javafx.beans.Observable
,javafx.collections.ObservableList<T>
- Direct Known Subclasses:
SnapshotObservableList.Exposed
public class SnapshotObservableList<T>
extends javafx.collections.ObservableListBase<T>
Takes snapshots of list and composes events by comparing snapshots.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
boolean
addAll
(int pIndex, Collection<? extends T> pCollection) boolean
addAll
(Collection<? extends T> pCollection) void
clear()
boolean
boolean
containsAll
(Collection<?> pCollection) boolean
get
(int pIdx) int
hashCode()
int
boolean
isEmpty()
iterator()
int
lastIndexOf
(Object pObj) listIterator
(int pIndex) remove
(int pIdx) boolean
boolean
removeAll
(Collection<?> pCollection) void
replaceAll
(UnaryOperator<T> pOperator) boolean
retainAll
(Collection<?> pObjects) int
size()
protected void
snap()
Take snapshot and fire events.void
sort
(Comparator<? super T> pComparator) subList
(int pFromIndex, int pToIndex) Object[]
toArray()
<T> T[]
toArray
(T[] pAry) 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, setAll
Methods inherited from class java.util.AbstractList
removeRange
Methods inherited from class java.util.AbstractCollection
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, toArray
Methods inherited from interface javafx.collections.ObservableList
filtered, sorted, sorted
-
Constructor Details
-
SnapshotObservableList
public SnapshotObservableList() -
SnapshotObservableList
-
-
Method Details
-
snap
protected void snap()Take snapshot and fire events. -
size
public int size()- Specified by:
size
in interfaceCollection<T>
- Specified by:
size
in interfaceList<T>
- Specified by:
size
in classAbstractCollection<T>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceCollection<T>
- Specified by:
isEmpty
in interfaceList<T>
- Overrides:
isEmpty
in classAbstractCollection<T>
-
contains
- Specified by:
contains
in interfaceCollection<T>
- Specified by:
contains
in interfaceList<T>
- Overrides:
contains
in classAbstractCollection<T>
-
iterator
-
toArray
- Specified by:
toArray
in interfaceCollection<T>
- Specified by:
toArray
in interfaceList<T>
- Overrides:
toArray
in classAbstractCollection<T>
-
toArray
public <T> T[] toArray(T[] pAry) - Specified by:
toArray
in interfaceCollection<T>
- Specified by:
toArray
in interfaceList<T>
- Overrides:
toArray
in classAbstractCollection<T>
-
add
- Specified by:
add
in interfaceCollection<T>
- Specified by:
add
in interfaceList<T>
- Overrides:
add
in classAbstractList<T>
-
add
-
remove
- Specified by:
remove
in interfaceCollection<T>
- Specified by:
remove
in interfaceList<T>
- Overrides:
remove
in classAbstractCollection<T>
-
remove
-
containsAll
- Specified by:
containsAll
in interfaceCollection<T>
- Specified by:
containsAll
in interfaceList<T>
- Overrides:
containsAll
in classAbstractCollection<T>
-
addAll
- Specified by:
addAll
in interfaceCollection<T>
- Specified by:
addAll
in interfaceList<T>
- Overrides:
addAll
in classAbstractCollection<T>
-
addAll
-
removeAll
- Specified by:
removeAll
in interfaceCollection<T>
- Specified by:
removeAll
in interfaceList<T>
- Overrides:
removeAll
in classAbstractCollection<T>
-
retainAll
- Specified by:
retainAll
in interfaceCollection<T>
- Specified by:
retainAll
in interfaceList<T>
- Overrides:
retainAll
in classAbstractCollection<T>
-
replaceAll
-
sort
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<T>
- Specified by:
clear
in interfaceList<T>
- Overrides:
clear
in classAbstractList<T>
-
equals
- Specified by:
equals
in interfaceCollection<T>
- Specified by:
equals
in interfaceList<T>
- Overrides:
equals
in classAbstractList<T>
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceCollection<T>
- Specified by:
hashCode
in interfaceList<T>
- Overrides:
hashCode
in classAbstractList<T>
-
get
-
set
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOf
in interfaceList<T>
- Overrides:
lastIndexOf
in classAbstractList<T>
-
listIterator
- Specified by:
listIterator
in interfaceList<T>
- Overrides:
listIterator
in classAbstractList<T>
-
listIterator
- Specified by:
listIterator
in interfaceList<T>
- Overrides:
listIterator
in classAbstractList<T>
-
subList
-
spliterator
-