Annotation Type Optional


@Documented @Retention(RUNTIME) @Target({METHOD,PARAMETER}) @Adapter("OptionalAdapter") public @interface Optional
A shorthand for @Adapter("OptionalAdapter<type>"). We can also define the OPTIONAL_NAMESPACE macro to something like boost instead of the default std.
See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The template type of OptionalAdapter.
  • Element Details

    • value

      String value
      The template type of OptionalAdapter. If not specified, it is inferred from the value type of the Pointer or Java array.
      Default:
      ""