com.imcode.util
Class CountingIterator

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

public class CountingIterator
extends IteratorWrapper


Constructor Summary
CountingIterator(java.util.Iterator iterator)
           
 
Method Summary
 int getCount()
           
 java.lang.Object 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 iterator)
Method Detail

next

public java.lang.Object next()
Specified by:
next in interface java.util.Iterator
Overrides:
next in class IteratorWrapper

getCount

public int getCount()


Copyright © -2005 . All Rights Reserved.