-
- 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
@ConfigParam(name = min, type = LocalDateTime)@ConfigParam(name = max, type = LocalDateTime)@ConfigParam(name = format, type = String, defaultValue = yyyy-MM-dd)@ConfigParam(name = locale, type = String | Locale, defaultValue = <default>)@ConfigParam(name = timeZone, type = String | TimeZone, defaultValue = <utc>)@ConfigParamsPassing(target = Converter.LocalDateTimeConverter.class, configParams = format, locale, timeZone) public class RandomGenerator.RandomLocalDateTimeGenerator extends AbstractRandomGenerator<LocalDateTime> implements ConfigurableRandomGenerator<LocalDateTime>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classRandomGenerator.RandomLocalDateTimeGenerator.Default
-
Field Summary
Fields Modifier and Type Field Description private final LocalDateTimeminprivate final LocalDateTimemaxprivate final Map<String, Object>configParamsprivate final Class<LocalDateTime>targetType
-
Constructor Summary
Constructors Constructor Description RandomGenerator.RandomLocalDateTimeGenerator(Map<String, Object> configParams)
-
Method Summary
Modifier and Type Method Description final LocalDateTimegetMin()final LocalDateTimegetMax()final Map<String, Object>getConfigParams()配置参数。 Class<LocalDateTime>getTargetType()目标类型。 RandomGenerator.RandomLocalDateTimeGeneratorconfigure(Map<String, Object> configParams)根据指定的配置复制当前对象,返回一个新对象。 LocalDateTimegenerate()生成随机值。 -
-
Method Detail
-
getMin
final LocalDateTime getMin()
-
getMax
final LocalDateTime getMax()
-
getConfigParams
final Map<String, Object> getConfigParams()
配置参数。
-
getTargetType
Class<LocalDateTime> getTargetType()
目标类型。
-
configure
RandomGenerator.RandomLocalDateTimeGenerator configure(Map<String, Object> configParams)
根据指定的配置复制当前对象,返回一个新对象。
-
generate
LocalDateTime generate()
生成随机值。
-
-
-
-