public class CommitIdTypeAdapter extends JsonTypeAdapterTemplate<CommitId>
| Constructor and Description |
|---|
CommitIdTypeAdapter() |
| Modifier and Type | Method and Description |
|---|---|
CommitId |
fromJson(com.google.gson.JsonElement json,
com.google.gson.JsonDeserializationContext jsonDeserializationContext) |
Class |
getValueType() |
com.google.gson.JsonElement |
toJson(CommitId commitId,
com.google.gson.JsonSerializationContext context) |
getValueTypespublic Class getValueType()
getValueType in class JsonTypeAdapterTemplate<CommitId>public CommitId 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 com.google.gson.JsonElement toJson(CommitId commitId, com.google.gson.JsonSerializationContext context)
commitId - not nullcontext - use it to invoke default serialization on the specified objectCopyright © 2014. All rights reserved.