|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.databene.benerator.util.AbstractGenerator<P>
org.databene.benerator.wrapper.GeneratorWrapper<E,E>
org.databene.benerator.wrapper.GeneratorProxy<E>
org.databene.benerator.wrapper.NShotGeneratorProxy<E>
public class NShotGeneratorProxy<E>
Generator proxy which forwards a limited number of products from another generator.
Created: 23.04.2010 17:59:14
| Field Summary |
|---|
| Fields inherited from class org.databene.benerator.wrapper.GeneratorWrapper |
|---|
source |
| Fields inherited from class org.databene.benerator.util.AbstractGenerator |
|---|
context, state |
| Constructor Summary | |
|---|---|
NShotGeneratorProxy(Generator<E> source,
long shots)
|
|
| Method Summary | |
|---|---|
void |
close()
Closes the generator. |
E |
generate()
Returns an instance of the generic type E. |
void |
reset()
|
| Methods inherited from class org.databene.benerator.wrapper.GeneratorProxy |
|---|
getGeneratedType |
| Methods inherited from class org.databene.benerator.wrapper.GeneratorWrapper |
|---|
equals, getSource, hashCode, init, isParallelizable, isThreadSafe, setSource, toString |
| Methods inherited from class org.databene.benerator.util.AbstractGenerator |
|---|
assertInitialized, assertNotInitialized, wasInitialized |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NShotGeneratorProxy(Generator<E> source,
long shots)
| Method Detail |
|---|
public E generate()
Generator
generate in interface Generator<E>generate in class GeneratorProxy<E>public void reset()
reset in interface org.databene.commons.Resettablereset in class GeneratorWrapper<E,E>public void close()
Generator
close in interface java.io.Closeableclose in interface Generator<E>close in class GeneratorWrapper<E,E>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||