org.databene.benerator.primitive
Class IncrementalIntsGenerator

java.lang.Object
  extended by org.databene.benerator.util.AbstractGenerator<E>
      extended by org.databene.benerator.util.AbstractNonNullGenerator<E>
          extended by org.databene.benerator.util.ThreadSafeNonNullGenerator<int[]>
              extended by org.databene.benerator.primitive.IncrementalIntsGenerator
All Implemented Interfaces:
java.io.Closeable, Generator<int[]>, NonNullGenerator<int[]>, org.databene.commons.Resettable, org.databene.commons.ThreadAware

public class IncrementalIntsGenerator
extends ThreadSafeNonNullGenerator<int[]>

Generates int arrays in the same manner in which decimal numbers are used. It can be used to generate numbers or strings of arbitrary numerical radix.

Created: 01.08.2011 15:15:39

Since:
0.7.0
Author:
Volker Bergmann

Field Summary
 
Fields inherited from class org.databene.benerator.util.AbstractGenerator
context, logger, state
 
Constructor Summary
IncrementalIntsGenerator(int radix, int length)
           
 
Method Summary
 int[] generate()
           
 java.lang.Class<int[]> getGeneratedType()
          Declares the type of the objects returned by the generate() method.
 int getLength()
           
 int getRadix()
           
 void reset()
           
 
Methods inherited from class org.databene.benerator.util.ThreadSafeNonNullGenerator
isParallelizable, isThreadSafe
 
Methods inherited from class org.databene.benerator.util.AbstractNonNullGenerator
generate
 
Methods inherited from class org.databene.benerator.util.AbstractGenerator
assertInitialized, assertNotInitialized, close, getResultWrapper, init, toString, wasInitialized
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.databene.benerator.Generator
close, init, wasInitialized
 

Constructor Detail

IncrementalIntsGenerator

public IncrementalIntsGenerator(int radix,
                                int length)
Method Detail

getRadix

public int getRadix()

getLength

public int getLength()

getGeneratedType

public java.lang.Class<int[]> getGeneratedType()
Description copied from interface: Generator
Declares the type of the objects returned by the generate() method.


generate

public int[] generate()
Specified by:
generate in interface NonNullGenerator<int[]>
Specified by:
generate in class AbstractNonNullGenerator<int[]>

reset

public void reset()
Specified by:
reset in interface org.databene.commons.Resettable
Overrides:
reset in class AbstractGenerator<int[]>


Copyright © 2013. All Rights Reserved.