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