For example, assume the following class definition:
public class Foo {
private String bar;
private List<String> red;
}
Type listParmeterizedType = new TypeToken>() {}.getType();
getName() -
Method in class com.google.gson.FieldAttributes
getRawType() -
Method in class com.google.gson.reflect.TypeToken
Gets the raw type.
getType() -
Method in class com.google.gson.reflect.TypeToken
Gets underlying Type
instance.
Gson - Class in com.google.gsonThis is the main class for using Gson.Gson() -
Constructor for class com.google.gson.Gson
Constructs a Gson object with default configuration.
GsonBuilder - Class in com.google.gsonUse this builder to construct a Gson
instance when you need to set configuration
options other than the default.GsonBuilder() -
Constructor for class com.google.gson.GsonBuilder
Creates a GsonBuilder instance that can be used to build Gson with various configuration
settings.