Module com.iamsoft.util.ui
Class OpCountingCollection<T>
java.lang.Object
com.iamsoft.util.ui.javafx.test.OpCountingObject
com.iamsoft.util.ui.javafx.test.collections.OpCountingCollection<T>
- Type Parameters:
T- Item type.
- All Implemented Interfaces:
Iterable<T>,Collection<T>
- Direct Known Subclasses:
OpCountingSet
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection<? extends T> pCollection) voidclear()booleanbooleancontainsAll(Collection<?> pCollection) intintintintintMap from operation name to number of invocations.protected Collection<T>intintintintintintintintintintintbooleanisEmpty()iterator()booleanbooleanremoveAll(Collection<?> pCollection) booleanretainAll(Collection<?> pCollection) intsize()Object[]toArray()<T1> T1[]toArray(T1[] pAry) 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.Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
-
Constructor Details
-
OpCountingCollection
-
-
Method Details
-
getSizeCnt
public int getSizeCnt() -
getIsEmptyCnt
public int getIsEmptyCnt() -
getContainsCnt
public int getContainsCnt() -
getIteratorCnt
public int getIteratorCnt() -
getToArrayCnt
public int getToArrayCnt() -
getToArrayCnt2
public int getToArrayCnt2() -
getAddCnt
public int getAddCnt() -
getRemoveCnt
public int getRemoveCnt() -
getContainsAllCnt
public int getContainsAllCnt() -
getAddAllCnt
public int getAddAllCnt() -
getRetainAllCnt
public int getRetainAllCnt() -
getRemoveAllCnt
public int getRemoveAllCnt() -
getClearCnt
public int getClearCnt() -
getIteratorHasNextCnt
public int getIteratorHasNextCnt() -
getIteratorNextCnt
public int getIteratorNextCnt() -
getIteratorRemoveCnt
public int getIteratorRemoveCnt() -
getDelegate
- Overrides:
getDelegatein classOpCountingObject
-
size
public int size()- Specified by:
sizein interfaceCollection<T>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<T>
-
contains
- Specified by:
containsin interfaceCollection<T>
-
iterator
-
toArray
- Specified by:
toArrayin interfaceCollection<T>
-
toArray
public <T1> T1[] toArray(T1[] pAry) - Specified by:
toArrayin interfaceCollection<T>
-
add
- Specified by:
addin interfaceCollection<T>
-
remove
- Specified by:
removein interfaceCollection<T>
-
containsAll
- Specified by:
containsAllin interfaceCollection<T>
-
addAll
- Specified by:
addAllin interfaceCollection<T>
-
retainAll
- Specified by:
retainAllin interfaceCollection<T>
-
removeAll
- Specified by:
removeAllin interfaceCollection<T>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<T>
-
getCounts
Map from operation name to number of invocations.- Overrides:
getCountsin classOpCountingObject
-