Annotationsschnittstelle NotEmpty


@Target({ANNOTATION_TYPE,PARAMETER,TYPE_USE}) @Retention(RUNTIME) @Size(min=1) @StringLength(min=1) @Documented @API(status=MAINTAINED, since="1.0") public @interface NotEmpty
Constrain the size of generated "sizable" types to be at least 1. Applies to String, List, Set, Stream, and arrays which are also annotated with @ForAll. Can be combined with @Size(max=XXX) or @StringLength(max=XXX).
Siehe auch: