org.databene.benerator.primitive
Class UniqueIntsGenerator
java.lang.Object
org.databene.benerator.util.AbstractGenerator<P>
org.databene.benerator.wrapper.GeneratorWrapper<E,E>
org.databene.benerator.wrapper.GeneratorProxy<E>
org.databene.benerator.wrapper.NonNullGeneratorProxy<int[]>
org.databene.benerator.primitive.UniqueIntsGenerator
- All Implemented Interfaces:
- java.io.Closeable, Generator<int[]>, NonNullGenerator<int[]>, org.databene.commons.Resettable, org.databene.commons.ThreadAware
public class UniqueIntsGenerator
- extends NonNullGeneratorProxy<int[]>
Creates unique pseudo-random int arrays.
Created: 01.08.2011 17:00:57
- Since:
- 0.7.0
- 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 |
UniqueIntsGenerator
public UniqueIntsGenerator(int radix,
int length)
getSource
public IncrementalIntsGenerator getSource()
- Description copied from class:
NonNullGeneratorProxy
- Returns the source generator
- Overrides:
getSource
in class NonNullGeneratorProxy<int[]>
getRadix
public int getRadix()
getLength
public int getLength()
init
public void init(GeneratorContext context)
- Specified by:
init
in interface Generator<int[]>
- Overrides:
init
in class GeneratorWrapper<int[],int[]>
generate
public int[] generate()
- Specified by:
generate
in interface NonNullGenerator<int[]>
- Overrides:
generate
in class NonNullGeneratorProxy<int[]>
reset
public void reset()
- Specified by:
reset
in interface org.databene.commons.Resettable
- Overrides:
reset
in class GeneratorWrapper<int[],int[]>
Copyright © 2013. All Rights Reserved.