public class AtomicTypeAdapter extends JsonTypeAdapterTemplate<Atomic>
| Constructor and Description |
|---|
AtomicTypeAdapter(boolean typeSafety) |
| Modifier and Type | Method and Description |
|---|---|
Atomic |
fromJson(com.google.gson.JsonElement json,
com.google.gson.JsonDeserializationContext jsonDeserializationContext) |
Class |
getValueType() |
com.google.gson.JsonElement |
toJson(Atomic sourceValue,
com.google.gson.JsonSerializationContext jsonSerializationContext) |
getValueTypespublic com.google.gson.JsonElement toJson(Atomic sourceValue, com.google.gson.JsonSerializationContext jsonSerializationContext)
sourceValue - not nulljsonSerializationContext - use it to invoke default serialization on the specified objectpublic Atomic fromJson(com.google.gson.JsonElement json, com.google.gson.JsonDeserializationContext jsonDeserializationContext)
json - not null and not JsonNulljsonDeserializationContext - use it to invoke default deserialization on the specified objectpublic Class getValueType()
getValueType in class JsonTypeAdapterTemplate<Atomic>Copyright © 2014. All rights reserved.