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