Module com.iamsoft.util.ui
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 Summary
Constructors Constructor Description OpCountingMap()OpCountingMap(Map<K,V> pDelegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleancontainsKey(Object pKey)booleancontainsValue(Object pValue)Set<Map.Entry<K,V>>entrySet()Vget(Object pKey)intgetClearCnt()intgetContainsKeyCnt()intgetContainsValueCnt()Map<String,Integer>getCounts()Map from operation name to number of invocations.protected Map<K,V>getDelegate()intgetEntrySetCnt()intgetGetCnt()intgetIsEmptyCnt()intgetKeySetCnt()intgetPutAllCnt()intgetPutCnt()intgetRemoveCnt()intgetSizeCnt()intgetValuesCnt()booleanisEmpty()Set<K>keySet()Vput(K pKey, V pValue)voidputAll(Map<? extends K,? extends V> pMap)Vremove(Object pKey)intsize()Collection<V>values()-
Methods inherited from class com.iamsoft.util.ui.javafx.test.OpCountingObject
equals, getEqualsCnt, getHashCodeCnt, getToStringCnt, hashCode, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
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()
-
getDelegate
protected Map<K,V> getDelegate()
- Overrides:
getDelegatein classOpCountingObject
-
containsKey
public boolean containsKey(Object pKey)
- Specified by:
containsKeyin interfaceMap<K,V>
-
containsValue
public boolean containsValue(Object pValue)
- Specified by:
containsValuein interfaceMap<K,V>
-
getCounts
public Map<String,Integer> getCounts()
Map from operation name to number of invocations.- Overrides:
getCountsin classOpCountingObject
-
-