Package org.instancio.generators
Interface MathGenerators
- All Known Subinterfaces:
MathSpecs
public interface MathGenerators
Contains built-in generators for
java.math classes.-
Method Summary
Modifier and TypeMethodDescriptionCustomises generatedBigDecimalvalues.Customises generatedBigIntegervalues.
-
Method Details
-
bigInteger
NumberGeneratorSpec<BigInteger> bigInteger()Customises generatedBigIntegervalues.- Returns:
- API builder reference
-
bigDecimal
BigDecimalGeneratorSpec bigDecimal()Customises generatedBigDecimalvalues.The spec provides two options for customising generated values:
- Using the
min(BigDecimal),max(BigDecimal}, orrange(BigDecimal, BigDecimal)methods - Using the
precision(int)method
See
BigDecimalGeneratorSpec.precision(int)for details.- Returns:
- API builder reference
- Using the
-