Class CollectionTypeAdapterFactory.Adapter<E>
java.lang.Object
com.google.gson.TypeAdapter<Collection<E>>
com.suse.salt.netapi.parser.CollectionTypeAdapterFactory.Adapter<E>
- Type Parameters:
E- The type of elements in the collection
- Enclosing class:
CollectionTypeAdapterFactory
private static final class CollectionTypeAdapterFactory.Adapter<E>
extends com.google.gson.TypeAdapter<Collection<E>>
Adapter for the Collections.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final com.google.gson.internal.ObjectConstructor<? extends Collection<E>> private final com.google.gson.TypeAdapter<E> -
Constructor Summary
ConstructorsConstructorDescriptionAdapter(com.google.gson.TypeAdapter<E> elementAdapter, com.google.gson.internal.ObjectConstructor<? extends Collection<E>> constructor) -
Method Summary
Modifier and TypeMethodDescriptionread(com.google.gson.stream.JsonReader in) voidwrite(com.google.gson.stream.JsonWriter out, Collection<E> collection) Methods inherited from class com.google.gson.TypeAdapter
fromJson, fromJson, fromJsonTree, nullSafe, toJson, toJson, toJsonTree
-
Field Details
-
elementTypeAdapter
-
constructor
-
-
Constructor Details
-
Adapter
public Adapter(com.google.gson.TypeAdapter<E> elementAdapter, com.google.gson.internal.ObjectConstructor<? extends Collection<E>> constructor)
-
-
Method Details
-
read
- Specified by:
readin classcom.google.gson.TypeAdapter<Collection<E>>- Throws:
IOException
-
write
public void write(com.google.gson.stream.JsonWriter out, Collection<E> collection) throws IOException - Specified by:
writein classcom.google.gson.TypeAdapter<Collection<E>>- Throws:
IOException
-