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