Class 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 Detail

      • OpCountingMap

        public OpCountingMap()
      • OpCountingMap

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

      • 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()
      • 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>