com.google.gson.JsonDeserializer<org.threeten.bp.Duration>, com.google.gson.JsonSerializer<org.threeten.bp.Duration>public static class JsonAdapters.JsonDurationAdapter extends Object implements com.google.gson.JsonSerializer<org.threeten.bp.Duration>, com.google.gson.JsonDeserializer<org.threeten.bp.Duration>
| Constructor | Description |
|---|---|
JsonDurationAdapter() |
| Modifier and Type | Method | Description |
|---|---|---|
org.threeten.bp.Duration |
deserialize(com.google.gson.JsonElement jsonElement,
Type type,
com.google.gson.JsonDeserializationContext jsonDeserializationContext) |
|
com.google.gson.JsonElement |
serialize(org.threeten.bp.Duration duration,
Type type,
com.google.gson.JsonSerializationContext jsonSerializationContext) |
public com.google.gson.JsonElement serialize(org.threeten.bp.Duration duration,
Type type,
com.google.gson.JsonSerializationContext jsonSerializationContext)
serialize in interface com.google.gson.JsonSerializer<org.threeten.bp.Duration>public org.threeten.bp.Duration deserialize(com.google.gson.JsonElement jsonElement,
Type type,
com.google.gson.JsonDeserializationContext jsonDeserializationContext)
throws com.google.gson.JsonParseException
deserialize in interface com.google.gson.JsonDeserializer<org.threeten.bp.Duration>com.google.gson.JsonParseExceptionCopyright © 2018 The Apache Software Foundation. All rights reserved.