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:
    Adapter, Generator
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String value
      The template type of OptionalAdapter.
    • Element Detail

      • value

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