@Target(value={METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER,TYPE_USE}) @Retention(value=RUNTIME) @Documented @Constraint(validatedBy=MinDurationValidator.class) public @interface MinDuration
Duration
whose value must be higher or equal to the specified minimum.
null elements are considered valid| Modifier and Type | Required Element and Description |
|---|---|
long |
value |
public abstract long value
public abstract String message
public abstract Class<?>[] groups
public abstract Class<? extends javax.validation.Payload>[] payload
public abstract TimeUnit unit
public abstract boolean inclusive
true if the validation is to allow values equal to value().
False if the validation is to be exclusive.
Defaults to true.Copyright © 2021. All rights reserved.