| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static int | Returns: the result of the mod10 checksum calculationThe digits over which to calculate the checksum digits)Calculate Luhn Modulo 10 checksum (Luhn algorithm implementation) |
| public static int | Returns: the result of the mod10 checksum calculationThe digits over which to calculate the checksum digits, int Multiplier used for the odd digits in the algorithm multiplier, int Multiplier used for the even digits in the algorithm weight)Calculate Generic Modulo 10 checksum |
| public static int | Returns: the result of the mod11 checksum calculationthe digits for which to calculate the checksum digits, final int the threshold for the Mod11 algorithm multiplier growth threshold)Calculate Modulo 11 checksum |
| public static int | Returns: the result of the mod11 checksum calculationthe digits for which to calculate the checksum digits)Calculate Modulo 11 checksum assuming that the threshold is Integer.MAX_VALUE |
| public static int | Returns: the result of mod checksum calculationthe digits for which to calculate the checksum digits, int modulo parameter to be used moduloParam, final int threshold, int... weights for the sum. weights)Calculate Modulo |
| ModUtil | back to summary |
|---|---|
| private ModUtil() | |
| calculateLuhnMod10Check | back to summary |
|---|---|
| public static int calculateLuhnMod10Check(final List<Integer> digits) Calculate Luhn Modulo 10 checksum (Luhn algorithm implementation) | |
| calculateMod10Check | back to summary |
|---|---|
| public static int calculateMod10Check(final List<Integer> digits, int multiplier, int weight) Calculate Generic Modulo 10 checksum | |
| calculateMod11Check | back to summary |
|---|---|
| public static int calculateMod11Check(final List<Integer> digits, final int threshold) Calculate Modulo 11 checksum | |
| calculateMod11Check | back to summary |
|---|---|
| public static int calculateMod11Check(final List<Integer> digits) Calculate Modulo 11 checksum assuming that the threshold is Integer.MAX_VALUE | |
| calculateModXCheckWithWeights | back to summary |
|---|---|
| public static int calculateModXCheckWithWeights(final List<Integer> digits, int moduloParam, final int threshold, int... weights) Calculate Modulo | |