public class NegativeOrZeroValidatorForBigInteger extends Object implements ConstraintValidator<NegativeOrZero,BigInteger>
Constructor and Description |
---|
NegativeOrZeroValidatorForBigInteger() |
Modifier and Type | Method and Description |
---|---|
boolean |
isValid(BigInteger value,
ConstraintValidatorContext context)
Implements the validation logic.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initialize
public NegativeOrZeroValidatorForBigInteger()
public boolean isValid(BigInteger value, ConstraintValidatorContext context)
ConstraintValidator
value
must not be altered.
This method can be accessed concurrently, thread-safety must be ensured by the implementation.
isValid
in interface ConstraintValidator<NegativeOrZero,BigInteger>
value
- object to validatecontext
- context in which the constraint is evaluatedfalse
if value
does not pass the constraintCopyright © 2021 JBoss by Red Hat. All rights reserved.