| Modifier and Type | Class and Description |
|---|---|
| private static interface | |
| private static enum |
| Modifier and Type | Field and Description |
|---|---|
| private INNValidator. | |
| private static final Pattern | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | initialize(INN
annotation instance for a given constraint declaration constraintAnnotation)Overrides default jakarta. isValid(Object, ConstraintValidatorContext) calls.
|
| public boolean | isValid(CharSequence
object to validate innCharSeq, ConstraintValidatorContext context in which the constraint is evaluated context)Implements jakarta. |
| innValidationAlgorithm | back to summary |
|---|---|
| private INNValidator. | |
| NUMBERS_ONLY_PATTERN | back to summary |
|---|---|
| private static final Pattern NUMBERS_ONLY_PATTERN | |
| RADIX | back to summary |
|---|---|
| private static final int RADIX | |
| INNValidator | back to summary |
|---|---|
| public INNValidator() | |
| initialize | back to summary |
|---|---|
| public void initialize(INN 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. | |
| isValid | back to summary |
|---|---|
| public boolean isValid(CharSequence innCharSeq, ConstraintValidatorContext context) Implements jakarta. Doc from jakarta. Implements the validation logic.
The state of This method can be accessed concurrently, thread-safety must be ensured by the implementation.
| |
| Modifier and Type | Method and Description |
|---|---|
| public static INNValidator. | |
| public boolean | |
| public boolean |
| from | back to summary |
|---|---|
| public static INNValidator. | |
| isValidChecksum | back to summary |
|---|---|
| public boolean isValidChecksum(int[] digits) | |
| isValidLength | back to summary |
|---|---|
| public boolean isValidLength(int length) | |
| Modifier and Type | Field and Description |
|---|---|
| public static final INNValidator. | |
| public static final INNValidator. | |
| private static final int[] | |
| private static final int[] | |
| public static final INNValidator. | |
| private static final int[] | |
| private static final int | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static boolean | checkChecksumJuridicalINN(int[] digits)
Check the digits for juridical INN using algorithm from Wikipedia. |
| private static boolean | checkChecksumPersonalINN(int[] digits)
Check the digits for personal INN using algorithm from Wikipedia. |
| private static int | |
| public static INNValidator. | |
| public static INNValidator. |
| ANY | back to summary |
|---|---|
| public static final INNValidator. | |
| INDIVIDUAL | back to summary |
|---|---|
| public static final INNValidator. | |
| INDIVIDUAL_WEIGHTS_11 | back to summary |
|---|---|
| private static final int[] INDIVIDUAL_WEIGHTS_11 | |
| INDIVIDUAL_WEIGHTS_12 | back to summary |
|---|---|
| private static final int[] INDIVIDUAL_WEIGHTS_12 | |
| JURIDICAL | back to summary |
|---|---|
| public static final INNValidator. | |
| JURIDICAL_WEIGHTS | back to summary |
|---|---|
| private static final int[] JURIDICAL_WEIGHTS | |
| MOD_10 | back to summary |
|---|---|
| private static final int MOD_10 | |
| MOD_11 | back to summary |
|---|---|
| private static final int MOD_11 | |
| INNValidationAlgorithmImpl | back to summary |
|---|---|
| private INNValidationAlgorithmImpl() | |
| checkChecksumJuridicalINN | back to summary |
|---|---|
| private static boolean checkChecksumJuridicalINN(int[] digits) Check the digits for juridical INN using algorithm from Wikipedia. | |
| checkChecksumPersonalINN | back to summary |
|---|---|
| private static boolean checkChecksumPersonalINN(int[] digits) Check the digits for personal INN using algorithm from Wikipedia. | |
| getCheckSum | back to summary |
|---|---|
| private static int getCheckSum(int[] digits, int[] weights) | |
| valueOf | back to summary |
|---|---|
| public static INNValidator. | |
| values | back to summary |
|---|---|
| public static INNValidator. | |