Package org.instancio.generator.specs
Interface LocalDateSpec
- All Superinterfaces:
GeneratorSpec<LocalDate>,NullableGeneratorSpec<LocalDate>,TemporalGeneratorSpec<LocalDate>,TemporalSpec<LocalDate>,ValueSpec<LocalDate>
Spec for generating
LocalDate values.- Since:
- 2.6.0
-
Method Details
-
past
LocalDateSpec past()Generate a value in the past.- Specified by:
pastin interfaceTemporalGeneratorSpec<LocalDate>- Specified by:
pastin interfaceTemporalSpec<LocalDate>- Returns:
- spec builder
-
future
LocalDateSpec future()Generate a value in the future.- Specified by:
futurein interfaceTemporalGeneratorSpec<LocalDate>- Specified by:
futurein interfaceTemporalSpec<LocalDate>- Returns:
- spec builder
-
range
Generate a value within the given range.- Specified by:
rangein interfaceTemporalGeneratorSpec<LocalDate>- Specified by:
rangein interfaceTemporalSpec<LocalDate>- Parameters:
start- lower bound (inclusive)end- upper bound (inclusive)- Returns:
- spec builder
-
nullable
LocalDateSpec nullable()Specifies that anullvalue can be generated- Specified by:
nullablein interfaceNullableGeneratorSpec<LocalDate>- Specified by:
nullablein interfaceTemporalGeneratorSpec<LocalDate>- Specified by:
nullablein interfaceTemporalSpec<LocalDate>- Specified by:
nullablein interfaceValueSpec<LocalDate>- Returns:
- spec builder reference
- Since:
- 2.7.0
-