public class Mod10CheckValidator extends ModCheckBase implements ConstraintValidator<Mod10Check,CharSequence>
| Constructor and Description |
|---|
Mod10CheckValidator() |
| Modifier and Type | Method and Description |
|---|---|
void |
initialize(Mod10Check constraintAnnotation) |
boolean |
isCheckDigitValid(List<Integer> digits,
char checkDigit)
Validate check digit using Mod10
|
extractDigit, initialize, isValidclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisValidpublic void initialize(Mod10Check constraintAnnotation)
initialize in interface ConstraintValidator<Mod10Check,CharSequence>public boolean isCheckDigitValid(List<Integer> digits, char checkDigit)
isCheckDigitValid in class ModCheckBasedigits - The digits over which to calculate the checksumcheckDigit - the check digittrue if the mod 10 result matches the check digit, false otherwiseCopyright © 2007-2014 Red Hat, Inc. All Rights Reserved