Duration length is longer than or equal to the
one specified with the annotation.
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private Duration |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | initialize(DurationMin
annotation instance for a given constraint declaration constraintAnnotation)Overrides default jakarta. isValid(Object, ConstraintValidatorContext) calls.
|
| public boolean | isValid(Duration
object to validate value, ConstraintValidatorContext context in which the constraint is evaluated context)Implements jakarta. |
| inclusive | back to summary |
|---|---|
| private boolean inclusive | |
| minDuration | back to summary |
|---|---|
| private Duration minDuration | |
| DurationMinValidator | back to summary |
|---|---|
| public DurationMinValidator() | |
| initialize | back to summary |
|---|---|
| public void initialize(DurationMin constraintAnnotation) Overrides default jakarta. Doc from jakarta. Initializes the validator in preparation for
This method is guaranteed to be called before any use of this instance for validation. The default implementation is a no-op.
| |
| isValid | back to summary |
|---|---|
| public boolean isValid(Duration value, ConstraintValidatorContext context) Implements jakarta. Doc from jakarta. Implements the validation logic.
The state of This method can be accessed concurrently, thread-safety must be ensured by the implementation.
| |