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 thatnull
value 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 thatnull
value can be generated.- Specified by:
nullable
in interfaceNullableGeneratorSpec<String>
- Returns:
- spec builder
- Since:
- 3.4.2
-