Interface BarcodeGenerator
- All Known Implementing Classes:
NumericBarcodeGenerator
public interface BarcodeGenerator
A BarcodeGenerator.
- Author:
- Heiko Scherrer
-
Method Summary
-
Method Details
-
generate
Generate a newBarcode
. Depends on the underlying implementation whether a newBarcode
is created everytime the method is called or not.- Parameters:
transportUnitType
- The known type of the TransportUnitTypeactualLocation
- The known actual Location- Returns:
- A new Barcode instance, never null
-
convert
Convert the givenbarcode
.- 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
-