@@ -264,7 +261,7 @@ A class representing an element of Json. It could either be a
|
- String |
+ String
getAsString()
@@ -304,7 +301,7 @@ A class representing an element of Json. It could either be a
|
- String |
+ String
toString()
@@ -314,10 +311,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 |
@@ -414,7 +411,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.
@@ -422,7 +419,7 @@ public JsonObject .
- Throws:
-
ClassCastException - if the element is of another type.
+IllegalStateException - if the element is of another type.
@@ -433,7 +430,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.
@@ -441,7 +438,7 @@ public JsonArray .
- Throws:
-
ClassCastException - if the element is of another type.
+IllegalStateException - if the element is of another type.
@@ -452,7 +449,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.
@@ -460,7 +457,7 @@ public JsonPrimitive .
- Throws:
-
ClassCastException - if the element is of another type.
+IllegalStateException - if the element is of another type.
@@ -471,7 +468,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.
@@ -479,7 +476,7 @@ public JsonNull .
- Throws:
-
ClassCastException - if the element is of another type.- Since:
+IllegalStateException - if the element is of another type.- Since:
- 1.2
@@ -497,9 +494,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.
@@ -508,17 +505,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.
@@ -527,7 +524,7 @@ public
getAsString
-public String getAsString()
+public String getAsString()
- convenience method to get this element as a string value.
@@ -535,9 +532,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.
@@ -554,9 +551,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.
@@ -573,9 +570,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.
@@ -592,9 +589,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.
@@ -611,9 +608,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.
@@ -630,9 +627,9 @@ public byte getAsByte()
Returns:get this element as a primitive byte 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
byte 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.Since:
1.3
@@ -651,9 +648,9 @@ public char getAsCharacter()
Returns:get this element as a primitive char 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
char 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.Since:
1.3
@@ -664,17 +661,17 @@ public char getAsCharacter()
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
@@ -685,17 +682,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
@@ -714,9 +711,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.
@@ -725,16 +722,16 @@ 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
-- Returns:
- String the string representation of this element. The output is valid Json.
+Returns:String the string representation of this element.
diff --git a/gson/docs/javadocs/com/google/gson/JsonNull.html b/gson/docs/javadocs/com/google/gson/JsonNull.html
index 047ee3a3..0371a73b 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.3b3 API)
+JsonNull (Gson 1.3 API)
-
+
|