<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">java.lang.Object</A>
<IMGSRC="../../../resources/inherit.gif"ALT="extended by "><AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Enum.html?is-external=true"title="class or interface in java.lang">java.lang.Enum</A><<AHREF="../../../com/google/gson/LongSerializationPolicy.html"title="enum in com.google.gson">LongSerializationPolicy</A>>
<IMGSRC="../../../resources/inherit.gif"ALT="extended by "><B>com.google.gson.LongSerializationPolicy</B>
</PRE>
<DL>
<DT><B>All Implemented Interfaces:</B><DD><AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/io/Serializable.html?is-external=true"title="class or interface in java.io">Serializable</A>, <AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Comparable.html?is-external=true"title="class or interface in java.lang">Comparable</A><<AHREF="../../../com/google/gson/LongSerializationPolicy.html"title="enum in com.google.gson">LongSerializationPolicy</A>></DD>
</DL>
<HR>
<DL>
<DT><PRE>public enum <B>LongSerializationPolicy</B><DT>extends <AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Enum.html?is-external=true"title="class or interface in java.lang">Enum</A><<AHREF="../../../com/google/gson/LongSerializationPolicy.html"title="enum in com.google.gson">LongSerializationPolicy</A>></DL>
</PRE>
<P>
Defines the expected format for a <code>long</code> or <code>Long</code> type when its serialized.
This is the "default" serialization policy that will output a <code>long</code> object as a JSON
<CODE>abstract <AHREF="../../../com/google/gson/JsonElement.html"title="class in com.google.gson">JsonElement</A></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../com/google/gson/LongSerializationPolicy.html#serialize(java.lang.Long)">serialize</A></B>(<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Long.html?is-external=true"title="class or interface in java.lang">Long</A> value)</CODE>
<BR>
Serialize this <code>value</code> using this serialization policy.</TD>
<CODE>static <AHREF="../../../com/google/gson/LongSerializationPolicy.html"title="enum in com.google.gson">LongSerializationPolicy</A></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../com/google/gson/LongSerializationPolicy.html#valueOf(java.lang.String)">valueOf</A></B>(<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A> name)</CODE>
<BR>
Returns the enum constant of this type with the specified name.</TD>
<CODE>static <AHREF="../../../com/google/gson/LongSerializationPolicy.html"title="enum in com.google.gson">LongSerializationPolicy</A>[]</CODE></FONT></TD>
<THALIGN="left"><B>Methods inherited from class java.lang.<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Enum.html?is-external=true"title="class or interface in java.lang">Enum</A></B></TH>
</TR>
<TRBGCOLOR="white"CLASS="TableRowColor">
<TD><CODE><AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Enum.html?is-external=true#clone()"title="class or interface in java.lang">clone</A>, <AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Enum.html?is-external=true#compareTo(E)"title="class or interface in java.lang">compareTo</A>, <AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Enum.html?is-external=true#equals(java.lang.Object)"title="class or interface in java.lang">equals</A>, <AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Enum.html?is-external=true#finalize()"title="class or interface in java.lang">finalize</A>, <AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Enum.html?is-external=true#getDeclaringClass()"title="class or interface in java.lang">getDeclaringClass</A>, <AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Enum.html?is-external=true#hashCode()"title="class or interface in java.lang">hashCode</A>, <AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Enum.html?is-external=true#name()"title="class or interface in java.lang">name</A>, <AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Enum.html?is-external=true#ordinal()"title="class or interface in java.lang">ordinal</A>, <AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Enum.html?is-external=true#toString()"title="class or interface in java.lang">toString</A>, <AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Enum.html?is-external=true#valueOf(java.lang.Class, java.lang.String)"title="class or interface in java.lang">valueOf</A></CODE></TD>
<THALIGN="left"><B>Methods inherited from class java.lang.<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A></B></TH>
</TR>
<TRBGCOLOR="white"CLASS="TableRowColor">
<TD><CODE><AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#getClass()"title="class or interface in java.lang">getClass</A>, <AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notify()"title="class or interface in java.lang">notify</A>, <AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notifyAll()"title="class or interface in java.lang">notifyAll</A>, <AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait()"title="class or interface in java.lang">wait</A>, <AHREF="http://docs.oracle.com/javase/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://docs.oracle.com/javase/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 static final <AHREF="../../../com/google/gson/LongSerializationPolicy.html"title="enum in com.google.gson">LongSerializationPolicy</A><B>DEFAULT</B></PRE>
<DL>
<DD>This is the "default" serialization policy that will output a <code>long</code> object as a JSON
public static final <AHREF="../../../com/google/gson/LongSerializationPolicy.html"title="enum in com.google.gson">LongSerializationPolicy</A><B>STRING</B></PRE>
<DL>
<DD>Serializes a long value as a quoted string. For example, assume an object has a long field
public static <AHREF="../../../com/google/gson/LongSerializationPolicy.html"title="enum in com.google.gson">LongSerializationPolicy</A>[] <B>values</B>()</PRE>
<DL>
<DD>Returns an array containing the constants of this enum type, in
public static <AHREF="../../../com/google/gson/LongSerializationPolicy.html"title="enum in com.google.gson">LongSerializationPolicy</A><B>valueOf</B>(<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</A> name)</PRE>
<DL>
<DD>Returns the enum constant of this type with the specified name.
The string must match <I>exactly</I> an identifier used to declare an
<DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the enum constant to be returned.
<DT><B>Returns:</B><DD>the enum constant with the specified name
<DT><B>Throws:</B>
<DD><CODE><AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/IllegalArgumentException.html?is-external=true"title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if this enum type has no constant
with the specified name
<DD><CODE><AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/NullPointerException.html?is-external=true"title="class or interface in java.lang">NullPointerException</A></CODE> - if the argument is null</DL>
public abstract <AHREF="../../../com/google/gson/JsonElement.html"title="class in com.google.gson">JsonElement</A><B>serialize</B>(<AHREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Long.html?is-external=true"title="class or interface in java.lang">Long</A> value)</PRE>
<DL>
<DD>Serialize this <code>value</code> using this serialization policy.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>value</CODE> - the long value to be serialized into a <AHREF="../../../com/google/gson/JsonElement.html"title="class in com.google.gson"><CODE>JsonElement</CODE></A>
<DT><B>Returns:</B><DD>the serialized version of <code>value</code></DL>