org.databene.benerator.wrapper
Class UniqueCompositeArrayGenerator<S>
java.lang.Object
org.databene.benerator.util.AbstractGenerator<P>
org.databene.benerator.wrapper.MultiGeneratorWrapper<S,S[]>
org.databene.benerator.wrapper.UniqueCompositeArrayGenerator<S>
- All Implemented Interfaces:
- java.io.Closeable, Generator<S[]>, org.databene.commons.Resettable, org.databene.commons.ThreadAware
public class UniqueCompositeArrayGenerator<S>
- extends MultiGeneratorWrapper<S,S[]>
Creates arrays of unique combinations of the output of other generators.
Each array element is filled from an own generator,
each used generator is supposed to generate unique values itself.
Created: 17.11.2007 13:37:37
- Author:
- Volker Bergmann
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
UniqueCompositeArrayGenerator
public UniqueCompositeArrayGenerator()
UniqueCompositeArrayGenerator
public UniqueCompositeArrayGenerator(java.lang.Class<S> componentType,
Generator<? extends S>... sources)
- Initializes the generator to an array of source generators
getGeneratedType
public java.lang.Class<S[]> getGeneratedType()
- Description copied from interface:
Generator
- Declares the type of the objects returned by the generate() method.
init
public void init(GeneratorContext context)
- Specified by:
init in interface Generator<S[]>- Overrides:
init in class MultiGeneratorWrapper<S,S[]>
generate
public S[] generate()
- Description copied from interface:
Generator
- Returns an instance of the generic type E.
- See Also:
Generator.generate()
reset
public void reset()
- Specified by:
reset in interface org.databene.commons.Resettable- Overrides:
reset in class MultiGeneratorWrapper<S,S[]>
Copyright © 2011. All Rights Reserved.