Package org.instancio.generator.specs
Interface EanGeneratorSpec
- All Superinterfaces:
GeneratorSpec<String>
,NullableGeneratorSpec<String>
- All Known Subinterfaces:
EanSpec
- All Known Implementing Classes:
EanGenerator
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 thatnull
value can be generated.- Specified by:
nullable
in interfaceNullableGeneratorSpec<String>
- Returns:
- spec builder
- Since:
- 2.11.0
-