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 TypeMethodDescriptionvoid
clear()
boolean
containsKey
(Object pKey) boolean
containsValue
(Object pValue) entrySet()
int
int
int
Map from operation name to number of invocations.int
int
int
int
int
int
int
int
int
boolean
isEmpty()
keySet()
void
int
size()
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
-
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:
getDelegate
in classOpCountingObject
-
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
- Specified by:
containsKey
in interfaceMap<K,
V>
-
containsValue
- Specified by:
containsValue
in interfaceMap<K,
V>
-
get
-
put
-
remove
-
putAll
-
clear
public void clear() -
keySet
-
values
-
entrySet
-
getCounts
Map from operation name to number of invocations.- Overrides:
getCounts
in classOpCountingObject
-