public class REGONValidator extends PolishNumberValidator<REGON>
REGON
. Validates both 9 and 14 digits REGON numbers.Constructor and Description |
---|
REGONValidator() |
Modifier and Type | Method and Description |
---|---|
protected int[] |
getWeights(java.util.List<java.lang.Integer> digits) |
void |
initialize(REGON constraintAnnotation) |
isCheckDigitValid
extractDigit, initialize, isValid
public void initialize(REGON constraintAnnotation)
protected int[] getWeights(java.util.List<java.lang.Integer> digits)
getWeights
in class PolishNumberValidator<REGON>
digits
- a list of digits to be verified. They are used to determine a size of REGON number - is it 9 or 14 digit numberCopyright © 2007-2022 Red Hat, Inc. All Rights Reserved