Class OpCountingMap<K,V>

java.lang.Object
com.iamsoft.util.ui.javafx.test.OpCountingObject
com.iamsoft.util.ui.javafx.test.collections.OpCountingMap<K,V>
Type Parameters:
K - Key type.
V - Value type.
All Implemented Interfaces:
Map<K,V>

public class OpCountingMap<K,V> extends OpCountingObject implements Map<K,V>
Counts how often methods are called.
  • Constructor Details

    • OpCountingMap

      public OpCountingMap()
    • OpCountingMap

      public OpCountingMap(Map<K,V> pDelegate)
  • Method Details

    • getSizeCnt

      public int getSizeCnt()
    • getIsEmptyCnt

      public int getIsEmptyCnt()
    • getContainsKeyCnt

      public int getContainsKeyCnt()
    • getContainsValueCnt

      public int getContainsValueCnt()
    • getGetCnt

      public int getGetCnt()
    • getPutCnt

      public int getPutCnt()
    • getRemoveCnt

      public int getRemoveCnt()
    • getPutAllCnt

      public int getPutAllCnt()
    • getClearCnt

      public int getClearCnt()
    • getKeySetCnt

      public int getKeySetCnt()
    • getValuesCnt

      public int getValuesCnt()
    • getEntrySetCnt

      public int getEntrySetCnt()
    • getDelegate

      protected Map<K,V> getDelegate()
      Overrides:
      getDelegate in class OpCountingObject
    • size

      public int size()
      Specified by:
      size in interface Map<K,V>
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface Map<K,V>
    • containsKey

      public boolean containsKey(Object pKey)
      Specified by:
      containsKey in interface Map<K,V>
    • containsValue

      public boolean containsValue(Object pValue)
      Specified by:
      containsValue in interface Map<K,V>
    • get

      public V get(Object pKey)
      Specified by:
      get in interface Map<K,V>
    • put

      public V put(K pKey, V pValue)
      Specified by:
      put in interface Map<K,V>
    • remove

      public V remove(Object pKey)
      Specified by:
      remove in interface Map<K,V>
    • putAll

      public void putAll(Map<? extends K,? extends V> pMap)
      Specified by:
      putAll in interface Map<K,V>
    • clear

      public void clear()
      Specified by:
      clear in interface Map<K,V>
    • keySet

      public Set<K> keySet()
      Specified by:
      keySet in interface Map<K,V>
    • values

      public Collection<V> values()
      Specified by:
      values in interface Map<K,V>
    • entrySet

      public Set<Map.Entry<K,V>> entrySet()
      Specified by:
      entrySet in interface Map<K,V>
    • getCounts

      public Map<String,Integer> getCounts()
      Map from operation name to number of invocations.
      Overrides:
      getCounts in class OpCountingObject