-
- All Implemented Interfaces:
-
icu.windea.breezeframework.core.component.Component,icu.windea.breezeframework.core.component.ConfigurableComponent,icu.windea.breezeframework.core.component.ConfigurableRandomGenerator,icu.windea.breezeframework.core.component.RandomGenerator,icu.windea.breezeframework.core.component.TypedComponent,icu.windea.breezeframework.core.model.Configurable
@UnstableApi()@ConfigParam(name = min, type = BigDecimal)@ConfigParam(name = max, type = BigDecimal) public class RandomGenerator.RandomBigDecimalGenerator extends AbstractRandomGenerator<BigDecimal> implements ConfigurableRandomGenerator<BigDecimal>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classRandomGenerator.RandomBigDecimalGenerator.Default
-
Field Summary
Fields Modifier and Type Field Description private final BigDecimalminprivate final BigDecimalmaxprivate final Map<String, Object>configParamsprivate final Class<BigDecimal>targetType
-
Constructor Summary
Constructors Constructor Description RandomGenerator.RandomBigDecimalGenerator(Map<String, Object> configParams)
-
Method Summary
Modifier and Type Method Description final BigDecimalgetMin()final BigDecimalgetMax()final Map<String, Object>getConfigParams()配置参数。 Class<BigDecimal>getTargetType()目标类型。 RandomGenerator.RandomBigDecimalGeneratorconfigure(Map<String, Object> configParams)根据指定的配置复制当前对象,返回一个新对象。 BigDecimalgenerate()生成随机值。 -
-
Method Detail
-
getMin
final BigDecimal getMin()
-
getMax
final BigDecimal getMax()
-
getConfigParams
final Map<String, Object> getConfigParams()
配置参数。
-
getTargetType
Class<BigDecimal> getTargetType()
目标类型。
-
configure
RandomGenerator.RandomBigDecimalGenerator configure(Map<String, Object> configParams)
根据指定的配置复制当前对象,返回一个新对象。
-
generate
BigDecimal generate()
生成随机值。
-
-
-
-