Class ODataVdmEntityAdapter<T>
java.lang.Object
com.google.gson.TypeAdapter<VdmObject<T>>
com.sap.cloud.sdk.s4hana.datamodel.odata.adapter.ODataVdmEntityAdapter<T>
- Type Parameters:
T
- The generic VDM object type
For internal use only by data model classes
-
Constructor Summary
ConstructorDescriptionODataVdmEntityAdapter
(com.google.gson.TypeAdapterFactory adapterFactory, com.google.gson.Gson gson, Class<? super T> entityRawType) For internal use only by data model classes -
Method Summary
Methods inherited from class com.google.gson.TypeAdapter
fromJson, fromJson, fromJsonTree, nullSafe, toJson, toJson, toJsonTree
-
Constructor Details
-
ODataVdmEntityAdapter
public ODataVdmEntityAdapter(@Nonnull com.google.gson.TypeAdapterFactory adapterFactory, @Nonnull com.google.gson.Gson gson, @Nonnull Class<? super T> entityRawType) For internal use only by data model classes- Parameters:
adapterFactory
- The GSON type adapter factorygson
- The GSON referenceentityRawType
- The generic entity raw type
-
-
Method Details
-
read
@Nullable public VdmObject<T> read(@Nonnull com.google.gson.stream.JsonReader jsonReader) throws IOException For internal use only by data model classes- Specified by:
read
in classcom.google.gson.TypeAdapter<VdmObject<T>>
- Throws:
IOException
-
write
public void write(@Nonnull com.google.gson.stream.JsonWriter out, @Nullable VdmObject<T> value) throws IOException For internal use only by data model classes- Specified by:
write
in classcom.google.gson.TypeAdapter<VdmObject<T>>
- Throws:
IOException
-