Package org.instancio.generator.specs
Interface TextPatternAsGeneratorSpec
- All Superinterfaces:
AsGeneratorSpec<String>,GeneratorSpec<String>,NullableGeneratorSpec<String>,TextPatternGeneratorSpec
public interface TextPatternAsGeneratorSpec
extends TextPatternGeneratorSpec, AsGeneratorSpec<String>
Generator spec for text patterns that supports
AsGeneratorSpec.- Since:
- 3.6.1
-
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()Description copied from interface:TextPatternGeneratorSpecIndicates that an empty string can be generated.- Specified by:
allowEmptyin interfaceTextPatternGeneratorSpec- Returns:
- spec builder
-
nullable
TextPatternGeneratorSpec nullable()Description copied from interface:TextPatternGeneratorSpecIndicates thatnullvalue can be generated.- Specified by:
nullablein interfaceNullableGeneratorSpec<String>- Specified by:
nullablein interfaceTextPatternGeneratorSpec- Returns:
- spec builder
-