Mod10CheckValidator and Mod11CheckValidator@Deprecated public class ModCheckValidator extends ModCheckBase implements javax.validation.ConstraintValidator<ModCheck,CharSequence>
| Constructor and Description |
|---|
ModCheckValidator()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
initialize(ModCheck constraintAnnotation)
Deprecated.
|
boolean |
isCheckDigitValid(List<Integer> digits,
char checkDigit)
Deprecated.
Check if the input passes the Mod10 (Luhn algorithm implementation only) or Mod11 test
|
extractDigit, initialize, isValidpublic void initialize(ModCheck constraintAnnotation)
initialize in interface javax.validation.ConstraintValidator<ModCheck,CharSequence>public boolean isCheckDigitValid(List<Integer> digits, char checkDigit)
isCheckDigitValid in class ModCheckBasedigits - the digits over which to calculate the Mod10 or Mod11 checksumcheckDigit - the check digittrue if the mod 10/11 result matches the check digit, false otherwiseCopyright © 2009-2014 Oracle Corporation. All Rights Reserved.