|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
componentType.
Object.equals().
Reader.
Writer.
Gson class to convert Json to Java and
vice-versa.Gson.Gson instance based on the current configuration.
a and b are equal.
Expose annotation.
Writer
and flushes that writer.
reader and convert it to an object
of type typeOfT.
Type instance.
Class instance.
T annotation object from this field if it exist; otherwise returns
null.
BigDecimal if it contains a single element.
BigDecimal.
BigDecimal.
BigInteger if it contains a single element.
BigInteger.
BigInteger.
JsonArray.
JsonNull.
JsonObject.
JsonPrimitive.
Number if it contains a single element.
Number.
String if it contains a single element.
Class<?> object that was declared for this field.
public class Foo {
private String bar;
private List<String> red;
}
Type listParmeterizedType = new TypeToken>() {}.getType();
- getDeclaringClass() -
Method in class com.google.gson.FieldAttributes
-
- getMapKeyAndValueTypes(Type, Class<?>) -
Static method in class com.google.gson.internal.$Gson$Types
- Returns a two element array containing this map's key and value types in
positions 0 and 1 respectively.
- getName() -
Method in class com.google.gson.FieldAttributes
-
- getRawType(Type) -
Static method in class com.google.gson.internal.$Gson$Types
-
- getRawType() -
Method in class com.google.gson.reflect.TypeToken
- Returns the raw (non-generic) type for this type.
- getType() -
Method in class com.google.gson.reflect.TypeToken
- Gets underlying
Type instance.
- Gson - Class in com.google.gson
- This 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.gson
- Use 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.
true if the field is defined with the modifier.
JsonElement is available on the input for consumption
JsonDeserializer.deserialize(JsonElement, Type, JsonDeserializationContext)
method.null value.JsonElementsNumber.
in.
JsonSerializer.serialize(Object, Type, JsonSerializationContext) method.JsonElements from the specified reader
asynchronously.out.
long or Long type when its serialized.typeArguments to
rawType and enclosed by ownerType.
JsonElement on the reader.
boolean value of the next token,
consuming it.
double value of the next token,
consuming it.
int value of the next token,
consuming it.
long value of the next token,
consuming it.
property name, and
consumes it.
string value of the next token,
consuming it.
null.
property from this JsonObject.
Iterator method is not relevant for stream parsing and hence is not
implemented.
value using this serialization policy.
Date objects according to the pattern provided.
Date objects according to the style value provided.
Date objects according to the style value provided.
Long and long
objects.
bound.
bound.
src of type typeOfSrc to
writer.
JsonElements into its equivalent JSON representation.
JsonElements.
jsonElement to writer.
JsonElements.
JsonElements.
T.value.
value.
value.
value.
value.
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||