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