Class VerhoeffValidator
- java.lang.Object
-
- org.apache.bval.extras.constraints.checkdigit.VerhoeffValidator
-
- All Implemented Interfaces:
jakarta.validation.ConstraintValidator<Verhoeff,CharSequence>
public final class VerhoeffValidator extends Object implements jakarta.validation.ConstraintValidator<Verhoeff,CharSequence>
Verhoeff (Dihedral) Check Digit calculation/validation.Check digit calculation for numeric codes using a Dihedral Group of order 10.
See Wikipedia - Verhoeff algorithm for more details.
-
-
Constructor Summary
Constructors Constructor Description VerhoeffValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
initialize(Verhoeff iban)
boolean
isValid(CharSequence code, jakarta.validation.ConstraintValidatorContext context)
-
-
-
Method Detail
-
isValid
public boolean isValid(CharSequence code, jakarta.validation.ConstraintValidatorContext context)
- Specified by:
isValid
in interfacejakarta.validation.ConstraintValidator<Verhoeff,CharSequence>
-
initialize
public void initialize(Verhoeff iban)
- Specified by:
initialize
in interfacejakarta.validation.ConstraintValidator<Verhoeff,CharSequence>
-
-