Module com.iamsoft.util.ui
Class IntersectionObservableList<T>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
javafx.collections.ObservableListBase<T>
com.iamsoft.util.ui.javafx.collections.IntersectionObservableList<T>
- Type Parameters:
T- Type of item contained within list.
- All Implemented Interfaces:
Iterable<T>,Collection<T>,List<T>,javafx.beans.Observable,javafx.collections.ObservableList<T>
public class IntersectionObservableList<T>
extends javafx.collections.ObservableListBase<T>
List comprising intersection of zero to many child lists. Note that list is not updated
until component list events are processed. Thus, listeners to component list cannot
assume that intersection list is valid.
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionIntersectionObservableList(javafx.collections.ObservableList<javafx.collections.ObservableList<? extends T>> pComponentLists) -
Method Summary
Modifier and TypeMethodDescriptionget(int pIdx) protected static intnullToZero(Integer pVal) protected voidprocessDeltas(Map<T, Integer> pCntDelta) Mutate mDelegate and fire events.intsize()protected static IntegerzeroToNull(Integer pVal) 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, setAllMethods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, 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, stream, toArrayMethods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, sort, spliterator, subList, toArray, toArrayMethods inherited from interface javafx.collections.ObservableList
filtered, sorted, sorted
-
Constructor Details
-
IntersectionObservableList
public IntersectionObservableList(javafx.collections.ObservableList<javafx.collections.ObservableList<? extends T>> pComponentLists) - Parameters:
pComponentLists- Lists tested for intersection.
-
-
Method Details
-
size
public int size()- Specified by:
sizein interfaceCollection<T>- Specified by:
sizein interfaceList<T>- Specified by:
sizein classAbstractCollection<T>
-
get
- Specified by:
getin interfaceList<T>- Specified by:
getin classAbstractList<T>
-
processDeltas
Mutate mDelegate and fire events.- Parameters:
pCntDelta- Map from item to the number of times it should be added to or removed from mDelegate.
-
nullToZero
-
zeroToNull
-