public class LocalDateGsonSerializer extends Object implements GsonSerializer<LocalDate>
LocalDate
from and to JsonElement
.Constructor and Description |
---|
LocalDateGsonSerializer() |
Modifier and Type | Method and Description |
---|---|
LocalDate |
deserialize(com.google.gson.JsonElement json,
Type typeOfT,
com.google.gson.JsonDeserializationContext context) |
com.google.gson.JsonElement |
serialize(LocalDate src,
Type typeOfSrc,
com.google.gson.JsonSerializationContext context) |
@Nonnull public com.google.gson.JsonElement serialize(LocalDate src, Type typeOfSrc, com.google.gson.JsonSerializationContext context)
serialize
in interface com.google.gson.JsonSerializer<LocalDate>
@Nonnull public LocalDate deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
deserialize
in interface com.google.gson.JsonDeserializer<LocalDate>
com.google.gson.JsonParseException
Copyright © 2019 SAP SE. All rights reserved.