Class CountingIterator<T>

java.lang.Object
com.google.common.collect.ForwardingObject
com.google.common.collect.ForwardingIterator<T>
org.aksw.commons.collections.cache.IteratorDecorator<T>
org.aksw.commons.collections.cache.CountingIterator<T>
All Implemented Interfaces:
Iterator<T>

public class CountingIterator<T> extends IteratorDecorator<T>
  • Field Details

    • numItems

      protected long numItems
  • Constructor Details

    • CountingIterator

      public CountingIterator(Iterator<T> delegate)
    • CountingIterator

      public CountingIterator(Iterator<T> delegate, long numItems)
  • Method Details

    • getNumItems

      public long getNumItems()
    • next

      public T next()
      Specified by:
      next in interface Iterator<T>
      Overrides:
      next in class com.google.common.collect.ForwardingIterator<T>