Package org.instancio.generator.specs
Interface TextPatternSpec
- All Superinterfaces:
AsGeneratorSpec<String>,GeneratorSpec<String>,NullableGeneratorSpec<String>,Supplier<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 generatedMethods inherited from interface org.instancio.generator.specs.AsGeneratorSpec
as, asString
-
Method Details
-
allowEmpty
TextPatternSpec allowEmpty()Indicates that an empty string can be generated.- Specified by:
allowEmptyin interfaceTextPatternGeneratorSpec- Returns:
- spec builder
-
nullable
TextPatternSpec nullable()Specifies that anullvalue can be generated- Specified by:
nullablein interfaceNullableGeneratorSpec<String>- Specified by:
nullablein interfaceTextPatternGeneratorSpec- Specified by:
nullablein interfaceValueSpec<String>- Returns:
- spec builder reference
-