org.databene.benerator.distribution
Class IndexBasedSampleGeneratorProxy<E>
java.lang.Object
org.databene.benerator.util.AbstractGenerator<P>
org.databene.benerator.wrapper.GeneratorWrapper<E,E>
org.databene.benerator.wrapper.GeneratorProxy<E>
org.databene.benerator.distribution.IndexBasedSampleGeneratorProxy<E>
- All Implemented Interfaces:
- java.io.Closeable, Generator<E>, org.databene.commons.Resettable, org.databene.commons.ThreadAware
public class IndexBasedSampleGeneratorProxy<E>
- extends GeneratorProxy<E>
Internal generator which reads all products of a source generator and provides them with an index-based strategy.
Reevaluates source on reset.
Created: 21.07.2010 01:57:31
- Since:
- 0.6.3
- Author:
- Volker Bergmann
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
IndexBasedSampleGeneratorProxy
public IndexBasedSampleGeneratorProxy(Generator<E> dataProvider,
Distribution distribution,
boolean unique)
init
public void init(GeneratorContext context)
- Specified by:
init
in interface Generator<E>
- Overrides:
init
in class GeneratorWrapper<E,E>
reset
public void reset()
- Specified by:
reset
in interface org.databene.commons.Resettable
- Overrides:
reset
in class GeneratorWrapper<E,E>
close
public void close()
- Description copied from interface:
Generator
- Closes the generator. After invocation the state is unavailable.
- Specified by:
close
in interface java.io.Closeable
- Specified by:
close
in interface Generator<E>
- Overrides:
close
in class GeneratorWrapper<E,E>
Copyright © 2013. All Rights Reserved.