Package main.utils.parameters
Annotation Interface NotNull
@Retention(CLASS)
@Target({METHOD,FIELD,PARAMETER,LOCAL_VARIABLE,TYPE_USE})
public @interface NotNull
This is a custom annotation that can be used to mark methods, fields, parameters,
local variables, and type usages as not nullable.
-
Optional Element Summary
-
Element Details
-
value
String valueA description of why the annotated element cannot be null.- Default:
""
-
exception
The exception to be thrown if the annotated element is null.- Returns:
- the exception to be thrown if the annotated element is null
- Default:
java.lang.Exception.class
-