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
Nested ClassesModifier and TypeClassDescriptionstatic @interfaceDeprecated.Defines several@NotBlankannotations on the same element. -
Optional Element Summary
Optional Elements
NotBlankconstraint instead