Package org.instancio.generator.specs
Interface OptionalGeneratorSpec<T>
- All Superinterfaces:
GeneratorSpec<Optional<T>>
Generator spec for
Optional
.- Since:
- 2.14.0
-
Method Summary
Modifier and TypeMethodDescriptionSpecifies that an emptyOptional
can be generated.
-
Method Details
-
allowEmpty
GeneratorSpec<Optional<T>> allowEmpty()Specifies that an emptyOptional
can be generated.- Returns:
- spec builder
- Since:
- 2.14.0
-