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 TypeMethodDescriptionboolean
boolean
addAll
(Collection<? extends T> pCollection) void
clear()
boolean
boolean
containsAll
(Collection<?> pCollection) int
int
int
int
int
Map from operation name to number of invocations.protected Collection<T>
int
int
int
int
int
int
int
int
int
int
int
boolean
isEmpty()
iterator()
boolean
boolean
removeAll
(Collection<?> pCollection) boolean
retainAll
(Collection<?> pCollection) int
size()
Object[]
toArray()
<T1> T1[]
toArray
(T1[] pAry) 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.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:
getDelegate
in classOpCountingObject
-
size
public int size()- Specified by:
size
in interfaceCollection<T>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceCollection<T>
-
contains
- Specified by:
contains
in interfaceCollection<T>
-
iterator
-
toArray
- Specified by:
toArray
in interfaceCollection<T>
-
toArray
public <T1> T1[] toArray(T1[] pAry) - Specified by:
toArray
in interfaceCollection<T>
-
add
- Specified by:
add
in interfaceCollection<T>
-
remove
- Specified by:
remove
in interfaceCollection<T>
-
containsAll
- Specified by:
containsAll
in interfaceCollection<T>
-
addAll
- Specified by:
addAll
in interfaceCollection<T>
-
retainAll
- Specified by:
retainAll
in interfaceCollection<T>
-
removeAll
- Specified by:
removeAll
in interfaceCollection<T>
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<T>
-
getCounts
Map from operation name to number of invocations.- Overrides:
getCounts
in classOpCountingObject
-