Package org.instancio.generator.specs
Interface EmailGeneratorSpec
- All Superinterfaces:
AsGeneratorSpec<String>,GeneratorSpec<String>,NullableGeneratorSpec<String>
- All Known Subinterfaces:
EmailSpec
Spec for generating email addresses.
- Since:
- 2.11.0
-
Method Summary
Methods inherited from interface org.instancio.generator.specs.AsGeneratorSpec
as, asString
-
Method Details
-
length
Specifies email address length.- Parameters:
length- of email address- Returns:
- spec builder
- Since:
- 2.11.0
-
length
Specifies email address length range.- Parameters:
min- minimum length of address (inclusive)max- maximum length of address (inclusive)- Returns:
- spec builder
- Since:
- 2.11.0
-
nullable
EmailGeneratorSpec nullable()Indicates thatnullvalue can be generated.- Specified by:
nullablein interfaceNullableGeneratorSpec<String>- Returns:
- spec builder
- Since:
- 2.11.0
-