Annotation Interface Optional


@Target(PARAMETER) @Retention(RUNTIME) public @interface Optional
Marks a parameter as optional and does not need to be explicitly specified by the sender.

Note that if the parameter has Default on it, it will automatically be marked as optional.