org.databene.benerator.wrapper
Class AsBigDecimalGeneratorWrapper<E extends java.lang.Number>
java.lang.Object
org.databene.benerator.util.AbstractGenerator<P>
org.databene.benerator.wrapper.GeneratorWrapper<E,java.math.BigDecimal>
org.databene.benerator.wrapper.AsBigDecimalGeneratorWrapper<E>
- All Implemented Interfaces:
- java.io.Closeable, Generator<java.math.BigDecimal>, org.databene.commons.Resettable, org.databene.commons.ThreadAware
public class AsBigDecimalGeneratorWrapper<E extends java.lang.Number>
- extends GeneratorWrapper<E,java.math.BigDecimal>
Converts the Number
products of another Generator
to BigDecimal
.
Created at 23.06.2009 22:58:26
- Since:
- 0.6.0
- Author:
- Volker Bergmann
Method Summary |
ProductWrapper<java.math.BigDecimal> |
generate(ProductWrapper<java.math.BigDecimal> wrapper)
Returns an instance of the generic type E, using the ProductWrapper
instance provided as argument. |
java.lang.Class<java.math.BigDecimal> |
getGeneratedType()
Declares the type of the objects returned by the generate() method. |
Methods inherited from class org.databene.benerator.wrapper.GeneratorWrapper |
close, equals, generateFromSource, getSource, getSourceWrapper, hashCode, init, isParallelizable, isThreadSafe, reset, setSource, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
AsBigDecimalGeneratorWrapper
public AsBigDecimalGeneratorWrapper(Generator<E> source)
AsBigDecimalGeneratorWrapper
public AsBigDecimalGeneratorWrapper(Generator<E> source,
java.math.BigDecimal min,
java.math.BigDecimal granularity)
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 ProductWrapper<java.math.BigDecimal> generate(ProductWrapper<java.math.BigDecimal> wrapper)
- Description copied from interface:
Generator
- Returns an instance of the generic type E, using the
ProductWrapper
instance provided as argument.
The wrapper may wrap a null value as a regular generator product.
If the generator is not available (any more), it returns null instead of
the ProductWrapper instance.
Copyright © 2013. All Rights Reserved.