Uses of Interface
org.instancio.generator.specs.DurationGeneratorSpec
Packages that use DurationGeneratorSpec
Package
Description
Defines generator specs.
Defines classes that provide access to built-in generators.
-
Uses of DurationGeneratorSpec in org.instancio.generator.specs
Subinterfaces of DurationGeneratorSpec in org.instancio.generator.specsMethods in org.instancio.generator.specs that return DurationGeneratorSpecModifier and TypeMethodDescriptionDurationGeneratorSpec.allowZero()Allow aDurationof length zero to be generated.DurationGeneratorSpec.max(long amount, TemporalUnit unit) Generate aDurationless than or equal to the specified amount.DurationGeneratorSpec.min(long amount, TemporalUnit unit) Generate aDurationgreater than or equal to the specified amount.DurationGeneratorSpec.nullable()Indicates thatnullvalue can be generated.DurationGeneratorSpec.of(long minAmount, long maxAmount, TemporalUnit unit) Generate aDurationin the given range, measured in specified units. -
Uses of DurationGeneratorSpec in org.instancio.generators
Methods in org.instancio.generators that return DurationGeneratorSpec