Class NegativeValidatorForBigInteger
java.lang.Object
org.hibernate.validator.internal.constraintvalidators.bv.number.sign.NegativeValidatorForBigInteger
- All Implemented Interfaces:
ConstraintValidator<Negative,BigInteger>
public class NegativeValidatorForBigInteger
extends Object
implements ConstraintValidator<Negative,BigInteger>
Check that the number being validated is negative.
- Author:
- Hardy Ferentschik, Xavier Sosnovsky, Guillaume Smet, Marko Bekhta
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisValid(BigInteger value, ConstraintValidatorContext context) Implements the validation logic.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.validation.ConstraintValidator
initialize
-
Constructor Details
-
NegativeValidatorForBigInteger
public NegativeValidatorForBigInteger()
-
-
Method Details
-
isValid
Description copied from interface:ConstraintValidatorImplements the validation logic. The state ofvaluemust not be altered.This method can be accessed concurrently, thread-safety must be ensured by the implementation.
- Specified by:
isValidin interfaceConstraintValidator<Negative,BigInteger> - Parameters:
value- object to validatecontext- context in which the constraint is evaluated- Returns:
falseifvaluedoes not pass the constraint
-