Class GsonSerializer
java.lang.Object
com.github.kagkarlsson.scheduler.serializer.GsonSerializer
- All Implemented Interfaces:
Serializer
-
Field Summary
FieldsFields inherited from interface com.github.kagkarlsson.scheduler.serializer.Serializer
DEFAULT_JAVA_SERIALIZER -
Constructor Summary
ConstructorsConstructorDescriptionGsonSerializer(com.google.gson.Gson gson) GsonSerializer(Consumer<com.google.gson.GsonBuilder> gsonCustomizer) -
Method Summary
Modifier and TypeMethodDescription<T> Tdeserialize(Class<T> clazz, byte[] serializedData) static com.google.gson.GsonBuilderbyte[]
-
Field Details
-
CHARSET
-
-
Constructor Details
-
GsonSerializer
public GsonSerializer() -
GsonSerializer
public GsonSerializer(com.google.gson.Gson gson) -
GsonSerializer
-
-
Method Details
-
getDefaultGson
public static com.google.gson.GsonBuilder getDefaultGson() -
serialize
- Specified by:
serializein interfaceSerializer
-
deserialize
- Specified by:
deserializein interfaceSerializer
-