Package org.instancio.generator.specs
Interface ZonedDateTimeGeneratorSpec
- All Superinterfaces:
AsGeneratorSpec<ZonedDateTime>,GeneratorSpec<ZonedDateTime>,NullableGeneratorSpec<ZonedDateTime>,TemporalGeneratorSpec<ZonedDateTime>,TruncatableTemporalGeneratorSpec<ZonedDateTime>
- All Known Subinterfaces:
ZonedDateTimeSpec
public interface ZonedDateTimeGeneratorSpec
extends TemporalGeneratorSpec<ZonedDateTime>, TruncatableTemporalGeneratorSpec<ZonedDateTime>
Generator spec for
ZonedDateTime.- Since:
- 4.2.0
-
Method Summary
Modifier and TypeMethodDescriptionfuture()Generate a value in the future.max(ZonedDateTime max) Specifies the upper bound.min(ZonedDateTime min) Specifies the lower bound.nullable()Indicates thatnullvalue can be generated.past()Generate a value in the past.range(ZonedDateTime min, ZonedDateTime max) Generate a value within the given range.truncatedTo(TemporalUnit unit) Truncates generated values to the specified unit.Methods inherited from interface org.instancio.generator.specs.AsGeneratorSpec
as, asString
-
Method Details
-
past
Generate a value in the past.- Specified by:
pastin interfaceTemporalGeneratorSpec<ZonedDateTime>- Returns:
- spec builder
-
future
Generate a value in the future.- Specified by:
futurein interfaceTemporalGeneratorSpec<ZonedDateTime>- Returns:
- spec builder
-
min
Specifies the lower bound.- Specified by:
minin interfaceTemporalGeneratorSpec<ZonedDateTime>- Parameters:
min- lower bound (inclusive)- Returns:
- spec builder
- Since:
- 4.6.0
- See Also:
-
max
Specifies the upper bound.- Specified by:
maxin interfaceTemporalGeneratorSpec<ZonedDateTime>- Parameters:
max- upper bound (inclusive)- Returns:
- spec builder
- Since:
- 4.6.0
- See Also:
-
range
Generate a value within the given range.- Specified by:
rangein interfaceTemporalGeneratorSpec<ZonedDateTime>- Parameters:
min- lower bound (inclusive)max- upper bound (inclusive)- Returns:
- spec builder
- See Also:
-
truncatedTo
Truncates generated values to the specified unit.- Specified by:
truncatedToin interfaceTruncatableTemporalGeneratorSpec<ZonedDateTime>- Parameters:
unit- to truncate to- Returns:
- spec builder
-
nullable
ZonedDateTimeGeneratorSpec nullable()Indicates thatnullvalue can be generated.- Specified by:
nullablein interfaceNullableGeneratorSpec<ZonedDateTime>- Specified by:
nullablein interfaceTemporalGeneratorSpec<ZonedDateTime>- Returns:
- spec builder
-