Package org.instancio.generator.specs
Interface EmailAsGeneratorSpec
- All Superinterfaces:
AsGeneratorSpec<String>
,EmailGeneratorSpec
,GeneratorSpec<String>
,NullableGeneratorSpec<String>
- All Known Implementing Classes:
EmailGenerator
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:EmailGeneratorSpec
Specifies email address length.- Specified by:
length
in interfaceEmailGeneratorSpec
- Parameters:
length
- of email address- Returns:
- spec builder
-
length
Description copied from interface:EmailGeneratorSpec
Specifies email address length range.- Specified by:
length
in interfaceEmailGeneratorSpec
- Parameters:
min
- minimum length of address (inclusive)max
- maximum length of address (inclusive)- Returns:
- spec builder
-
nullable
EmailAsGeneratorSpec nullable()Indicates thatnull
value can be generated.- Specified by:
nullable
in interfaceEmailGeneratorSpec
- Specified by:
nullable
in interfaceNullableGeneratorSpec<String>
- Returns:
- spec builder
- Since:
- 2.11.0
-