T
- The generic VDM object typepublic class ODataVdmEntityAdapter<T> extends com.google.gson.TypeAdapter<VdmObject<T>>
Constructor and Description |
---|
ODataVdmEntityAdapter(com.google.gson.TypeAdapterFactory adapterFactory,
com.google.gson.Gson gson,
Class<? super T> entityRawType)
For internal use only by data model classes
|
Modifier and Type | Method and Description |
---|---|
VdmObject<T> |
read(com.google.gson.stream.JsonReader jsonReader)
For internal use only by data model classes
|
void |
write(com.google.gson.stream.JsonWriter out,
VdmObject<T> value)
For internal use only by data model classes
|
public ODataVdmEntityAdapter(@Nonnull com.google.gson.TypeAdapterFactory adapterFactory, @Nonnull com.google.gson.Gson gson, @Nonnull Class<? super T> entityRawType)
adapterFactory
- The GSON type adapter factorygson
- The GSON referenceentityRawType
- The generic entity raw type@Nullable public VdmObject<T> read(@Nonnull com.google.gson.stream.JsonReader jsonReader) throws IOException
read
in class com.google.gson.TypeAdapter<VdmObject<T>>
IOException
public void write(@Nonnull com.google.gson.stream.JsonWriter out, @Nullable VdmObject<T> value) throws IOException
write
in class com.google.gson.TypeAdapter<VdmObject<T>>
IOException
Copyright © 2020 SAP SE. All rights reserved.