public final class FormatDescription<T> extends Object implements JsonWriter.WriteObject<T>, JsonReader.ReadObject<T>, JsonReader.BindObject<T>
| Constructor and Description |
|---|
FormatDescription(Type manifest,
FormatConverter<T> objectFormat,
FormatConverter<T> arrayFormat,
boolean isObjectFormatFirst,
String typeName,
DslJson json) |
| Modifier and Type | Method and Description |
|---|---|
T |
bind(JsonReader reader,
T instance) |
T |
read(JsonReader reader) |
void |
write(JsonWriter writer,
T instance) |
public FormatDescription(Type manifest, @Nullable FormatConverter<T> objectFormat, @Nullable FormatConverter<T> arrayFormat, boolean isObjectFormatFirst, String typeName, DslJson json)
public final void write(JsonWriter writer, @Nullable T instance)
write in interface JsonWriter.WriteObject<T>@Nullable public T read(JsonReader reader) throws IOException
read in interface JsonReader.ReadObject<T>IOExceptionpublic T bind(JsonReader reader, T instance) throws IOException
bind in interface JsonReader.BindObject<T>IOExceptionCopyright © 2023. All rights reserved.