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