Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.koushikdutta.ion.builder;
 
 import  com.google.gson.JsonArray;
 import  com.google.gson.JsonObject;
 import  com.google.gson.reflect.TypeToken;
Created by koush on 3/10/14.
public interface GsonFutureBuilder {
    
Execute the request and get the result as a (Gson) JsonArray

Returns:
    public ResponseFuture<JsonArray> asJsonArray();

    
Execute the request and get the result as a (Gson) JsonObject

Returns:
    public ResponseFuture<JsonObject> asJsonObject();

    
Deserialize the JSON request into a Java object of the given class using Gson.

Parameters:
<T>
Returns:
    public <T> ResponseFuture<T> as(Class<T> clazz);

    
Deserialize the JSON request into a Java object of the given class using Gson.

Parameters:
token
<T>
Returns:
    public <T> ResponseFuture<T> as(TypeToken<T> token);
New to GrepCode? Check out our FAQ X