Package net.handle.hdllib
Class GsonUtility.TransactionGsonTypeAdapter
- java.lang.Object
-
- net.handle.hdllib.GsonUtility.TransactionGsonTypeAdapter
-
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<Transaction>
,com.google.gson.JsonSerializer<Transaction>
- Enclosing class:
- GsonUtility
public static class GsonUtility.TransactionGsonTypeAdapter extends java.lang.Object implements com.google.gson.JsonSerializer<Transaction>, com.google.gson.JsonDeserializer<Transaction>
-
-
Constructor Summary
Constructors Constructor Description TransactionGsonTypeAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Transaction
deserialize(com.google.gson.JsonElement json, java.lang.reflect.Type typeOfT, com.google.gson.JsonDeserializationContext context)
com.google.gson.JsonElement
serialize(Transaction txn, java.lang.reflect.Type typeOfSrc, com.google.gson.JsonSerializationContext context)
-
-
-
Method Detail
-
serialize
public com.google.gson.JsonElement serialize(Transaction txn, java.lang.reflect.Type typeOfSrc, com.google.gson.JsonSerializationContext context)
- Specified by:
serialize
in interfacecom.google.gson.JsonSerializer<Transaction>
-
deserialize
public Transaction deserialize(com.google.gson.JsonElement json, java.lang.reflect.Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
- Specified by:
deserialize
in interfacecom.google.gson.JsonDeserializer<Transaction>
- Throws:
com.google.gson.JsonParseException
-
-