@Documented @Constraint(validatedBy={}) @Target(value={METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER}) @Retention(value=RUNTIME) @NotNull public @interface NotBlank
null
or empty.
The difference to NotEmpty
is that trailing whitespaces are getting ignored.Copyright © 2018 JBoss by Red Hat. All rights reserved.