public final class ObjectFormatDescription<B,T> extends Object implements FormatConverter<T>, JsonReader.BindObject<B>
| Constructor and Description |
|---|
ObjectFormatDescription(Type manifest,
InstanceFactory<B> newInstance,
Settings.Function<B,T> finalize,
JsonWriter.WriteObject[] encoders,
DecodePropertyInfo<JsonReader.BindObject>[] decoders,
DslJson json,
boolean skipOnUnknown) |
| Modifier and Type | Method and Description |
|---|---|
B |
bind(JsonReader reader,
B instance) |
static <D> ObjectFormatDescription<D,D> |
create(Class<D> manifest,
InstanceFactory<D> newInstance,
JsonWriter.WriteObject[] encoders,
DecodePropertyInfo<JsonReader.BindObject>[] decoders,
DslJson json,
boolean skipOnUnknown) |
T |
read(JsonReader reader) |
T |
readContent(JsonReader reader) |
void |
write(JsonWriter writer,
T instance) |
void |
writeContentFull(JsonWriter writer,
T instance) |
boolean |
writeContentMinimal(JsonWriter writer,
T instance) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwriteContentFull, writeContentMinimalwritepublic ObjectFormatDescription(Type manifest, InstanceFactory<B> newInstance, Settings.Function<B,T> finalize, JsonWriter.WriteObject[] encoders, DecodePropertyInfo<JsonReader.BindObject>[] decoders, DslJson json, boolean skipOnUnknown)
public static <D> ObjectFormatDescription<D,D> create(Class<D> manifest, InstanceFactory<D> newInstance, JsonWriter.WriteObject[] encoders, DecodePropertyInfo<JsonReader.BindObject>[] decoders, DslJson json, boolean skipOnUnknown)
@Nullable public T read(JsonReader reader) throws IOException
read in interface JsonReader.ReadObject<T>IOExceptionpublic B bind(JsonReader reader, B instance) throws IOException
bind in interface JsonReader.BindObject<B>IOExceptionpublic T readContent(JsonReader reader) throws IOException
readContent in interface FormatConverter<T>IOExceptionpublic final void write(JsonWriter writer, @Nullable T instance)
write in interface JsonWriter.WriteObject<T>public final void writeContentFull(JsonWriter writer, @Nullable T instance)
public final boolean writeContentMinimal(JsonWriter writer, @Nullable T instance)
Copyright © 2023. All rights reserved.