Package org.instancio.generator.specs
Interface WordTemplateGeneratorSpec
- All Superinterfaces:
AsGeneratorSpec<String>,GeneratorSpec<String>,NullableGeneratorSpec<String>
- All Known Subinterfaces:
WordTemplateSpec
@ExperimentalApi
public interface WordTemplateGeneratorSpec
extends AsGeneratorSpec<String>, NullableGeneratorSpec<String>
A spec for generating text based on a template containing placeholders,
such as
${noun}, ${verb}, ${adjective}, and ${adverb}.- Since:
- 5.2.0
-
Method Summary
Methods inherited from interface org.instancio.generator.specs.AsGeneratorSpec
as, asString
-
Method Details
-
nullable
Indicates thatnullvalue can be generated.- Specified by:
nullablein interfaceNullableGeneratorSpec<String>- Returns:
- spec builder
- Since:
- 5.2.0
-