Annotation Type Optional


  • @Target(PARAMETER)
    public @interface Optional
    Annotation that can be used to indicate whether the method parameter is optional.

    If a method parameter is annotated with this Optional, the parameter can be omitted in the transaction message. If optional parameters were omitted when the external method is called, the value of optional parameters would be their zero values. The zero value is: 0 for numeric types, false for the boolean type, and null for Object types.