@NotNull
The CharSequence, Collection, Map or Array object is not null, but can be empty.
@NotEmpty
The CharSequence, Collection, Map or Array object is not null and size > 0.
@NotBlank
The string is not null and the trimmed length is greater than zero.
Here are a few examples:
1 | String name = null; |