Class UuidTypeAdapter
java.lang.Object
com.google.gson.TypeAdapter<java.util.UUID>
org.ammonium.common.util.gson.adapter.UuidTypeAdapter
public final class UuidTypeAdapter
extends com.google.gson.TypeAdapter<java.util.UUID>
Represents an adapter to help with serialization/deserialization of
unique identifiers.
-
Constructor Summary
Constructors Constructor Description UuidTypeAdapter() -
Method Summary
-
Constructor Details
-
UuidTypeAdapter
public UuidTypeAdapter()
-
-
Method Details
-
write
public void write(com.google.gson.stream.JsonWriter out, java.util.UUID value) throws java.io.IOException- Specified by:
writein classcom.google.gson.TypeAdapter<java.util.UUID>- Throws:
java.io.IOException
-
read
public java.util.UUID read(com.google.gson.stream.JsonReader in) throws java.io.IOException- Specified by:
readin classcom.google.gson.TypeAdapter<java.util.UUID>- Throws:
java.io.IOException
-