Annotation Interface Adaptable


@Retention(RUNTIME) @Target(TYPE) public @interface Adaptable
Annotation used on a class to indicate that its type adapter may automatically be generated. The class must have a public no-args constructor.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Whether to use the field declaration order instead of sorting the fields by name.
  • Element Details

    • useDeclarationOrder

      boolean useDeclarationOrder
      Whether to use the field declaration order instead of sorting the fields by name.
      Default:
      false