Deprecated
As of release 5.1.0, replaced by Mod10CheckValidator and Mod11CheckValidator
| Modifier and Type | Field and Description |
|---|---|
| private ModCheck. | modType
The type of checksum algorithm |
| private int | multiplier
Multiplier used by the mod algorithms |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | initialize(ModCheck
annotation instance for a given constraint declaration constraintAnnotation)Overrides default jakarta.
Deprecated
as a consequence of
Initializes the validator in preparation for
ModCheck being deprecated.
isValid(Object, ConstraintValidatorContext) calls.
|
| public boolean | Returns: true if the mod 10/11 result matches the check digit, false otherwisethe digits over which to calculate the Mod10 or Mod11 checksum digits, char the check digit checkDigit)Implements abstract org. |
| modType | back to summary |
|---|---|
| private ModCheck. The type of checksum algorithm | |
| multiplier | back to summary |
|---|---|
| private int multiplier Multiplier used by the mod algorithms | |
| ModCheckValidator | back to summary |
|---|---|
| public ModCheckValidator() | |
| initialize | back to summary |
|---|---|
| public void initialize(ModCheck constraintAnnotation) Overrides default jakarta. Doc from jakarta. Deprecated as a consequence of Initializes the validator in preparation for
This method is guaranteed to be called before any use of this instance for validation. The default implementation is a no-op. | |
| isCheckDigitValid | back to summary |
|---|---|
| public boolean isCheckDigitValid(List<Integer> digits, char checkDigit) Implements abstract org. Check if the input passes the Mod10 (Luhn algorithm implementation only) or Mod11 test | |