Package jakarta.validation.constraints
Annotation Type NotNull
-
@Target({METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER,TYPE_USE}) @Retention(RUNTIME) @Repeatable(List.class) @Documented @Constraint(validatedBy={}) public @interface NotNull
The annotated element must not benull
. Accepts any type.- Author:
- Emmanuel Bernard