Package org.instancio.generator.specs
Interface MonthDaySpec
- All Superinterfaces:
AsGeneratorSpec<MonthDay>,GeneratorSpec<MonthDay>,MonthDayGeneratorSpec,Supplier<MonthDay>,ValueSpec<MonthDay>
Generator spec for
MonthDay types.- Since:
- 5.0.0
-
Method Summary
Modifier and TypeMethodDescriptionGenerate aMonthDayvalue on or before the specified day.Generate aMonthDayvalue on or after the specified day.nullable()Specifies that anullvalue can be generatedGenerate aMonthDayvalue between the given range.Methods inherited from interface org.instancio.generator.specs.AsGeneratorSpec
as, asString
-
Method Details
-
min
Generate aMonthDayvalue on or after the specified day.- Specified by:
minin interfaceMonthDayGeneratorSpec- Parameters:
min- lower bound- Returns:
- spec builder
- Since:
- 5.0.0
-
max
Generate aMonthDayvalue on or before the specified day.- Specified by:
maxin interfaceMonthDayGeneratorSpec- Parameters:
max- upper bound- Returns:
- spec builder
- Since:
- 5.0.0
-
range
Generate aMonthDayvalue between the given range.- Specified by:
rangein interfaceMonthDayGeneratorSpec- Parameters:
min- lower bound (inclusive)max- upper bound (inclusive)- Returns:
- spec builder
- Since:
- 5.0.0
-
nullable
MonthDaySpec nullable()Specifies that anullvalue can be generated
-