Class CommonTypeAdapterFactory
java.lang.Object
com.exonum.binding.common.serialization.json.CommonTypeAdapterFactory
- All Implemented Interfaces:
com.google.gson.TypeAdapterFactory
public abstract class CommonTypeAdapterFactory
extends java.lang.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 Summary
Constructors Constructor Description CommonTypeAdapterFactory()
-
Method Summary
Modifier and Type Method Description static com.google.gson.TypeAdapterFactory
create()
-
Constructor Details
-
CommonTypeAdapterFactory
public CommonTypeAdapterFactory()
-
-
Method Details
-
create
public static com.google.gson.TypeAdapterFactory create()
-