public class TimeAfterConstraint extends java.lang.Object implements ValidationConstraint<TimeAfter>
| Modifier and Type | Field and Description |
|---|---|
protected java.time.LocalDateTime |
time |
| Constructor and Description |
|---|
TimeAfterConstraint() |
TimeAfterConstraint(java.time.LocalDateTime time) |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(TimeAfter 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 TimeAfterConstraint()
public TimeAfterConstraint(java.time.LocalDateTime time)
public java.time.LocalDateTime getTime()
public void setTime(java.time.LocalDateTime time)
public void configure(TimeAfter annotation)
ValidationConstraintconfigure in interface ValidationConstraint<TimeAfter>public boolean isValid(ValidationConstraintContext vcc, java.lang.Object value)
ValidationConstraintisValid in interface ValidationConstraint<TimeAfter>true if validation passes, otherwise false.public static boolean validate(java.lang.Object value,
java.time.LocalDateTime then)
Copyright © 2003-present Jodd Team