public class NotNullConstraint extends java.lang.Object implements ValidationConstraint<NotNull>
Constructor and Description |
---|
NotNullConstraint() |
Modifier and Type | Method and Description |
---|---|
void |
configure(NotNull annotation)
Configures constraint from associated annotation.
|
boolean |
isValid(ValidationConstraintContext vcc,
java.lang.Object value)
Performs validation in context of target object on provided value.
|
static boolean |
validate(java.lang.Object value) |
public void configure(NotNull annotation)
ValidationConstraint
configure
in interface ValidationConstraint<NotNull>
public boolean isValid(ValidationConstraintContext vcc, java.lang.Object value)
ValidationConstraint
isValid
in interface ValidationConstraint<NotNull>
true
if validation passes, otherwise false
.public static boolean validate(java.lang.Object value)
Copyright © 2003-present Jodd Team