Package org.instancio.generators
Class BigDecimalGenerator
- java.lang.Object
-
- org.instancio.generators.AbstractRandomGenerator<T>
-
- org.instancio.generators.coretypes.AbstractRandomNumberGeneratorSpec<BigDecimal>
-
- org.instancio.generators.BigDecimalGenerator
-
- All Implemented Interfaces:
Generator<BigDecimal>
,NumberGeneratorSpec<BigDecimal>
,GeneratorSpec<BigDecimal>
public class BigDecimalGenerator extends AbstractRandomNumberGeneratorSpec<BigDecimal> implements NumberGeneratorSpec<BigDecimal>
-
-
Field Summary
-
Fields inherited from class org.instancio.generators.coretypes.AbstractRandomNumberGeneratorSpec
max, min, nullable
-
-
Constructor Summary
Constructors Constructor Description BigDecimalGenerator(GeneratorContext context)
BigDecimalGenerator(GeneratorContext context, BigDecimal min, BigDecimal max, boolean nullable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected BigDecimal
generateNonNullValue()
-
Methods inherited from class org.instancio.generators.coretypes.AbstractRandomNumberGeneratorSpec
generate, getHints, max, min, nullable
-
Methods inherited from class org.instancio.generators.AbstractRandomGenerator
getContext, random
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.instancio.Generator
isDelegating, setDelegate, targetType
-
Methods inherited from interface org.instancio.generators.coretypes.NumberGeneratorSpec
max, min, nullable
-
-
-
-
Constructor Detail
-
BigDecimalGenerator
public BigDecimalGenerator(GeneratorContext context)
-
BigDecimalGenerator
public BigDecimalGenerator(GeneratorContext context, BigDecimal min, BigDecimal max, boolean nullable)
-
-
Method Detail
-
generateNonNullValue
protected BigDecimal generateNonNullValue()
- Specified by:
generateNonNullValue
in classAbstractRandomNumberGeneratorSpec<BigDecimal>
-
-