com.mindoo.remote.api.tools.iterators
Class CastIterator<O,I>

java.lang.Object
  extended by com.mindoo.remote.api.tools.iterators.CastIterator<O,I>
Type Parameters:
O -
I -
All Implemented Interfaces:
java.util.Iterator<O>
Direct Known Subclasses:
ChildElementNodesIterator

public class CastIterator<O,I>
extends java.lang.Object
implements java.util.Iterator<O>

Internal utility class. Not part of the public API.


Constructor Summary
CastIterator(java.util.Iterator<I> wrappedIterator)
           
 
Method Summary
 boolean hasNext()
           
 O next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CastIterator

public CastIterator(java.util.Iterator<I> wrappedIterator)
Method Detail

hasNext

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

next

public O next()
Specified by:
next in interface java.util.Iterator<O>

remove

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