Annotation Interface Optional
Parameters annotated with Optional are as the name says optional.
More formally if a command has an optional parameter the argument doesn't need to be present to execute the command.
It is also possible to pass a default value which will be used instead if the argument isn't present.
The default value will be handled as a normal input and thus the TypeAdapters
will try to parse it.
If the parsing fails the command will still be executed but with empty or possible null
values.
- See Also:
-
Optional Element Summary
-
Element Details
-
value
-