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