Module com.iamsoft.util.ui
Class ObservableEntryList<K,V>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- javafx.collections.ObservableListBase<T>
-
- com.iamsoft.util.ui.javafx.collections.ObservableEntryList<K,V>
-
- Type Parameters:
K
- Key type.V
- Value type.
- All Implemented Interfaces:
Iterable<Map.Entry<K,V>>
,Collection<Map.Entry<K,V>>
,List<Map.Entry<K,V>>
,javafx.beans.Observable
,javafx.collections.ObservableList<Map.Entry<K,V>>
public class ObservableEntryList<K,V> extends javafx.collections.ObservableListBase<T>
ObservableSet containing entries of an ObservableMap.
-
-
Field Summary
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description ObservableEntryList(javafx.collections.ObservableMap<K,V> pMap)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description T
get(int pIdx)
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)
-
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
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, 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, toArray
-
Methods 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, toArray
-
-
-
-
Method Detail
-
size
public int size()
- Specified by:
size
in interfaceCollection<T>
- Specified by:
size
in interfaceList<T>
- Specified by:
size
in classAbstractCollection<T>
-
get
public T get(int pIdx)
- Specified by:
get
in interfaceList<T>
- Specified by:
get
in classAbstractList<T>
-
processDeltas
protected void processDeltas(Map<T,Integer> pCntDelta)
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
protected static int nullToZero(Integer pVal)
-
-