| Modifier and Type | Field and Description |
|---|---|
| private int[] | customWeights
An array of custom weights to be used in the sum |
| private static final Log | |
| private boolean | |
| private int | threshold
The threshold for the algorithm multiplier multiplier growth |
| private char | treatCheck10As
The |
| private char | treatCheck11As
The |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | initialize(Mod11Check
annotation instance for a given constraint declaration constraintAnnotation)Overrides default jakarta. isValid(Object, ConstraintValidatorContext) calls.
|
| public void | initialize(int startIndex, int endIndex, int checkDigitIndex, boolean ignoreNonDigitCharacters, int threshold, char treatCheck10As, char treatCheck11As, Mod11Check.
|
| public boolean | Returns: true if the mod11 result matches the check digit, false otherwiseThe digits over which to calculate the checksum digits, char the check digit checkDigit)Implements abstract org. |
| customWeights | back to summary |
|---|---|
| private int[] customWeights An array of custom weights to be used in the sum | |
| LOG | back to summary |
|---|---|
| private static final Log LOG Hides org. | |
| reverseOrder | back to summary |
|---|---|
| private boolean reverseOrder | |
| threshold | back to summary |
|---|---|
| private int threshold The threshold for the algorithm multiplier multiplier growth | |
| treatCheck10As | back to summary |
|---|---|
| private char treatCheck10As The | |
| treatCheck11As | back to summary |
|---|---|
| private char treatCheck11As The | |
| Mod11CheckValidator | back to summary |
|---|---|
| public Mod11CheckValidator() | |
| initialize | back to summary |
|---|---|
| public void initialize(Mod11Check 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.
| |
| initialize | back to summary |
|---|---|
| public void initialize(int startIndex, int endIndex, int checkDigitIndex, boolean ignoreNonDigitCharacters, int threshold, char treatCheck10As, char treatCheck11As, Mod11Check. | |
| isCheckDigitValid | back to summary |
|---|---|
| public boolean isCheckDigitValid(List<Integer> digits, char checkDigit) Implements abstract org. Validate check digit using Mod11 checksum | |