Package pro.gravit.launcher.hasher
Class HashedEntryAdapter
- java.lang.Object
-
- pro.gravit.launcher.hasher.HashedEntryAdapter
-
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<HashedEntry>,com.google.gson.JsonSerializer<HashedEntry>
public class HashedEntryAdapter extends java.lang.Object implements com.google.gson.JsonSerializer<HashedEntry>, com.google.gson.JsonDeserializer<HashedEntry>
-
-
Constructor Summary
Constructors Constructor Description HashedEntryAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HashedEntrydeserialize(com.google.gson.JsonElement json, java.lang.reflect.Type typeOfT, com.google.gson.JsonDeserializationContext context)com.google.gson.JsonElementserialize(HashedEntry src, java.lang.reflect.Type typeOfSrc, com.google.gson.JsonSerializationContext context)
-
-
-
Method Detail
-
deserialize
public HashedEntry deserialize(com.google.gson.JsonElement json, java.lang.reflect.Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
- Specified by:
deserializein interfacecom.google.gson.JsonDeserializer<HashedEntry>- Throws:
com.google.gson.JsonParseException
-
serialize
public com.google.gson.JsonElement serialize(HashedEntry src, java.lang.reflect.Type typeOfSrc, com.google.gson.JsonSerializationContext context)
- Specified by:
serializein interfacecom.google.gson.JsonSerializer<HashedEntry>
-
-