public final class VerhoeffValidator extends Object implements javax.validation.ConstraintValidator<Verhoeff,String>
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(String code,
javax.validation.ConstraintValidatorContext context) |
public boolean isValid(String code, javax.validation.ConstraintValidatorContext context)
Copyright © 2010-2012 Apache Software Foundation. All Rights Reserved.