public class UUIDSerializer extends com.google.gson.TypeAdapter<UUID>
| Constructor and Description |
|---|
UUIDSerializer() |
| Modifier and Type | Method and Description |
|---|---|
static UUID |
fromString(String value)
Converts a String to a UUID.
|
static String |
fromUUID(UUID value)
Converts a UUID to a String.
|
UUID |
read(com.google.gson.stream.JsonReader in) |
void |
write(com.google.gson.stream.JsonWriter out,
UUID value) |
public void write(com.google.gson.stream.JsonWriter out,
UUID value)
throws IOException
write in class com.google.gson.TypeAdapter<UUID>IOExceptionpublic UUID read(com.google.gson.stream.JsonReader in) throws IOException
read in class com.google.gson.TypeAdapter<UUID>IOExceptionpublic static String fromUUID(UUID value)
value - UUID to convert.Copyright © 2023. All rights reserved.