public final class VerhoeffValidator extends Object implements javax.validation.ConstraintValidator<Verhoeff,CharSequence>
Check digit calculation for numeric codes using a Dihedral Group of order 10.
See Wikipedia - Verhoeff algorithm for more details.
| Constructor and Description |
|---|
VerhoeffValidator() |
| Modifier and Type | Method and Description |
|---|---|
void |
initialize(Verhoeff iban) |
boolean |
isValid(CharSequence code,
javax.validation.ConstraintValidatorContext context) |
public boolean isValid(CharSequence code, javax.validation.ConstraintValidatorContext context)
isValid in interface javax.validation.ConstraintValidator<Verhoeff,CharSequence>public void initialize(Verhoeff iban)
initialize in interface javax.validation.ConstraintValidator<Verhoeff,CharSequence>Copyright © 2010–2020 The Apache Software Foundation. All rights reserved.