Package org.instancio.generator.specs
Interface TextPatternGeneratorSpec
- All Superinterfaces:
GeneratorSpec<String>,NullableGeneratorSpec<String>
- All Known Subinterfaces:
TextPatternAsGeneratorSpec,TextPatternSpec
Spec for generating strings based on a pattern.
- Since:
- 3.4.2
-
Method Summary
Modifier and TypeMethodDescriptionIndicates that an empty string can be generated.nullable()Indicates thatnullvalue can be generated.
-
Method Details
-
allowEmpty
TextPatternGeneratorSpec allowEmpty()Indicates that an empty string can be generated.- Returns:
- spec builder
- Since:
- 3.4.2
-
nullable
TextPatternGeneratorSpec nullable()Indicates thatnullvalue can be generated.- Specified by:
nullablein interfaceNullableGeneratorSpec<String>- Returns:
- spec builder
- Since:
- 3.4.2
-