net.ericaro.neoitertools.generators
Class GeneratorIterator<T>

java.lang.Object
  extended by net.ericaro.neoitertools.generators.GeneratorIterator<T>
All Implemented Interfaces:
java.util.Iterator<T>

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

Gateway between the Generator world, and the Java Iterator one.

Author:
eric
See Also:
GeneratorIterator's wiki page, neoitertools site

Constructor Summary
GeneratorIterator(Generator<T> source)
           
 
Method Summary
 boolean hasNext()
           
 T next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeneratorIterator

public GeneratorIterator(Generator<T> source)
Method Detail

hasNext

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

next

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

remove

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


Copyright © 2011. All Rights Reserved.