Class CommonTypeAdapterFactory

java.lang.Object
com.exonum.binding.common.serialization.json.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 Details

  • Method Details

    • create

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