| Modifier and Type | Field and Description |
|---|---|
| private static final Log | |
| private int | multiplier
Multiplier to be used by odd digits on Mod10 algorithm |
| private int | weight
Weight to be used by even digits on Mod10 algorithm |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | initialize(Mod10Check
annotation instance for a given constraint declaration constraintAnnotation)Overrides default jakarta. isValid(Object, ConstraintValidatorContext) calls.
|
| public boolean | Returns: true if the mod 10 result matches the check digit, false otherwiseThe digits over which to calculate the checksum digits, char the check digit checkDigit)Implements abstract org. |
| LOG | back to summary |
|---|---|
| private static final Log LOG Hides org. | |
| multiplier | back to summary |
|---|---|
| private int multiplier Multiplier to be used by odd digits on Mod10 algorithm | |
| weight | back to summary |
|---|---|
| private int weight Weight to be used by even digits on Mod10 algorithm | |
| Mod10CheckValidator | back to summary |
|---|---|
| public Mod10CheckValidator() | |
| initialize | back to summary |
|---|---|
| public void initialize(Mod10Check 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 Mod10 | |