Looking at @javax.validation.constraints.Min
's documentation:
The annotated element must be a number whose value must be higher or equal to the specified minimum.
And now looking at @Min.List
I see:
Defines several {@link Min} annotations on the same element.
When would it be useful to define more than one min annotation on the same element?
// Example: defining more than one @Min on the same element.
@Min.List(@Min(1), @Min(2), @Min(3))
private int someInt;
What does this even mean?