org.databene.benerator.distribution.sequence
Class RandomBigDecimalGenerator

java.lang.Object
  extended by org.databene.benerator.util.AbstractGenerator<E>
      extended by org.databene.benerator.util.ThreadSafeGenerator<java.math.BigDecimal>
          extended by org.databene.benerator.distribution.sequence.RandomBigDecimalGenerator
All Implemented Interfaces:
java.io.Closeable, Generator<java.math.BigDecimal>, Resettable, ThreadAware

public class RandomBigDecimalGenerator
extends ThreadSafeGenerator<java.math.BigDecimal>

Generates random BigDecimals with a uniform distribution.
Created at 23.06.2009 23:36:15

Since:
0.6.0
Author:
Volker Bergmann

Field Summary
 
Fields inherited from class org.databene.benerator.util.AbstractGenerator
context, state
 
Constructor Summary
RandomBigDecimalGenerator()
           
RandomBigDecimalGenerator(java.math.BigDecimal min, java.math.BigDecimal max)
           
RandomBigDecimalGenerator(java.math.BigDecimal min, java.math.BigDecimal max, java.math.BigDecimal precision)
           
 
Method Summary
 java.math.BigDecimal generate()
          Returns an instance of the generic type E.
 java.lang.Class<java.math.BigDecimal> getGeneratedType()
          Declares the type of the objects returned by the generate() method.
 java.math.BigDecimal getMax()
           
 java.math.BigDecimal getMin()
           
 java.math.BigDecimal getPrecision()
           
 
Methods inherited from class org.databene.benerator.util.ThreadSafeGenerator
isParallelizable, isThreadSafe
 
Methods inherited from class org.databene.benerator.util.AbstractGenerator
assertInitialized, assertNotInitialized, close, init, reset, toString, wasInitialized
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RandomBigDecimalGenerator

public RandomBigDecimalGenerator()

RandomBigDecimalGenerator

public RandomBigDecimalGenerator(java.math.BigDecimal min,
                                 java.math.BigDecimal max)

RandomBigDecimalGenerator

public RandomBigDecimalGenerator(java.math.BigDecimal min,
                                 java.math.BigDecimal max,
                                 java.math.BigDecimal precision)
Method Detail

getGeneratedType

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


generate

public java.math.BigDecimal generate()
Description copied from interface: Generator
Returns an instance of the generic type E.


getMin

public java.math.BigDecimal getMin()

getMax

public java.math.BigDecimal getMax()

getPrecision

public java.math.BigDecimal getPrecision()


Copyright © 2010. All Rights Reserved.