Class AbstractPatternValidator<A extends Annotation,​T extends CharSequence>

  • All Implemented Interfaces:
    jakarta.validation.ConstraintValidator<A,​T>
    Direct Known Subclasses:
    EmailValidator, PatternValidator

    public abstract class AbstractPatternValidator<A extends Annotation,​T extends CharSequence>
    extends Object
    implements jakarta.validation.ConstraintValidator<A,​T>
    • Field Detail

      • pattern

        protected Pattern pattern
    • Method Detail

      • initialize

        public void initialize​(A constraintAnnotation)
        Specified by:
        initialize in interface jakarta.validation.ConstraintValidator<A extends Annotation,​T extends CharSequence>
      • isValid

        public boolean isValid​(T value,
                               jakarta.validation.ConstraintValidatorContext context)
        Specified by:
        isValid in interface jakarta.validation.ConstraintValidator<A extends Annotation,​T extends CharSequence>