Interface EanGeneratorSpec

All Superinterfaces:
GeneratorSpec<String>, NullableGeneratorSpec<String>
All Known Subinterfaces:
EanSpec

public interface EanGeneratorSpec extends NullableGeneratorSpec<String>
Spec for generating European Article Number (EAN).
Since:
2.11.0
  • Method Summary

    Modifier and Type
    Method
    Description
    Indicates that null value can be generated.
    Specifies that EAN-13 should be generated (default behaviour if the type is not specified).
    Specifies that EAN-8 should be generated.
  • Method Details

    • type8

      Specifies that EAN-8 should be generated.
      Returns:
      spec builder
      Since:
      2.11.0
    • 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 that null value can be generated.
      Specified by:
      nullable in interface NullableGeneratorSpec<String>
      Returns:
      spec builder
      Since:
      2.11.0