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 void
clear()
boolean
containsKey(Object pKey)
boolean
containsValue(Object pValue)
Set<Map.Entry<K,V>>
entrySet()
V
get(Object pKey)
int
getClearCnt()
int
getContainsKeyCnt()
int
getContainsValueCnt()
Map<String,Integer>
getCounts()
Map from operation name to number of invocations.protected Map<K,V>
getDelegate()
int
getEntrySetCnt()
int
getGetCnt()
int
getIsEmptyCnt()
int
getKeySetCnt()
int
getPutAllCnt()
int
getPutCnt()
int
getRemoveCnt()
int
getSizeCnt()
int
getValuesCnt()
boolean
isEmpty()
Set<K>
keySet()
V
put(K pKey, V pValue)
void
putAll(Map<? extends K,? extends V> pMap)
V
remove(Object pKey)
int
size()
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:
getDelegate
in classOpCountingObject
-
containsKey
public boolean containsKey(Object pKey)
- Specified by:
containsKey
in interfaceMap<K,V>
-
containsValue
public boolean containsValue(Object pValue)
- Specified by:
containsValue
in interfaceMap<K,V>
-
getCounts
public Map<String,Integer> getCounts()
Map from operation name to number of invocations.- Overrides:
getCounts
in classOpCountingObject
-
-