Class KeystoneParserModule.ValuesSetTypeAdapterFactory

java.lang.Object
org.jclouds.json.internal.NullFilteringTypeAdapterFactories.ImmutableListTypeAdapterFactory
org.jclouds.json.internal.NullFilteringTypeAdapterFactories.ImmutableSetTypeAdapterFactory
org.jclouds.json.internal.NullFilteringTypeAdapterFactories.SetTypeAdapterFactory
org.jclouds.openstack.keystone.v2_0.config.KeystoneParserModule.ValuesSetTypeAdapterFactory
All Implemented Interfaces:
com.google.gson.TypeAdapterFactory
Enclosing class:
KeystoneParserModule

public static class KeystoneParserModule.ValuesSetTypeAdapterFactory extends org.jclouds.json.internal.NullFilteringTypeAdapterFactories.SetTypeAdapterFactory
Handles the goofy structures with "values" holder wrapping an array http://docs.openstack.org/api/openstack-identity-service/2.0/content/Versions-d1e472.html

Treats [A,B,C] and {"values"=[A,B,C], "someotherstuff"=...} as the same Set

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
     
  • Field Summary

    Fields inherited from class org.jclouds.json.internal.NullFilteringTypeAdapterFactories.ImmutableListTypeAdapterFactory

    declaring
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected <E, I> com.google.gson.TypeAdapter<I>
    newAdapter(com.google.gson.TypeAdapter<E> elementAdapter)
     

    Methods inherited from class org.jclouds.json.internal.NullFilteringTypeAdapterFactories.ImmutableListTypeAdapterFactory

    create

    Methods inherited from class java.lang.Object

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

    • ValuesSetTypeAdapterFactory

      public ValuesSetTypeAdapterFactory()
  • Method Details

    • newAdapter

      protected <E, I> com.google.gson.TypeAdapter<I> newAdapter(com.google.gson.TypeAdapter<E> elementAdapter)
      Overrides:
      newAdapter in class org.jclouds.json.internal.NullFilteringTypeAdapterFactories.ImmutableSetTypeAdapterFactory