Package com.google.gson.reflect

Examples of com.google.gson.reflect.TypeToken$SimpleTypeToken


    $Gson.Preconditions.checkArgument(((paramObject instanceof JsonSerializer)) || ((paramObject instanceof JsonDeserializer)) || ((paramObject instanceof InstanceCreator)) || ((paramObject instanceof TypeAdapter)));
    if ((paramObject instanceof InstanceCreator))
      this.instanceCreators.put(paramType, (InstanceCreator)paramObject);
    if (((paramObject instanceof JsonSerializer)) || ((paramObject instanceof JsonDeserializer)))
    {
      TypeToken localTypeToken = TypeToken.get(paramType);
      this.factories.add(TreeTypeAdapter.newFactoryWithMatchRawType(localTypeToken, paramObject));
    }
    if ((paramObject instanceof TypeAdapter))
      this.factories.add(TypeAdapters.newFactory(TypeToken.get(paramType), (TypeAdapter)paramObject));
    return this;
View Full Code Here

TOP

Related Classes of com.google.gson.reflect.TypeToken$SimpleTypeToken

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.