org.databene.benerator.primitive
Class UniqueFixedLengthStringGenerator
java.lang.Object
org.databene.benerator.util.AbstractGenerator<P>
org.databene.benerator.wrapper.GeneratorWrapper<S,P>
org.databene.benerator.wrapper.NonNullGeneratorWrapper<int[],java.lang.String>
org.databene.benerator.primitive.UniqueFixedLengthStringGenerator
- All Implemented Interfaces:
- java.io.Closeable, Generator<java.lang.String>, NonNullGenerator<java.lang.String>, org.databene.commons.Resettable, org.databene.commons.ThreadAware
public class UniqueFixedLengthStringGenerator
- extends NonNullGeneratorWrapper<int[],java.lang.String>
Generates unique strings of fixed length.
Created: 15.11.2007 14:07:49
- Author:
- Volker Bergmann
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.databene.commons.ThreadAware |
isParallelizable, isThreadSafe |
Methods inherited from interface org.databene.commons.Resettable |
reset |
DEFAULT_CHAR_SET
public static final java.util.Set<java.lang.Character> DEFAULT_CHAR_SET
UniqueFixedLengthStringGenerator
public UniqueFixedLengthStringGenerator()
UniqueFixedLengthStringGenerator
public UniqueFixedLengthStringGenerator(java.util.Set<java.lang.Character> chars,
int length,
boolean ordered)
getGeneratedType
public java.lang.Class<java.lang.String> 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<java.lang.String>
- Overrides:
init
in class GeneratorWrapper<int[],java.lang.String>
generate
public java.lang.String generate()
toString
public java.lang.String toString()
- Overrides:
toString
in class GeneratorWrapper<int[],java.lang.String>
Copyright © 2013. All Rights Reserved.