Class DistinctObservableList<T>

  • Type Parameters:
    T - Type of object stored in list.
    All Implemented Interfaces:
    Iterable<T>, Collection<T>, List<T>, javafx.beans.Observable, javafx.collections.ObservableList<T>

    public class DistinctObservableList<T>
    extends javafx.collections.ObservableListBase<T>
    • Constructor Detail

      • DistinctObservableList

        public DistinctObservableList​(javafx.collections.ObservableList<? extends T> pList)
      • DistinctObservableList

        protected DistinctObservableList​(javafx.collections.ObservableList<? extends T> pList,
                                         Map<T,​Integer> pItemToCnt)
    • Method Detail

      • instantiateDeltaMap

        protected Map<T,​Integer> instantiateDeltaMap​(int pSize)
        Create map with appropriate 'equality' semantics.
      • get

        public T get​(int pIdx)
        Specified by:
        get in interface List<T>
        Specified by:
        get in class AbstractList<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)