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

    Fields
    Modifier and Type
    Field
    Description
    private final com.google.gson.internal.ObjectConstructor<? extends Collection<E>>
     
    private final com.google.gson.TypeAdapter<E>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Adapter(com.google.gson.TypeAdapter<E> elementAdapter, com.google.gson.internal.ObjectConstructor<? extends Collection<E>> constructor)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    read(com.google.gson.stream.JsonReader in)
     
    void
    write(com.google.gson.stream.JsonWriter out, Collection<E> collection)
     

    Methods inherited from class com.google.gson.TypeAdapter

    fromJson, fromJson, fromJsonTree, nullSafe, toJson, toJson, toJsonTree

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • elementTypeAdapter

      private final com.google.gson.TypeAdapter<E> elementTypeAdapter
    • constructor

      private final com.google.gson.internal.ObjectConstructor<? extends Collection<E>> constructor
  • Constructor Details

    • Adapter

      public Adapter(com.google.gson.TypeAdapter<E> elementAdapter, com.google.gson.internal.ObjectConstructor<? extends Collection<E>> constructor)
  • Method Details