Annotation Interface UniqueElements
@Documented
@Target({FIELD,METHOD,PARAMETER,CONSTRUCTOR,TYPE_USE,ANNOTATION_TYPE})
@Retention(RUNTIME)
@Repeatable(UniqueElements.List.class)
@Constraint(validatedBy=io.fluxzero.sdk.tracking.handling.validation.constraints.UniqueElementsValidator.class)
public @interface UniqueElements
Validates that an array or iterable value does not contain duplicate elements.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interfaceContainer annotation for repeatableUniqueElementsconstraints. -
Optional Element Summary
Optional Elements
-
Element Details
-
message
-
groups
-
payload
Class<? extends jakarta.validation.Payload>[] payload- Returns:
- payload metadata associated with this constraint
- Default:
{}
-