Package org.instancio.generator.specs
Interface EmailSpec
- All Superinterfaces:
AsGeneratorSpec<String>,EmailGeneratorSpec,GeneratorSpec<String>,NullableGeneratorSpec<String>,Supplier<String>,ValueSpec<String>
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
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
EmailSpec nullable()Description copied from interface:ValueSpecSpecifies that anullvalue can be generated- Specified by:
nullablein interfaceEmailGeneratorSpec- Specified by:
nullablein interfaceNullableGeneratorSpec<String>- Specified by:
nullablein interfaceValueSpec<String>- Returns:
- spec builder reference
-