helix.graph.util
Class AdaptedIterator<F,T>

java.lang.Object
  extended by helix.graph.util.AdaptedIterator<F,T>
All Implemented Interfaces:
Iterator<T>
Direct Known Subclasses:
EdgeToVertexIterator

public abstract class AdaptedIterator<F,T>
extends Object
implements Iterator<T>


Constructor Summary
AdaptedIterator(Iterator<F> iterator)
           
 
Method Summary
abstract  T adapt(F f)
           
 boolean hasNext()
           
 T next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdaptedIterator

public AdaptedIterator(Iterator<F> iterator)
Method Detail

adapt

public abstract T adapt(F f)

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<T>

next

public T next()
Specified by:
next in interface Iterator<T>

remove

public void remove()
Specified by:
remove in interface Iterator<T>