com.imcode.util
Class CountingIterator<E>

java.lang.Object
  extended by com.imcode.util.IteratorWrapper<E>
      extended by com.imcode.util.CountingIterator<E>
All Implemented Interfaces:
java.util.Iterator<E>

public class CountingIterator<E>
extends IteratorWrapper<E>


Constructor Summary
CountingIterator(java.util.Iterator<E> iterator)
           
 
Method Summary
 int getCount()
           
 E next()
           
 
Methods inherited from class com.imcode.util.IteratorWrapper
hasNext, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CountingIterator

public CountingIterator(java.util.Iterator<E> iterator)
Method Detail

next

public E next()
Specified by:
next in interface java.util.Iterator<E>
Overrides:
next in class IteratorWrapper<E>

getCount

public int getCount()


Copyright © 2013. All Rights Reserved.