@@ -248,7 +245,7 @@ A class representing an element of Json. It could either be a
|
- String |
+ String
getAsString()
@@ -288,7 +285,7 @@ A class representing an element of Json. It could either be a
|
- String |
+ String
toString()
@@ -298,10 +295,10 @@ A class representing an element of Json. It could either be a
-Methods inherited from class java.lang.Object |
+Methods inherited from class java.lang.Object |
-equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
+equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
@@ -398,7 +395,7 @@ getAsJsonObject
public JsonObject getAsJsonObject()
- convenience method to get this element as a
JsonObject . If the element is of some
- other type, a ClassCastException will result. Hence it is best to use this method
+ other type, a ClassCastException will result. Hence it is best to use this method
after ensuring that this element is of the desired type by calling isJsonObject()
first.
@@ -406,7 +403,7 @@ public JsonObject .
- Throws:
-
ClassCastException - if the element is of another type.
+ClassCastException - if the element is of another type.
@@ -417,7 +414,7 @@ getAsJsonArray
public JsonArray getAsJsonArray()
- convenience method to get this element as a
JsonArray . If the element is of some
- other type, a ClassCastException will result. Hence it is best to use this method
+ other type, a ClassCastException will result. Hence it is best to use this method
after ensuring that this element is of the desired type by calling isJsonArray()
first.
@@ -425,7 +422,7 @@ public JsonArray .
- Throws:
-
ClassCastException - if the element is of another type.
+ClassCastException - if the element is of another type.
@@ -436,7 +433,7 @@ getAsJsonPrimitive
public JsonPrimitive getAsJsonPrimitive()
- convenience method to get this element as a
JsonPrimitive . If the element is of some
- other type, a ClassCastException will result. Hence it is best to use this method
+ other type, a ClassCastException will result. Hence it is best to use this method
after ensuring that this element is of the desired type by calling isJsonPrimitive()
first.
@@ -444,7 +441,7 @@ public JsonPrimitive .
- Throws:
-
ClassCastException - if the element is of another type.
+ClassCastException - if the element is of another type.
@@ -455,7 +452,7 @@ getAsJsonNull
public JsonNull getAsJsonNull()
- convenience method to get this element as a
JsonNull . If the element is of some
- other type, a ClassCastException will result. Hence it is best to use this method
+ other type, a ClassCastException will result. Hence it is best to use this method
after ensuring that this element is of the desired type by calling isJsonNull()
first.
@@ -463,7 +460,7 @@ public JsonNull .
- Throws:
-
ClassCastException - if the element is of another type.- Since:
+ClassCastException - if the element is of another type.- Since:
- 1.2
@@ -481,9 +478,9 @@ public boolean getAsBoolean()
Returns:get this element as a primitive boolean value.
Throws:
-ClassCastException - if the element is of not a JsonPrimitive and is not a valid
+ClassCastException - if the element is of not a JsonPrimitive and is not a valid
boolean value.
-IllegalStateException - if the element is of the type JsonArray but contains
+IllegalStateException - if the element is of the type JsonArray but contains
more than a single element.
@@ -492,17 +489,17 @@ public boolean getAsBoolean()
getAsNumber
-public Number getAsNumber()
+public Number getAsNumber()
-- convenience method to get this element as a
Number .
+- convenience method to get this element as a
Number .
-- Returns:
- get this element as a
Number .
+ - Returns:
- get this element as a
Number .
- Throws:
-
ClassCastException - if the element is of not a JsonPrimitive and is not a valid
+ClassCastException - if the element is of not a JsonPrimitive and is not a valid
number.
-IllegalStateException - if the element is of the type JsonArray but contains
+IllegalStateException - if the element is of the type JsonArray but contains
more than a single element.
@@ -511,7 +508,7 @@ public
getAsString
-public String getAsString()
+public String getAsString()
- convenience method to get this element as a string value.
@@ -519,9 +516,9 @@ public ClassCastException - if the element is of not a JsonPrimitive and is not a valid
+ ClassCastException - if the element is of not a JsonPrimitive and is not a valid
string value.
-IllegalStateException - if the element is of the type JsonArray but contains
+IllegalStateException - if the element is of the type JsonArray but contains
more than a single element.
@@ -538,9 +535,9 @@ public double getAsDouble()
Returns:get this element as a primitive double value.
Throws:
-ClassCastException - if the element is of not a JsonPrimitive and is not a valid
+ClassCastException - if the element is of not a JsonPrimitive and is not a valid
double value.
-IllegalStateException - if the element is of the type JsonArray but contains
+IllegalStateException - if the element is of the type JsonArray but contains
more than a single element.
@@ -557,9 +554,9 @@ public float getAsFloat()
Returns:get this element as a primitive float value.
Throws:
-ClassCastException - if the element is of not a JsonPrimitive and is not a valid
+ClassCastException - if the element is of not a JsonPrimitive and is not a valid
float value.
-IllegalStateException - if the element is of the type JsonArray but contains
+IllegalStateException - if the element is of the type JsonArray but contains
more than a single element.
@@ -576,9 +573,9 @@ public long getAsLong()
Returns:get this element as a primitive long value.
Throws:
-ClassCastException - if the element is of not a JsonPrimitive and is not a valid
+ClassCastException - if the element is of not a JsonPrimitive and is not a valid
long value.
-IllegalStateException - if the element is of the type JsonArray but contains
+IllegalStateException - if the element is of the type JsonArray but contains
more than a single element.
@@ -595,9 +592,9 @@ public int getAsInt()
Returns:get this element as a primitive integer value.
Throws:
-ClassCastException - if the element is of not a JsonPrimitive and is not a valid
+ClassCastException - if the element is of not a JsonPrimitive and is not a valid
integer value.
-IllegalStateException - if the element is of the type JsonArray but contains
+IllegalStateException - if the element is of the type JsonArray but contains
more than a single element.
@@ -606,17 +603,17 @@ public int getAsInt()
getAsBigDecimal
-public BigDecimal getAsBigDecimal()
+public BigDecimal getAsBigDecimal()
-- convenience method to get this element as a
BigDecimal .
+- convenience method to get this element as a
BigDecimal .
-- Returns:
- get this element as a
BigDecimal .
+ - Returns:
- get this element as a
BigDecimal .
- Throws:
-
ClassCastException - if the element is of not a JsonPrimitive .
- * @throws NumberFormatException if the element is not a valid BigDecimal .
-IllegalStateException - if the element is of the type JsonArray but contains
+ClassCastException - if the element is of not a JsonPrimitive .
+ * @throws NumberFormatException if the element is not a valid BigDecimal .
+IllegalStateException - if the element is of the type JsonArray but contains
more than a single element.- Since:
- 1.2
@@ -627,17 +624,17 @@ public
getAsBigInteger
-public BigInteger getAsBigInteger()
+public BigInteger getAsBigInteger()
-- convenience method to get this element as a
BigInteger .
+- convenience method to get this element as a
BigInteger .
-- Returns:
- get this element as a
BigInteger .
+ - Returns:
- get this element as a
BigInteger .
- Throws:
-
ClassCastException - if the element is of not a JsonPrimitive .
-NumberFormatException - if the element is not a valid BigInteger .
-IllegalStateException - if the element is of the type JsonArray but contains
+ClassCastException - if the element is of not a JsonPrimitive .
+NumberFormatException - if the element is not a valid BigInteger .
+IllegalStateException - if the element is of the type JsonArray but contains
more than a single element.- Since:
- 1.2
@@ -656,9 +653,9 @@ public short getAsShort()
- Returns:
- get this element as a primitive short value.
- Throws:
-
ClassCastException - if the element is of not a JsonPrimitive and is not a valid
+ClassCastException - if the element is of not a JsonPrimitive and is not a valid
short value.
-IllegalStateException - if the element is of the type JsonArray but contains
+IllegalStateException - if the element is of the type JsonArray but contains
more than a single element.
@@ -667,12 +664,12 @@ public short getAsShort()
toString
-public String toString()
+public String toString()
- Returns a String representation of this element.
-- Overrides:
toString in class Object
+ - Overrides:
toString in class Object
diff --git a/gson/docs/javadocs/com/google/gson/JsonNull.html b/gson/docs/javadocs/com/google/gson/JsonNull.html
index 66904c09..7e7144f1 100644
--- a/gson/docs/javadocs/com/google/gson/JsonNull.html
+++ b/gson/docs/javadocs/com/google/gson/JsonNull.html
@@ -2,22 +2,20 @@
-
+
-JsonNull (Gson 1.2 API)
+JsonNull (Gson 1.2.1 API)
-
+
|