Class CoreTypeAdapterFactory

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

    public abstract class CoreTypeAdapterFactory
    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

      • CoreTypeAdapterFactory

        public CoreTypeAdapterFactory()
    • Method Detail

      • create

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