| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | initialize(LuhnCheck
annotation instance for a given constraint declaration constraintAnnotation)Overrides default jakarta. isValid(Object, ConstraintValidatorContext) calls.
|
| public boolean | Returns: true if the luhn check result matches the check digit, false otherwiseThe digits over which to calculate the checksum digits, char the check digit checkDigit)Implements abstract org. |
| LuhnCheckValidator | back to summary |
|---|---|
| public LuhnCheckValidator() | |
| initialize | back to summary |
|---|---|
| public void initialize(LuhnCheck constraintAnnotation) Overrides default jakarta. Doc from jakarta. 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. Validate check digit using Luhn algorithm | |