T
- The entity type.public class GsonVdmEntityListAdapter<T> extends com.google.gson.TypeAdapter<List<T>>
Constructor and Description |
---|
GsonVdmEntityListAdapter(com.google.gson.Gson gson,
com.google.gson.TypeAdapter<T> entityAdapter)
For internal use only by data model classes.
|
Modifier and Type | Method and Description |
---|---|
List<T> |
read(com.google.gson.stream.JsonReader in)
For internal use only by data model classes.
|
void |
write(com.google.gson.stream.JsonWriter out,
List<T> entityList)
For internal use only by data model classes.
|
@Nullable public List<T> read(@Nonnull com.google.gson.stream.JsonReader in) throws IOException
read
in class com.google.gson.TypeAdapter<List<T>>
in
- The JsonReader reference.IOException
- When deserialization failed.public void write(@Nonnull com.google.gson.stream.JsonWriter out, @Nullable List<T> entityList) throws IOException
write
in class com.google.gson.TypeAdapter<List<T>>
out
- The JsonWriter reference.entityList
- The list of entities.IOException
- When serialization failed.Copyright © 2020 SAP SE. All rights reserved.