org.databene.benerator.primitive
Class UniqueFixedLengthStringGenerator
java.lang.Object
org.databene.benerator.util.AbstractGenerator<E>
org.databene.benerator.util.ThreadSafeGenerator<java.lang.String>
org.databene.benerator.primitive.UniqueFixedLengthStringGenerator
- All Implemented Interfaces:
- java.io.Closeable, Generator<java.lang.String>, org.databene.commons.Resettable, org.databene.commons.ThreadAware
public class UniqueFixedLengthStringGenerator
- extends ThreadSafeGenerator<java.lang.String>
Generates unique strings of fixed length.
Created: 15.11.2007 14:07:49
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DEFAULT_CHAR_SET
public static final java.util.Set<java.lang.Character> DEFAULT_CHAR_SET
ORDERED_CHAR_SET
public static final java.util.Set<java.lang.Character> ORDERED_CHAR_SET
UniqueFixedLengthStringGenerator
public UniqueFixedLengthStringGenerator()
UniqueFixedLengthStringGenerator
public UniqueFixedLengthStringGenerator(int length,
java.util.Set<java.lang.Character> charSet)
UniqueFixedLengthStringGenerator
public UniqueFixedLengthStringGenerator(int length,
char... chars)
init
public void init(GeneratorContext context)
- Specified by:
init in interface Generator<java.lang.String>- Overrides:
init in class AbstractGenerator<java.lang.String>
generate
public java.lang.String generate()
- Description copied from interface:
Generator
- Returns an instance of the generic type E.
reset
public void reset()
- Specified by:
reset in interface org.databene.commons.Resettable- Overrides:
reset in class AbstractGenerator<java.lang.String>
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.
toString
public java.lang.String toString()
- Overrides:
toString in class AbstractGenerator<java.lang.String>
Copyright © 2011. All Rights Reserved.