Package org.instancio.generator.specs
Interface TextPatternSpec
- All Superinterfaces:
GeneratorSpec<String>,NullableGeneratorSpec<String>,TextPatternGeneratorSpec,ValueSpec<String>
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()Specifies that anullvalue can be generated
-
Method Details
-
allowEmpty
TextPatternSpec allowEmpty()Description copied from interface:TextPatternGeneratorSpecIndicates that an empty string can be generated.- Specified by:
allowEmptyin interfaceTextPatternGeneratorSpec- Returns:
- spec builder
-
nullable
TextPatternSpec nullable()Description copied from interface:ValueSpecSpecifies that anullvalue can be generated- Specified by:
nullablein interfaceNullableGeneratorSpec<String>- Specified by:
nullablein interfaceTextPatternGeneratorSpec- Specified by:
nullablein interfaceValueSpec<String>- Returns:
- spec builder reference
-