T - Item type.public class OpCountingCollection<T> extends OpCountingObject implements Collection<T>
| Constructor and Description |
|---|
OpCountingCollection(Collection<T> pDelegate) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T pItem) |
boolean |
addAll(Collection<? extends T> pCollection) |
void |
clear() |
boolean |
contains(Object pObj) |
boolean |
containsAll(Collection<?> pCollection) |
int |
getAddAllCnt() |
int |
getAddCnt() |
int |
getClearCnt() |
int |
getContainsAllCnt() |
int |
getContainsCnt() |
Map<String,Integer> |
getCounts()
Map from operation name to number of invocations.
|
protected Collection<T> |
getDelegate() |
int |
getIsEmptyCnt() |
int |
getIteratorCnt() |
int |
getIteratorHasNextCnt() |
int |
getIteratorNextCnt() |
int |
getIteratorRemoveCnt() |
int |
getRemoveAllCnt() |
int |
getRemoveCnt() |
int |
getRetainAllCnt() |
int |
getSizeCnt() |
int |
getToArrayCnt() |
int |
getToArrayCnt2() |
boolean |
isEmpty() |
OpCountingIterator<T> |
iterator() |
boolean |
remove(Object pObj) |
boolean |
removeAll(Collection<?> pCollection) |
boolean |
retainAll(Collection<?> pCollection) |
int |
size() |
Object[] |
toArray() |
<T1> T1[] |
toArray(T1[] pAry) |
equals, getEqualsCnt, getHashCodeCnt, getToStringCnt, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitequals, hashCode, parallelStream, removeIf, spliterator, streampublic OpCountingCollection(Collection<T> pDelegate)
public int getSizeCnt()
public int getIsEmptyCnt()
public int getContainsCnt()
public int getIteratorCnt()
public int getToArrayCnt()
public int getToArrayCnt2()
public int getAddCnt()
public int getRemoveCnt()
public int getContainsAllCnt()
public int getAddAllCnt()
public int getRetainAllCnt()
public int getRemoveAllCnt()
public int getClearCnt()
public int getIteratorHasNextCnt()
public int getIteratorNextCnt()
public int getIteratorRemoveCnt()
protected Collection<T> getDelegate()
getDelegate in class OpCountingObjectpublic int size()
size in interface Collection<T>public boolean isEmpty()
isEmpty in interface Collection<T>public boolean contains(Object pObj)
contains in interface Collection<T>public OpCountingIterator<T> iterator()
public Object[] toArray()
toArray in interface Collection<T>public <T1> T1[] toArray(T1[] pAry)
toArray in interface Collection<T>public boolean add(T pItem)
add in interface Collection<T>public boolean remove(Object pObj)
remove in interface Collection<T>public boolean containsAll(Collection<?> pCollection)
containsAll in interface Collection<T>public boolean addAll(Collection<? extends T> pCollection)
addAll in interface Collection<T>public boolean retainAll(Collection<?> pCollection)
retainAll in interface Collection<T>public boolean removeAll(Collection<?> pCollection)
removeAll in interface Collection<T>public void clear()
clear in interface Collection<T>public Map<String,Integer> getCounts()
getCounts in class OpCountingObjectCopyright © 2023. All rights reserved.