Class CoreTypeAdapterFactory
java.lang.Object
com.exonum.binding.core.blockchain.serialization.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 Summary
Constructors Constructor Description CoreTypeAdapterFactory()
-
Method Summary
Modifier and Type Method Description static com.google.gson.TypeAdapterFactory
create()
-
Constructor Details
-
CoreTypeAdapterFactory
public CoreTypeAdapterFactory()
-
-
Method Details
-
create
public static com.google.gson.TypeAdapterFactory create()
-