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>
Counts how often methods are called.
-
Nested Class Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleancontainsKey(Object pKey) booleancontainsValue(Object pValue) entrySet()intintintMap from operation name to number of invocations.intintintintintintintintintbooleanisEmpty()keySet()voidintsize()values()Methods inherited from class com.iamsoft.util.ui.javafx.test.OpCountingObject
equals, getEqualsCnt, getHashCodeCnt, getToStringCnt, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
OpCountingMap
public OpCountingMap() -
OpCountingMap
-
-
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
- Overrides:
getDelegatein classOpCountingObject
-
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
- Specified by:
containsKeyin interfaceMap<K,V>
-
containsValue
- Specified by:
containsValuein interfaceMap<K,V>
-
get
-
put
-
remove
-
putAll
-
clear
public void clear() -
keySet
-
values
-
entrySet
-
getCounts
Map from operation name to number of invocations.- Overrides:
getCountsin classOpCountingObject
-