Class CommonTypeAdapterFactory

  • All Implemented Interfaces:
    com.google.gson.TypeAdapterFactory
    Direct Known Subclasses:
    AutoValueGson_CommonTypeAdapterFactory

    public abstract class CommonTypeAdapterFactory
    extends Object
    implements com.google.gson.TypeAdapterFactory
    Class used to automatically create Gson type adapters for all AutoValue classes located in this module.

    Note that you need to provide an accessible static factory method in your AutoValue class.

    
       public static TypeAdapter<TransactionResult> typeAdapter(Gson gson) {
         return new AutoValue_TransactionResult.GsonTypeAdapter(gson);
       }
     
    See Also:
    Using TypeAdapterFactory
    • Constructor Detail

      • CommonTypeAdapterFactory

        public CommonTypeAdapterFactory()
    • Method Detail

      • create

        public static com.google.gson.TypeAdapterFactory create()