com.ibm.commons.util
Class IteratorWrapper<T>

java.lang.Object
  extended by com.ibm.commons.util.IteratorWrapper<T>
All Implemented Interfaces:
java.util.Iterator

public abstract class IteratorWrapper<T>
extends java.lang.Object
implements java.util.Iterator

Iterator wrapper.

This wraps an iterator and alos the object it returns to be wraped.


Constructor Summary
IteratorWrapper(java.util.Iterator<?> it)
           
 
Method Summary
 boolean hasNext()
           
 T next()
           
 void remove()
           
protected abstract  T wrap(java.lang.Object o)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IteratorWrapper

public IteratorWrapper(java.util.Iterator<?> it)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator

next

public T next()
Specified by:
next in interface java.util.Iterator

remove

public void remove()
Specified by:
remove in interface java.util.Iterator

wrap

protected abstract T wrap(java.lang.Object o)