Annotation Type NotBlank
@Documented
@Constraint(validatedBy={})
@Target({METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER,TYPE_USE})
@Retention(RUNTIME)
@ReportAsSingleViolation
@NotNull
@Repeatable(List.class)
@Deprecated
public @interface NotBlank
Deprecated.
Validate that the annotated string is not
null
or empty.
The difference to NotEmpty
is that trailing whitespaces are getting ignored.- Author:
- Hardy Ferentschik
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic @interface
Deprecated.Defines several@NotBlank
annotations on the same element. -
Optional Element Summary
NotBlank
constraint instead