Annotation Type NotEmpty
@Documented
@Constraint(validatedBy={})
@SupportedValidationTarget(ANNOTATED_ELEMENT)
@Target({METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER,TYPE_USE})
@Retention(RUNTIME)
@Repeatable(List.class)
@ReportAsSingleViolation
@NotNull
@Size(min=1)
@Deprecated
public @interface NotEmpty
Deprecated.
Asserts that the annotated string, collection, map or array is not
null
or empty.- Author:
- Emmanuel Bernard, Hardy Ferentschik
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interface
Deprecated.Defines several@NotEmpty
annotations on the same element. -
Optional Element Summary
Optional Elements
NotEmpty
constraint instead