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

public class OpCountingCollection<T> extends OpCountingObject implements Collection<T>
  • Constructor Details

    • OpCountingCollection

      public OpCountingCollection(Collection<T> pDelegate)
  • 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

      protected Collection<T> getDelegate()
      Overrides:
      getDelegate in class OpCountingObject
    • size

      public int size()
      Specified by:
      size in interface Collection<T>
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface Collection<T>
    • contains

      public boolean contains(Object pObj)
      Specified by:
      contains in interface Collection<T>
    • iterator

      public OpCountingIterator<T> iterator()
      Specified by:
      iterator in interface Collection<T>
      Specified by:
      iterator in interface Iterable<T>
    • toArray

      public Object[] toArray()
      Specified by:
      toArray in interface Collection<T>
    • toArray

      public <T1> T1[] toArray(T1[] pAry)
      Specified by:
      toArray in interface Collection<T>
    • add

      public boolean add(T pItem)
      Specified by:
      add in interface Collection<T>
    • remove

      public boolean remove(Object pObj)
      Specified by:
      remove in interface Collection<T>
    • containsAll

      public boolean containsAll(Collection<?> pCollection)
      Specified by:
      containsAll in interface Collection<T>
    • addAll

      public boolean addAll(Collection<? extends T> pCollection)
      Specified by:
      addAll in interface Collection<T>
    • retainAll

      public boolean retainAll(Collection<?> pCollection)
      Specified by:
      retainAll in interface Collection<T>
    • removeAll

      public boolean removeAll(Collection<?> pCollection)
      Specified by:
      removeAll in interface Collection<T>
    • clear

      public void clear()
      Specified by:
      clear in interface Collection<T>
    • getCounts

      public Map<String,Integer> getCounts()
      Map from operation name to number of invocations.
      Overrides:
      getCounts in class OpCountingObject