Annotation Interface Adapter


@Retention(RUNTIME) @Target(FIELD) public @interface Adapter
This annotation can be used to enforce a specific property adapter for a given field. For example, you may want certain doubles to be serialized using scientific notation and not others.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Class<? extends IPropertyAdapter<?>>
    The class of the adapter to use when mapping the field.
  • Element Details

    • value

      Class<? extends IPropertyAdapter<?>> value
      The class of the adapter to use when mapping the field. This class must have an accessible constructor and implement IPropertyAdapter.
      Returns:
      The property adapter to use when mapping the field.