Package org.apache.bval.constraints
Class NumberSignValidator<A extends Annotation>
- java.lang.Object
-
- org.apache.bval.constraints.NumberSignValidator<A>
-
- All Implemented Interfaces:
jakarta.validation.ConstraintValidator<A,Number>
- Direct Known Subclasses:
NumberSignValidator.ForNegative
,NumberSignValidator.ForNegative.OrZero
,NumberSignValidator.ForPositive
,NumberSignValidator.ForPositive.OrZero
public abstract class NumberSignValidator<A extends Annotation> extends Object implements jakarta.validation.ConstraintValidator<A,Number>
Description: validate positive/negative number values.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NumberSignValidator.ForNegative
static class
NumberSignValidator.ForPositive
-
Constructor Summary
Constructors Modifier Constructor Description protected
NumberSignValidator(IntPredicate comparisonTest)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isValid(Number value, jakarta.validation.ConstraintValidatorContext context)
-
-
-
Constructor Detail
-
NumberSignValidator
protected NumberSignValidator(IntPredicate comparisonTest)
-
-
Method Detail
-
isValid
public boolean isValid(Number value, jakarta.validation.ConstraintValidatorContext context)
- Specified by:
isValid
in interfacejakarta.validation.ConstraintValidator<A extends Annotation,Number>
-
-