T
- Type of object stored in list.public class DistinctObservableList<T>
extends javafx.collections.ObservableListBase<T>
modCount
Modifier | Constructor and Description |
---|---|
|
DistinctObservableList(javafx.collections.ObservableList<? extends T> pList) |
protected |
DistinctObservableList(javafx.collections.ObservableList<? extends T> pList,
Map<T,Integer> pItemToCnt) |
Modifier and Type | Method and Description |
---|---|
T |
get(int pIdx) |
protected Map<T,Integer> |
instantiateDeltaMap(int pSize)
Create map with appropriate 'equality' semantics.
|
protected static int |
nullToZero(Integer pVal) |
protected void |
processDeltas(Map<T,Integer> pCntDelta)
Mutate mDelegate and fire events.
|
int |
size() |
protected static Integer |
zeroToNull(Integer pVal) |
addAll, addListener, addListener, beginChange, endChange, fireChange, hasListeners, nextAdd, nextPermutation, nextRemove, nextRemove, nextReplace, nextSet, nextUpdate, remove, removeAll, removeListener, removeListener, retainAll, setAll, setAll
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
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, toArray
parallelStream, removeIf, stream
public DistinctObservableList(javafx.collections.ObservableList<? extends T> pList)
protected Map<T,Integer> instantiateDeltaMap(int pSize)
public int size()
size
in interface Collection<T>
size
in interface List<T>
size
in class AbstractCollection<T>
public T get(int pIdx)
get
in interface List<T>
get
in class AbstractList<T>
protected void processDeltas(Map<T,Integer> pCntDelta)
pCntDelta
- Map from item to the number of times it should be added to or
removed from mDelegate.protected static int nullToZero(Integer pVal)
Copyright © 2023. All rights reserved.