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