public final class ImmutableDescription<T> extends Object implements JsonReader.ReadObject<T>
| Constructor and Description |
|---|
ImmutableDescription(Class<T> manifest,
Object[] defArgs,
Settings.Function<Object[],T> newInstance,
JsonWriter.WriteObject[] encoders,
DecodePropertyInfo<JsonReader.ReadObject>[] decoders,
boolean alwaysSerialize,
boolean skipOnUnknown) |
| Modifier and Type | Method and Description |
|---|---|
T |
read(JsonReader reader) |
void |
write(JsonWriter writer,
T instance) |
void |
writeContentFull(JsonWriter writer,
T instance) |
boolean |
writeContentMinimal(JsonWriter writer,
T instance) |
public ImmutableDescription(Class<T> manifest, Object[] defArgs, Settings.Function<Object[],T> newInstance, JsonWriter.WriteObject[] encoders, DecodePropertyInfo<JsonReader.ReadObject>[] decoders, boolean alwaysSerialize, boolean skipOnUnknown)
@Nullable public T read(JsonReader reader) throws IOException
read in interface JsonReader.ReadObject<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.