REGON. Validates both 9 and 14 digits REGON numbers.
| Modifier and Type | Field and Description |
|---|---|
| private static final int[] | |
| private static final int[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected int[] | Returns: an array of weights to be used to calculate a checksuma list of digits to be verified. They are used to determine a size of REGON number - is it 9 or 14 digit number digits)Implements abstract org. |
| public void | initialize(REGON
annotation instance for a given constraint declaration constraintAnnotation)Overrides default jakarta. isValid(Object, ConstraintValidatorContext) calls.
|
| WEIGHTS_REGON_14 | back to summary |
|---|---|
| private static final int[] WEIGHTS_REGON_14 | |
| WEIGHTS_REGON_9 | back to summary |
|---|---|
| private static final int[] WEIGHTS_REGON_9 | |
| REGONValidator | back to summary |
|---|---|
| public REGONValidator() | |
| getWeights | back to summary |
|---|---|
| protected int[] getWeights(List<Integer> digits) Implements abstract org. | |
| initialize | back to summary |
|---|---|
| public void initialize(REGON 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. | |