Uses of Interface
org.instancio.generator.specs.Mod11GeneratorSpec
Packages that use Mod11GeneratorSpec
-
Uses of Mod11GeneratorSpec in org.instancio.generator.specs
Subinterfaces of Mod11GeneratorSpec in org.instancio.generator.specsModifier and TypeInterfaceDescriptioninterface
A spec for generating numbers that pass the Mod11 checksum algorithm.interface
A spec for generating numbers that pass the Mod11 checksum algorithm.Methods in org.instancio.generator.specs that return Mod11GeneratorSpecModifier and TypeMethodDescriptionMod11GeneratorSpec.checkDigitIndex
(int checkDigitIndex) The index of the check digit in the input.Mod11GeneratorSpec.endIndex
(int endIndex) The end index for calculating the checksum.Mod11GeneratorSpec.leftToRight()
Specifies that the Mod11 checksum must be done from the leftmost to the rightmost digit (default behaviour is right to left).Mod11GeneratorSpec.length
(int length) Length of the number to generate (default value is16
).Mod11GeneratorSpec.nullable()
Indicates thatnull
value can be generated.Mod11GeneratorSpec.startIndex
(int startIndex) The start index for calculating the checksum (default value is0
).Mod11GeneratorSpec.threshold
(int threshold) The threshold for the Mod11 algorithm multiplier growth, if no value is specified the multiplier will grow indefinitely (default value isInteger.MAX_VALUE
).Mod11GeneratorSpec.treatCheck10As
(char treatCheck10As) Thechar
that represents the check digit when the Mod11 checksum equals10
(default value is'X'
).Mod11GeneratorSpec.treatCheck11As
(char treatCheck11As) Thechar
that represents the check digit when the Mod11 checksum equals11
(default value is'0'
).