- All Implemented Interfaces:
jakarta.validation.ConstraintValidator<PortRange,Integer>
public class PortRangeValidator
extends Object
implements jakarta.validation.ConstraintValidator<PortRange,Integer>
Allow 0 to indicate dynamic port range allocation. If not zero, it must be within the {min,max}
range, inclusive.
-
Constructor Summary
Constructors
-
Method Summary
void
boolean
isValid(Integer value,
jakarta.validation.ConstraintValidatorContext context)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
PortRangeValidator
public PortRangeValidator()
-
Method Details
-
initialize
public void initialize(PortRange constraintAnnotation)
- Specified by:
initialize
in interface jakarta.validation.ConstraintValidator<PortRange,Integer>
-
isValid
public boolean isValid(Integer value,
jakarta.validation.ConstraintValidatorContext context)
- Specified by:
isValid
in interface jakarta.validation.ConstraintValidator<PortRange,Integer>