Class PolishNumberValidator<T extends Annotation>

java.lang.Object
org.hibernate.validator.internal.constraintvalidators.hv.ModCheckBase
org.hibernate.validator.internal.constraintvalidators.hv.pl.PolishNumberValidator<T>
All Implemented Interfaces:
jakarta.validation.ConstraintValidator<T,CharSequence>
Direct Known Subclasses:
NIPValidator, REGONValidator

public abstract class PolishNumberValidator<T extends Annotation> extends ModCheckBase implements jakarta.validation.ConstraintValidator<T,CharSequence>
A base class validator for different Polish identification numbers. They differs in the lengths and weights used to calculate the mod sum. In order to implement one you need to provide a method that gives an array of weights and ConstraintValidator.initialize(Annotation) methods.
Author:
Marko Bekhta
  • Constructor Details

    • PolishNumberValidator

      public PolishNumberValidator()
  • Method Details