Package org.instancio.generator.specs
Interface LocalDateSpec
- All Superinterfaces:
AsGeneratorSpec<LocalDate>,GeneratorSpec<LocalDate>,NullableGeneratorSpec<LocalDate>,Supplier<LocalDate>,TemporalGeneratorSpec<LocalDate>,TemporalSpec<LocalDate>,ValueSpec<LocalDate>
Spec for generating
LocalDate values.- Since:
- 2.6.0
-
Method Summary
Methods inherited from interface org.instancio.generator.specs.AsGeneratorSpec
as, asString
-
Method Details
-
past
Generate a value in the past.- Specified by:
pastin interfaceTemporalGeneratorSpec<LocalDate>- Specified by:
pastin interfaceTemporalSpec<LocalDate>- Returns:
- spec builder
-
future
Generate a value in the future.- Specified by:
futurein interfaceTemporalGeneratorSpec<LocalDate>- Specified by:
futurein interfaceTemporalSpec<LocalDate>- Returns:
- spec builder
-
min
Specifies the lower bound.- Specified by:
minin interfaceTemporalGeneratorSpec<LocalDate>- Specified by:
minin interfaceTemporalSpec<LocalDate>- Parameters:
min- lower bound (inclusive)- Returns:
- spec builder
- Since:
- 4.6.0
- See Also:
-
max
Specifies the upper bound.- Specified by:
maxin interfaceTemporalGeneratorSpec<LocalDate>- Specified by:
maxin interfaceTemporalSpec<LocalDate>- 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<LocalDate>- Specified by:
rangein interfaceTemporalSpec<LocalDate>- Parameters:
min- lower bound (inclusive)max- upper bound (inclusive)- Returns:
- spec builder
- See Also:
-
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
-