|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Documented
@Constraint(validatedBy=SortedValidator.class)
@Target(value={METHOD,FIELD,ANNOTATION_TYPE})
@Retention(value=RUNTIME)
public @interface SortedValidation constraint that checks elements are sorted. Applies to non-primitive arrays, collections and maps; for maps, the keys are examined. If any element is null, it is skipped.
| Optional Element Summary | |
|---|---|
Class<? extends Comparator> |
comparator
Specifies a Comparator to use. |
Class<?>[] |
groups
|
String |
message
|
Class<? extends Payload>[] |
payload
|
boolean |
strict
Configures whether the sorting should be strict, i.e., whether adjacent equal elements should be disallowed. |
public abstract String message
public abstract Class<?>[] groups
public abstract Class<? extends Payload>[] payload
public abstract Class<? extends Comparator> comparator
Comparator to use. If none is specified, the natural sort ordering is used.
The class must have a default constructor.
public abstract boolean strict
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||