Type adapter used for custom serialization of UnetStack enums.
To support JSON remote access to Unet agents, this adapter must be initialized during startup by calling enable().
Type Params | Return Type | Name and description |
---|---|---|
|
static void |
enable() Registers classes that require special handling for JSON serialization. |
|
static void |
enable(Class<?> cls) Registers additional class that requires special handling for JSON serialization. |
|
Object |
read(com.google.gson.stream.JsonReader in) |
|
void |
write(com.google.gson.stream.JsonWriter out, Object value) |
Methods inherited from class | Name |
---|---|
class com.google.gson.TypeAdapter |
com.google.gson.TypeAdapter#write(com.google.gson.stream.JsonWriter, java.lang.Object), com.google.gson.TypeAdapter#read(com.google.gson.stream.JsonReader), com.google.gson.TypeAdapter#toJson(java.lang.Object), com.google.gson.TypeAdapter#toJson(java.io.Writer, java.lang.Object), com.google.gson.TypeAdapter#fromJson(java.io.Reader), com.google.gson.TypeAdapter#fromJson(java.lang.String), com.google.gson.TypeAdapter#nullSafe(), com.google.gson.TypeAdapter#toJsonTree(java.lang.Object), com.google.gson.TypeAdapter#fromJsonTree(com.google.gson.JsonElement), com.google.gson.TypeAdapter#wait(long, int), com.google.gson.TypeAdapter#wait(long), com.google.gson.TypeAdapter#wait(), com.google.gson.TypeAdapter#equals(java.lang.Object), com.google.gson.TypeAdapter#toString(), com.google.gson.TypeAdapter#hashCode(), com.google.gson.TypeAdapter#getClass(), com.google.gson.TypeAdapter#notify(), com.google.gson.TypeAdapter#notifyAll() |
class Object |
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Registers classes that require special handling for JSON serialization.
Registers additional class that requires special handling for JSON serialization.