<IMGSRC="../../../resources/inherit.gif"ALT="extended by "><AHREF="../../../com/google/gson/JsonElement.html"title="class in com.google.gson">com.google.gson.JsonElement</A>
<IMGSRC="../../../resources/inherit.gif"ALT="extended by "><B>com.google.gson.JsonArray</B>
<DT><B>All Implemented Interfaces:</B><DD><AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Iterable.html?is-external=true"title="class or interface in java.lang">Iterable</A><<AHREF="../../../com/google/gson/JsonElement.html"title="class in com.google.gson">JsonElement</A>></DD>
<DT><PRE>public final class <B>JsonArray</B><DT>extends <AHREF="../../../com/google/gson/JsonElement.html"title="class in com.google.gson">JsonElement</A><DT>implements <AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Iterable.html?is-external=true"title="class or interface in java.lang">Iterable</A><<AHREF="../../../com/google/gson/JsonElement.html"title="class in com.google.gson">JsonElement</A>></DL>
A class representing an array type in Json. An array is a list of <AHREF="../../../com/google/gson/JsonElement.html"title="class in com.google.gson"><CODE>JsonElement</CODE></A>s each of
which can be of a different type. This is an ordered list, meaning that the order in which
<TD><CODE><B><AHREF="../../../com/google/gson/JsonArray.html#add(com.google.gson.JsonElement)">add</A></B>(<AHREF="../../../com/google/gson/JsonElement.html"title="class in com.google.gson">JsonElement</A> element)</CODE>
<BR>
Adds the specified element to self.</TD>
<TD><CODE><B><AHREF="../../../com/google/gson/JsonArray.html#addAll(com.google.gson.JsonArray)">addAll</A></B>(<AHREF="../../../com/google/gson/JsonArray.html"title="class in com.google.gson">JsonArray</A> array)</CODE>
<BR>
Adds all the elements of the specified array to self.</TD>
<CODE> <AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/math/BigDecimal.html?is-external=true"title="class or interface in java.math">BigDecimal</A></CODE></FONT></TD>
convenience method to get this array as a <AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/math/BigDecimal.html?is-external=true"title="class or interface in java.math"><CODE>BigDecimal</CODE></A> if it contains a single element.</TD>
<CODE> <AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/math/BigInteger.html?is-external=true"title="class or interface in java.math">BigInteger</A></CODE></FONT></TD>
convenience method to get this array as a <AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/math/BigInteger.html?is-external=true"title="class or interface in java.math"><CODE>BigInteger</CODE></A> if it contains a single element.</TD>
<CODE> <AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Number.html?is-external=true"title="class or interface in java.lang">Number</A></CODE></FONT></TD>
convenience method to get this array as a <AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Number.html?is-external=true"title="class or interface in java.lang"><CODE>Number</CODE></A> if it contains a single element.</TD>
convenience method to get this array as a primitive short if it contains a single element.</TD>
<CODE> <AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A></CODE></FONT></TD>
convenience method to get this array as a <AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang"><CODE>String</CODE></A> if it contains a single element.</TD>
<CODE> <AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Iterator.html?is-external=true"title="class or interface in java.util">Iterator</A><<AHREF="../../../com/google/gson/JsonElement.html"title="class in com.google.gson">JsonElement</A>></CODE></FONT></TD>
<THALIGN="left"><B>Methods inherited from class com.google.gson.<AHREF="../../../com/google/gson/JsonElement.html"title="class in com.google.gson">JsonElement</A></B></TH>
<THALIGN="left"><B>Methods inherited from class java.lang.<AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A></B></TH>
<TD><CODE><AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)"title="class or interface in java.lang">equals</A>, <AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#getClass()"title="class or interface in java.lang">getClass</A>, <AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#hashCode()"title="class or interface in java.lang">hashCode</A>, <AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#notify()"title="class or interface in java.lang">notify</A>, <AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#notifyAll()"title="class or interface in java.lang">notifyAll</A>, <AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait()"title="class or interface in java.lang">wait</A>, <AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long)"title="class or interface in java.lang">wait</A>, <AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long, int)"title="class or interface in java.lang">wait</A></CODE></TD>
public <AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Iterator.html?is-external=true"title="class or interface in java.util">Iterator</A><<AHREF="../../../com/google/gson/JsonElement.html"title="class in com.google.gson">JsonElement</A>><B>iterator</B>()</PRE>
<DT><B>Specified by:</B><DD><CODE><AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Iterable.html?is-external=true#iterator()"title="class or interface in java.lang">iterator</A></CODE> in interface <CODE><AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Iterable.html?is-external=true"title="class or interface in java.lang">Iterable</A><<AHREF="../../../com/google/gson/JsonElement.html"title="class in com.google.gson">JsonElement</A>></CODE></DL>
<DD><CODE><AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true"title="class or interface in java.lang">IndexOutOfBoundsException</A></CODE> - if i is negative or greater than or equal to the
public <AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Number.html?is-external=true"title="class or interface in java.lang">Number</A><B>getAsNumber</B>()</PRE>
<DD>convenience method to get this array as a <AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Number.html?is-external=true"title="class or interface in java.lang"><CODE>Number</CODE></A> if it contains a single element.
<DT><B>Overrides:</B><DD><CODE><AHREF="../../../com/google/gson/JsonElement.html#getAsNumber()">getAsNumber</A></CODE> in class <CODE><AHREF="../../../com/google/gson/JsonElement.html"title="class in com.google.gson">JsonElement</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>get this element as a number if it is single element array.
<DD><CODE><AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/ClassCastException.html?is-external=true"title="class or interface in java.lang">ClassCastException</A></CODE> - if the element in the array is of not a <AHREF="../../../com/google/gson/JsonPrimitive.html"title="class in com.google.gson"><CODE>JsonPrimitive</CODE></A> and
<DD><CODE><AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/IllegalStateException.html?is-external=true"title="class or interface in java.lang">IllegalStateException</A></CODE> - if the array has more than one element.</DL>
public <AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A><B>getAsString</B>()</PRE>
<DD>convenience method to get this array as a <AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang"><CODE>String</CODE></A> if it contains a single element.
<DT><B>Overrides:</B><DD><CODE><AHREF="../../../com/google/gson/JsonElement.html#getAsString()">getAsString</A></CODE> in class <CODE><AHREF="../../../com/google/gson/JsonElement.html"title="class in com.google.gson">JsonElement</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>get this element as a String if it is single element array.
<DD><CODE><AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/ClassCastException.html?is-external=true"title="class or interface in java.lang">ClassCastException</A></CODE> - if the element in the array is of not a <AHREF="../../../com/google/gson/JsonPrimitive.html"title="class in com.google.gson"><CODE>JsonPrimitive</CODE></A> and
<DD><CODE><AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/IllegalStateException.html?is-external=true"title="class or interface in java.lang">IllegalStateException</A></CODE> - if the array has more than one element.</DL>
<DD>convenience method to get this array as a double if it contains a single element.
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><AHREF="../../../com/google/gson/JsonElement.html#getAsDouble()">getAsDouble</A></CODE> in class <CODE><AHREF="../../../com/google/gson/JsonElement.html"title="class in com.google.gson">JsonElement</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>get this element as a double if it is single element array.
<DD><CODE><AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/ClassCastException.html?is-external=true"title="class or interface in java.lang">ClassCastException</A></CODE> - if the element in the array is of not a <AHREF="../../../com/google/gson/JsonPrimitive.html"title="class in com.google.gson"><CODE>JsonPrimitive</CODE></A> and
<DD><CODE><AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/IllegalStateException.html?is-external=true"title="class or interface in java.lang">IllegalStateException</A></CODE> - if the array has more than one element.</DL>
public <AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/math/BigDecimal.html?is-external=true"title="class or interface in java.math">BigDecimal</A><B>getAsBigDecimal</B>()</PRE>
<DD>convenience method to get this array as a <AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/math/BigDecimal.html?is-external=true"title="class or interface in java.math"><CODE>BigDecimal</CODE></A> if it contains a single element.
<DT><B>Overrides:</B><DD><CODE><AHREF="../../../com/google/gson/JsonElement.html#getAsBigDecimal()">getAsBigDecimal</A></CODE> in class <CODE><AHREF="../../../com/google/gson/JsonElement.html"title="class in com.google.gson">JsonElement</A></CODE></DL>
<DT><B>Returns:</B><DD>get this element as a <AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/math/BigDecimal.html?is-external=true"title="class or interface in java.math"><CODE>BigDecimal</CODE></A> if it is single element array.
<DD><CODE><AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/ClassCastException.html?is-external=true"title="class or interface in java.lang">ClassCastException</A></CODE> - if the element in the array is of not a <AHREF="../../../com/google/gson/JsonPrimitive.html"title="class in com.google.gson"><CODE>JsonPrimitive</CODE></A>.
<DD><CODE><AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/NumberFormatException.html?is-external=true"title="class or interface in java.lang">NumberFormatException</A></CODE> - if the element at index 0 is not a valid <AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/math/BigDecimal.html?is-external=true"title="class or interface in java.math"><CODE>BigDecimal</CODE></A>.
<DD><CODE><AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/IllegalStateException.html?is-external=true"title="class or interface in java.lang">IllegalStateException</A></CODE> - if the array has more than one element.<DT><B>Since:</B></DT>
public <AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/math/BigInteger.html?is-external=true"title="class or interface in java.math">BigInteger</A><B>getAsBigInteger</B>()</PRE>
<DD>convenience method to get this array as a <AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/math/BigInteger.html?is-external=true"title="class or interface in java.math"><CODE>BigInteger</CODE></A> if it contains a single element.
<DT><B>Overrides:</B><DD><CODE><AHREF="../../../com/google/gson/JsonElement.html#getAsBigInteger()">getAsBigInteger</A></CODE> in class <CODE><AHREF="../../../com/google/gson/JsonElement.html"title="class in com.google.gson">JsonElement</A></CODE></DL>
<DT><B>Returns:</B><DD>get this element as a <AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/math/BigInteger.html?is-external=true"title="class or interface in java.math"><CODE>BigInteger</CODE></A> if it is single element array.
<DD><CODE><AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/ClassCastException.html?is-external=true"title="class or interface in java.lang">ClassCastException</A></CODE> - if the element in the array is of not a <AHREF="../../../com/google/gson/JsonPrimitive.html"title="class in com.google.gson"><CODE>JsonPrimitive</CODE></A>.
<DD><CODE><AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/NumberFormatException.html?is-external=true"title="class or interface in java.lang">NumberFormatException</A></CODE> - if the element at index 0 is not a valid <AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/math/BigInteger.html?is-external=true"title="class or interface in java.math"><CODE>BigInteger</CODE></A>.
<DD><CODE><AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/IllegalStateException.html?is-external=true"title="class or interface in java.lang">IllegalStateException</A></CODE> - if the array has more than one element.<DT><B>Since:</B></DT>
<DD>convenience method to get this array as a float if it contains a single element.
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><AHREF="../../../com/google/gson/JsonElement.html#getAsFloat()">getAsFloat</A></CODE> in class <CODE><AHREF="../../../com/google/gson/JsonElement.html"title="class in com.google.gson">JsonElement</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>get this element as a float if it is single element array.
<DD><CODE><AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/ClassCastException.html?is-external=true"title="class or interface in java.lang">ClassCastException</A></CODE> - if the element in the array is of not a <AHREF="../../../com/google/gson/JsonPrimitive.html"title="class in com.google.gson"><CODE>JsonPrimitive</CODE></A> and
<DD><CODE><AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/IllegalStateException.html?is-external=true"title="class or interface in java.lang">IllegalStateException</A></CODE> - if the array has more than one element.</DL>
<DD>convenience method to get this array as a long if it contains a single element.
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><AHREF="../../../com/google/gson/JsonElement.html#getAsLong()">getAsLong</A></CODE> in class <CODE><AHREF="../../../com/google/gson/JsonElement.html"title="class in com.google.gson">JsonElement</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>get this element as a long if it is single element array.
<DD><CODE><AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/ClassCastException.html?is-external=true"title="class or interface in java.lang">ClassCastException</A></CODE> - if the element in the array is of not a <AHREF="../../../com/google/gson/JsonPrimitive.html"title="class in com.google.gson"><CODE>JsonPrimitive</CODE></A> and
<DD><CODE><AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/IllegalStateException.html?is-external=true"title="class or interface in java.lang">IllegalStateException</A></CODE> - if the array has more than one element.</DL>
<DD>convenience method to get this array as an integer if it contains a single element.
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><AHREF="../../../com/google/gson/JsonElement.html#getAsInt()">getAsInt</A></CODE> in class <CODE><AHREF="../../../com/google/gson/JsonElement.html"title="class in com.google.gson">JsonElement</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>get this element as an integer if it is single element array.
<DD><CODE><AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/ClassCastException.html?is-external=true"title="class or interface in java.lang">ClassCastException</A></CODE> - if the element in the array is of not a <AHREF="../../../com/google/gson/JsonPrimitive.html"title="class in com.google.gson"><CODE>JsonPrimitive</CODE></A> and
<DD><CODE><AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/IllegalStateException.html?is-external=true"title="class or interface in java.lang">IllegalStateException</A></CODE> - if the array has more than one element.</DL>
<DD><B>Description copied from class: <CODE><AHREF="../../../com/google/gson/JsonElement.html#getAsByte()">JsonElement</A></CODE></B></DD>
<DD>convenience method to get this element as a primitive byte value.
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><AHREF="../../../com/google/gson/JsonElement.html#getAsByte()">getAsByte</A></CODE> in class <CODE><AHREF="../../../com/google/gson/JsonElement.html"title="class in com.google.gson">JsonElement</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>get this element as a primitive byte value.</DL>
</DD>
</DL>
<HR>
<ANAME="getAsCharacter()"><!----></A><H3>
getAsCharacter</H3>
<PRE>
public char <B>getAsCharacter</B>()</PRE>
<DL>
<DD><B>Description copied from class: <CODE><AHREF="../../../com/google/gson/JsonElement.html#getAsCharacter()">JsonElement</A></CODE></B></DD>
<DD>convenience method to get this element as a primitive character value.
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><AHREF="../../../com/google/gson/JsonElement.html#getAsCharacter()">getAsCharacter</A></CODE> in class <CODE><AHREF="../../../com/google/gson/JsonElement.html"title="class in com.google.gson">JsonElement</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>get this element as a primitive char value.</DL>
<DD>convenience method to get this array as a primitive short if it contains a single element.
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><AHREF="../../../com/google/gson/JsonElement.html#getAsShort()">getAsShort</A></CODE> in class <CODE><AHREF="../../../com/google/gson/JsonElement.html"title="class in com.google.gson">JsonElement</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>get this element as a primitive short if it is single element array.
<DD><CODE><AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/ClassCastException.html?is-external=true"title="class or interface in java.lang">ClassCastException</A></CODE> - if the element in the array is of not a <AHREF="../../../com/google/gson/JsonPrimitive.html"title="class in com.google.gson"><CODE>JsonPrimitive</CODE></A> and
<DD><CODE><AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/IllegalStateException.html?is-external=true"title="class or interface in java.lang">IllegalStateException</A></CODE> - if the array has more than one element.</DL>
<DD>convenience method to get this array as a boolean if it contains a single element.
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><AHREF="../../../com/google/gson/JsonElement.html#getAsBoolean()">getAsBoolean</A></CODE> in class <CODE><AHREF="../../../com/google/gson/JsonElement.html"title="class in com.google.gson">JsonElement</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>get this element as a boolean if it is single element array.
<DD><CODE><AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/ClassCastException.html?is-external=true"title="class or interface in java.lang">ClassCastException</A></CODE> - if the element in the array is of not a <AHREF="../../../com/google/gson/JsonPrimitive.html"title="class in com.google.gson"><CODE>JsonPrimitive</CODE></A> and
<DD><CODE><AHREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/IllegalStateException.html?is-external=true"title="class or interface in java.lang">IllegalStateException</A></CODE> - if the array has more than one element.</DL>