org.databene.benerator.util
Class GeneratorIterator<E>

java.lang.Object
  extended by org.databene.benerator.util.GeneratorIterator<E>
All Implemented Interfaces:
java.io.Closeable, java.util.Iterator<E>

public class GeneratorIterator<E>
extends java.lang.Object
implements java.util.Iterator<E>, java.io.Closeable

Wraps a Generator with an Iterator interface.

Created at 21.07.2009 10:09:55

Since:
0.6.0
Author:
Volker Bergmann

Constructor Summary
GeneratorIterator(Generator<E> source)
           
 
Method Summary
 void close()
           
protected  E fetchNext(Generator<E> source)
           
 boolean hasNext()
           
 E 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<E> source)
Method Detail

hasNext

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

next

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

remove

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

close

public void close()
Specified by:
close in interface java.io.Closeable

fetchNext

protected E fetchNext(Generator<E> source)


Copyright © 2013. All Rights Reserved.