org.databene.benerator.distribution.sequence
Class RandomBigDecimalGenerator
java.lang.Object
org.databene.benerator.util.AbstractGenerator<E>
org.databene.benerator.util.ThreadSafeGenerator<java.math.BigDecimal>
org.databene.benerator.distribution.sequence.RandomBigDecimalGenerator
- All Implemented Interfaces:
- java.io.Closeable, Generator<java.math.BigDecimal>, org.databene.commons.Resettable, org.databene.commons.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
|
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()
|
void |
init(GeneratorContext context)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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)
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.
init
public void init(GeneratorContext context)
- Specified by:
init in interface Generator<java.math.BigDecimal>- Overrides:
init in class AbstractGenerator<java.math.BigDecimal>
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 © 2011. All Rights Reserved.