Package org.instancio.generator.specs
Interface TextPatternGeneratorSpec
- All Superinterfaces:
AsGeneratorSpec<String>,GeneratorSpec<String>,NullableGeneratorSpec<String>
- All Known Subinterfaces:
TextPatternSpec
public interface TextPatternGeneratorSpec
extends AsGeneratorSpec<String>, NullableGeneratorSpec<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()Indicates thatnullvalue can be generated.Methods inherited from interface org.instancio.generator.specs.AsGeneratorSpec
as, asString
-
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
-