org.databene.benerator.primitive
Class UniqueStringGenerator
java.lang.Object
org.databene.benerator.util.AbstractGenerator<P>
org.databene.benerator.wrapper.MultiGeneratorWrapper<java.lang.String,java.lang.String>
org.databene.benerator.primitive.UniqueStringGenerator
- All Implemented Interfaces:
- java.io.Closeable, Generator<java.lang.String>, org.databene.commons.Resettable, org.databene.commons.ThreadAware
public class UniqueStringGenerator
- extends MultiGeneratorWrapper<java.lang.String,java.lang.String>
Generates unique strings of variable length.
Created: 16.11.2007 11:56:15
- Author:
- Volker Bergmann
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
UniqueStringGenerator
public UniqueStringGenerator()
UniqueStringGenerator
public UniqueStringGenerator(int minLength,
int maxLength,
java.util.Set<java.lang.Character> charSet)
UniqueStringGenerator
public UniqueStringGenerator(int minLength,
int maxLength,
char... charSet)
getMinLength
public int getMinLength()
setMinLength
public void setMinLength(int minLength)
getMaxLength
public int getMaxLength()
setMaxLength
public void setMaxLength(int maxLength)
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 MultiGeneratorWrapper<java.lang.String,java.lang.String>
generate
public java.lang.String generate()
- Description copied from interface:
Generator
- Returns an instance of the generic type E.
toString
public java.lang.String toString()
- Overrides:
toString in class MultiGeneratorWrapper<java.lang.String,java.lang.String>
Copyright © 2011. All Rights Reserved.