Annotation Interface Optional


@Retention(RUNTIME) @Target({TYPE,PARAMETER}) public @interface Optional
Marks a parameter or type as optional. If the user omits the value, the framework will use a default (if provided) or represent absence.