Package org.instancio.generator.time
Interface TemporalGeneratorSpec<T extends Temporal>
- All Superinterfaces:
GeneratorSpec<T>
- All Known Implementing Classes:
LocalDateGenerator
,LocalDateTimeGenerator
Generator spec for
Temporal
types.-
Method Details
-
past
TemporalGeneratorSpec<T> past()Generate a date in the past.- Returns:
- spec builder
-
future
TemporalGeneratorSpec<T> future()Generate a date in the future.- Returns:
- spec builder
-
range
Generate a date between the given range.- Parameters:
startInclusive
- start date (inclusive)endExclusive
- end date (exclusive)- Returns:
- spec builder
-