Package org.instancio.generator.specs
Interface EanGeneratorSpec
- All Superinterfaces:
GeneratorSpec<String>,NullableGeneratorSpec<String>
- All Known Subinterfaces:
EanSpec
Spec for generating
European Article Number
(EAN).
- Since:
- 2.11.0
-
Method Details
-
type8
EanGeneratorSpec type8()Specifies that EAN-8 should be generated.- Returns:
- spec builder
- Since:
- 2.11.0
-
type13
EanGeneratorSpec type13()Specifies that EAN-13 should be generated (default behaviour if the type is not specified).- Returns:
- spec builder
- Since:
- 2.11.0
-
nullable
EanGeneratorSpec nullable()Indicates thatnullvalue can be generated.- Specified by:
nullablein interfaceNullableGeneratorSpec<String>- Returns:
- spec builder
- Since:
- 2.11.0
-