Uses of Interface
org.instancio.generator.specs.DurationGeneratorSpec
Package
Description
Defines generator specs.
Defines classes that provide access to built-in generators.
-
Uses of DurationGeneratorSpec in org.instancio.generator.specs
Modifier and TypeMethodDescriptionDurationGeneratorSpec.allowZero()
Allow aDuration
of length zero to be generated.DurationGeneratorSpec.max
(long amount, TemporalUnit unit) Generate aDuration
less than or equal to the specified amount.DurationGeneratorSpec.min
(long amount, TemporalUnit unit) Generate aDuration
greater than or equal to the specified amount.DurationGeneratorSpec.nullable()
Indicates thatnull
value can be generated.DurationGeneratorSpec.of
(long minAmount, long maxAmount, TemporalUnit unit) Generate aDuration
in the given range, measured in specified units. -
Uses of DurationGeneratorSpec in org.instancio.generators