Package org.apache.bval.constraints
Class MaxValidatorForString
- java.lang.Object
-
- org.apache.bval.constraints.MaxValidatorForString
-
- All Implemented Interfaces:
jakarta.validation.ConstraintValidator<jakarta.validation.constraints.Max,String>
public class MaxValidatorForString extends Object implements jakarta.validation.ConstraintValidator<jakarta.validation.constraints.Max,String>
Check that the String being validated represents a number, and has a value less than or equal to the maximum value specified.
-
-
Constructor Summary
Constructors Constructor Description MaxValidatorForString()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
initialize(jakarta.validation.constraints.Max annotation)
boolean
isValid(String value, jakarta.validation.ConstraintValidatorContext context)
-
-
-
Method Detail
-
initialize
public void initialize(jakarta.validation.constraints.Max annotation)
- Specified by:
initialize
in interfacejakarta.validation.ConstraintValidator<jakarta.validation.constraints.Max,String>
-
-