Top Description Inners Methods
org.hibernate.validator.constraints

public @Interface NotEmpty

extends Annotation
Annotations
@Documented
@Constraint
validatedBy:
@SupportedValidationTarget:ANNOTATED_ELEMENT
@Target:METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE
@Retention:RUNTIME
@Repeatable:List
@ReportAsSingleViolation
@NotNull
@Size
min:1
@Deprecated
Static Imports
java.lang.annotation.ElementType.ANNOTATION_TYPE, .ElementType.CONSTRUCTOR, .ElementType.FIELD, .ElementType.METHOD, .ElementType.PARAMETER, .ElementType.TYPE_USE, .RetentionPolicy.RUNTIME

Deprecated

use the standard jakarta.validation.constraints.NotEmpty constraint instead

Asserts that the annotated string, collection, map or array is not null or empty.
Authors
Emmanuel Bernard, Hardy Ferentschik

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static @interface
NotEmpty.List

Defines several @NotEmpty annotations on the same element.

Method Summary

Modifier and TypeMethod and Description
public Class<?>[]
public String
public Class<? extends Payload>[]
Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

groupsback to summary
public Class<?>[] groups()
messageback to summary
public String message()
payloadback to summary
public Class<? extends Payload>[] payload()
org.hibernate.validator.constraints back to summary

public @Interface NotEmpty.List

extends Annotation
Annotations
@Target:METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE
@Retention:RUNTIME
@Documented

Defines several @NotEmpty annotations on the same element.

Method Summary

Modifier and TypeMethod and Description
public NotEmpty[]
value()

Deprecated as a consequence of NotEmpty being deprecated.
Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public NotEmpty[] value()

Deprecated

as a consequence of NotEmpty being deprecated. See corresponding docs for further information.