public static class JSON.OffsetDateTimeTypeAdapter extends com.google.gson.TypeAdapter<OffsetDateTime>
Constructor and Description |
---|
OffsetDateTimeTypeAdapter() |
OffsetDateTimeTypeAdapter(DateTimeFormatter formatter) |
Modifier and Type | Method and Description |
---|---|
OffsetDateTime |
read(com.google.gson.stream.JsonReader in) |
void |
setFormat(DateTimeFormatter dateFormat) |
void |
write(com.google.gson.stream.JsonWriter out,
OffsetDateTime date) |
public OffsetDateTimeTypeAdapter()
public OffsetDateTimeTypeAdapter(DateTimeFormatter formatter)
public void setFormat(DateTimeFormatter dateFormat)
public void write(com.google.gson.stream.JsonWriter out, OffsetDateTime date) throws IOException
write
in class com.google.gson.TypeAdapter<OffsetDateTime>
IOException
public OffsetDateTime read(com.google.gson.stream.JsonReader in) throws IOException
read
in class com.google.gson.TypeAdapter<OffsetDateTime>
IOException
Copyright © 2023. All rights reserved.