Interface BarcodeGenerator

All Known Implementing Classes:
NumericBarcodeGenerator

public interface BarcodeGenerator
A BarcodeGenerator.
Author:
Heiko Scherrer
  • Method Details

    • generate

      @NotNull @NotNull Barcode generate(String transportUnitType, String actualLocation)
      Generate a new Barcode. Depends on the underlying implementation whether a new Barcode is created everytime the method is called or not.
      Parameters:
      transportUnitType - The known type of the TransportUnitType
      actualLocation - The known actual Location
      Returns:
      A new Barcode instance, never null
    • convert

      Barcode convert(@NotEmpty @NotEmpty String barcode)
      Convert the given barcode.
      Parameters:
      barcode - The Barcode to convert
      Returns:
      An Optional with the formatted barcode as a value if the formatting could be performed or an empty Optional if not