Package | Description |
---|---|
com.google.gson |
This package provides the
Gson class to convert Json to Java and
vice-versa. |
Modifier and Type | Method and Description |
---|---|
<T> TypeAdapter<T> |
TypeAdapterFactory.create(Gson gson,
TypeToken<T> type)
Returns a type adapter for
type , or null if this factory doesn't
support type . |
<T> TypeAdapter<T> |
Gson.getAdapter(java.lang.Class<T> type)
Returns the type adapter for type.
|
<T> TypeAdapter<T> |
Gson.getAdapter(TypeToken<T> type)
Returns the type adapter for type.
|
<T> TypeAdapter<T> |
Gson.getDelegateAdapter(TypeAdapterFactory skipPast,
TypeToken<T> type)
This method is used to get an alternate type adapter for the specified type.
|
TypeAdapter<T> |
TypeAdapter.nullSafe()
This wrapper method is used to make a type adapter null tolerant.
|
Copyright © 2018. All Rights Reserved.