public class Mod11CheckValidator extends ModCheckBase implements ConstraintValidator<Mod11Check,CharSequence>
| Constructor and Description |
|---|
Mod11CheckValidator() |
| Modifier and Type | Method and Description |
|---|---|
void |
initialize(Mod11Check constraintAnnotation) |
boolean |
isCheckDigitValid(List<Integer> digits,
char checkDigit)
Validate check digit using Mod11 checksum
|
extractDigit, initialize, isValidclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisValidpublic void initialize(Mod11Check constraintAnnotation)
initialize in interface ConstraintValidator<Mod11Check,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 mod11 result matches the check digit, false otherwiseCopyright © 2007-2014 Red Hat, Inc. All Rights Reserved