org.databene.benerator.sample
Class SeedGenerator<E>
java.lang.Object
org.databene.benerator.util.AbstractGenerator<E>
org.databene.benerator.util.AbstractNonNullGenerator<E>
org.databene.benerator.util.UnsafeNonNullGenerator<E[]>
org.databene.benerator.sample.SeedGenerator<E>
- All Implemented Interfaces:
- java.io.Closeable, Generator<E[]>, NonNullGenerator<E[]>, org.databene.commons.Resettable, org.databene.commons.ThreadAware
public class SeedGenerator<E>
- extends UnsafeNonNullGenerator<E[]>
Generates value sequences derived from seed sequences.
Created at 12.07.2009 09:04:43
- Since:
- 0.6.0
- Author:
- Volker Bergmann
Constructor Summary |
SeedGenerator(java.lang.Class<E> atomType,
int depth)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.databene.commons.Resettable |
reset |
SeedGenerator
public SeedGenerator(java.lang.Class<E> atomType,
int depth)
getDepth
public int getDepth()
addSample
public void addSample(E... sequence)
getGeneratedType
public java.lang.Class<E[]> 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<E[]>
- Overrides:
init
in class AbstractGenerator<E[]>
generate
public E[] generate()
- Specified by:
generate
in interface NonNullGenerator<E[]>
- Specified by:
generate
in class AbstractNonNullGenerator<E[]>
printState
public void printState()
printState
public void printState(java.lang.String indent)
Copyright © 2013. All Rights Reserved.