|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.validator.internal.util.ModUtil
public final class ModUtil
Helper class for modulo 10/11.
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
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 algorithm
true if the mod 11 result matches the check digit, false otherwise
public static boolean passesMod10Test(List<Integer> digits,
int multiplier)
digits - The digits over which to calculate the checksummultiplier - Multiplier used in the algorithm
true if the mod 10 result matches the check digit, false otherwise
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||