public final class ModUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
passesMod10Test(List<Integer> digits,
int multiplier)
Mod10 (Luhn) algorithm implementation
|
static boolean |
passesMod11Test(List<Integer> digits,
int multiplier)
Check if the input passes the mod11 test
|
public static boolean passesMod11Test(List<Integer> digits, int multiplier)
digits - The digits over which to calculate the mod 11 algorithmmultiplier - the multiplier for the modulo algorithmtrue if the mod 11 result matches the check digit, false otherwisepublic static boolean passesMod10Test(List<Integer> digits, int multiplier)
digits - The digits over which to calculate the checksummultiplier - Multiplier used in the algorithmtrue if the mod 10 result matches the check digit, false otherwiseCopyright © 2007-2012 Red Hat Middleware, LLC. All Rights Reserved