Package org.apache.bval.constraints
Class MaxValidatorForNumber
- java.lang.Object
-
- org.apache.bval.constraints.MaxValidatorForNumber
-
- All Implemented Interfaces:
jakarta.validation.ConstraintValidator<jakarta.validation.constraints.Max,Number>
public class MaxValidatorForNumber extends Object implements jakarta.validation.ConstraintValidator<jakarta.validation.constraints.Max,Number>
Check that the number being validated is less than or equal to the maximum value specified.
-
-
Constructor Summary
Constructors Constructor Description MaxValidatorForNumber()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
initialize(jakarta.validation.constraints.Max annotation)
boolean
isValid(Number 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,Number>
-
-