public class Gtin8Builder extends Object
| Constructor and Description |
|---|
Gtin8Builder(Dummy4j dummy4j,
ModTenFormula modTenFormula) |
| Modifier and Type | Method and Description |
|---|---|
String |
build()
Generates a random GTIN
|
protected Gtin8Builder |
self() |
T |
withGs1PrefixRange(Gs1PrefixRange range)
Sets the prefix range for the generated GTIN
|
T |
withRandomGs1PrefixRange()
Sets a random prefix range for the generated GTIN.
|
T |
withRandomGs1PrefixRange(Gs1PrefixRange... ranges)
Sets the random prefix range for the generated GTIN to one that is randomly chosen from provided arguments
|
public Gtin8Builder(Dummy4j dummy4j, ModTenFormula modTenFormula)
protected Gtin8Builder self()
public String build()
public T withRandomGs1PrefixRange()
This is the default behavior for this builder.
Gs1PrefixRangepublic T withRandomGs1PrefixRange(Gs1PrefixRange... ranges)
Gs1PrefixRangepublic T withGs1PrefixRange(Gs1PrefixRange range)
Gs1PrefixRangeCopyright © 2022. All rights reserved.