1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 2<!--NewPage--> 3<HTML> 4<HEAD> 5<!-- Generated by javadoc (build 1.6.0_29) on Mon Mar 26 19:07:17 PDT 2012 --> 6<META http-equiv="Content-Type" content="text/html; charset=UTF-8"> 7<TITLE> 8NumericNode (jackson-databind 2.0.0 API) 9</TITLE> 10 11<META NAME="date" CONTENT="2012-03-26"> 12 13<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style"> 14 15<SCRIPT type="text/javascript"> 16function windowTitle() 17{ 18 if (location.href.indexOf('is-external=true') == -1) { 19 parent.document.title="NumericNode (jackson-databind 2.0.0 API)"; 20 } 21} 22</SCRIPT> 23<NOSCRIPT> 24</NOSCRIPT> 25 26</HEAD> 27 28<BODY BGCOLOR="white" onload="windowTitle();"> 29<HR> 30 31 32<!-- ========= START OF TOP NAVBAR ======= --> 33<A NAME="navbar_top"><!-- --></A> 34<A HREF="#skip-navbar_top" title="Skip navigation links"></A> 35<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 36<TR> 37<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 38<A NAME="navbar_top_firstrow"><!-- --></A> 39<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 40 <TR ALIGN="center" VALIGN="top"> 41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> 42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 43 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> 44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/NumericNode.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> 45 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 46 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 47 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 48 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 49 </TR> 50</TABLE> 51</TD> 52<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 53</EM> 54</TD> 55</TR> 56 57<TR> 58<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 59 <A HREF="../../../../../com/fasterxml/jackson/databind/node/NullNode.html" title="class in com.fasterxml.jackson.databind.node"><B>PREV CLASS</B></A> 60 <A HREF="../../../../../com/fasterxml/jackson/databind/node/ObjectNode.html" title="class in com.fasterxml.jackson.databind.node"><B>NEXT CLASS</B></A></FONT></TD> 61<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 62 <A HREF="../../../../../index.html?com/fasterxml/jackson/databind/node/NumericNode.html" target="_top"><B>FRAMES</B></A> 63 <A HREF="NumericNode.html" target="_top"><B>NO FRAMES</B></A> 64 <SCRIPT type="text/javascript"> 65 <!-- 66 if(window==top) { 67 document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); 68 } 69 //--> 70</SCRIPT> 71<NOSCRIPT> 72 <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> 73</NOSCRIPT> 74 75 76</FONT></TD> 77</TR> 78<TR> 79<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 80 SUMMARY: NESTED | <A HREF="#fields_inherited_from_class_com.fasterxml.jackson.databind.JsonNode">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> 81<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 82DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> 83</TR> 84</TABLE> 85<A NAME="skip-navbar_top"></A> 86<!-- ========= END OF TOP NAVBAR ========= --> 87 88<HR> 89<!-- ======== START OF CLASS DATA ======== --> 90<H2> 91<FONT SIZE="-1"> 92com.fasterxml.jackson.databind.node</FONT> 93<BR> 94Class NumericNode</H2> 95<PRE> 96<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A> 97 <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">com.fasterxml.jackson.databind.JsonNode</A> 98 <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html" title="class in com.fasterxml.jackson.databind.node">com.fasterxml.jackson.databind.node.BaseJsonNode</A> 99 <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html" title="class in com.fasterxml.jackson.databind.node">com.fasterxml.jackson.databind.node.ValueNode</A> 100 <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>com.fasterxml.jackson.databind.node.NumericNode</B> 101</PRE> 102<DL> 103<DT><B>All Implemented Interfaces:</B> <DD>com.fasterxml.jackson.core.TreeNode, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonSerializable.html" title="interface in com.fasterxml.jackson.databind">JsonSerializable</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</A><<A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A>></DD> 104</DL> 105<DL> 106<DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../../com/fasterxml/jackson/databind/node/BigIntegerNode.html" title="class in com.fasterxml.jackson.databind.node">BigIntegerNode</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/node/DecimalNode.html" title="class in com.fasterxml.jackson.databind.node">DecimalNode</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/node/DoubleNode.html" title="class in com.fasterxml.jackson.databind.node">DoubleNode</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/node/IntNode.html" title="class in com.fasterxml.jackson.databind.node">IntNode</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/node/LongNode.html" title="class in com.fasterxml.jackson.databind.node">LongNode</A></DD> 107</DL> 108<HR> 109<DL> 110<DT><PRE>public abstract class <B>NumericNode</B><DT>extends <A HREF="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html" title="class in com.fasterxml.jackson.databind.node">ValueNode</A></DL> 111</PRE> 112 113<P> 114Intermediate value node used for numeric nodes. 115<P> 116 117<P> 118<HR> 119 120<P> 121<!-- =========== FIELD SUMMARY =========== --> 122 123<A NAME="field_summary"><!-- --></A> 124<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 125<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 126<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 127<B>Field Summary</B></FONT></TH> 128</TR> 129</TABLE> 130 <A NAME="fields_inherited_from_class_com.fasterxml.jackson.databind.JsonNode"><!-- --></A> 131<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 132<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 133<TH ALIGN="left"><B>Fields inherited from class com.fasterxml.jackson.databind.<A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A></B></TH> 134</TR> 135<TR BGCOLOR="white" CLASS="TableRowColor"> 136<TD><CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#NO_NODES">NO_NODES</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#NO_STRINGS">NO_STRINGS</A></CODE></TD> 137</TR> 138</TABLE> 139 140<!-- ======== CONSTRUCTOR SUMMARY ======== --> 141 142<A NAME="constructor_summary"><!-- --></A> 143<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 144<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 145<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 146<B>Constructor Summary</B></FONT></TH> 147</TR> 148<TR BGCOLOR="white" CLASS="TableRowColor"> 149<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 150<CODE>protected </CODE></FONT></TD> 151<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#NumericNode()">NumericNode</A></B>()</CODE> 152 153<BR> 154 </TD> 155</TR> 156</TABLE> 157 158<!-- ========== METHOD SUMMARY =========== --> 159 160<A NAME="method_summary"><!-- --></A> 161<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 162<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 163<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 164<B>Method Summary</B></FONT></TH> 165</TR> 166<TR BGCOLOR="white" CLASS="TableRowColor"> 167<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 168<CODE> double</CODE></FONT></TD> 169<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#asDouble()">asDouble</A></B>()</CODE> 170 171<BR> 172 Method that will try to convert value of this node to a Java <b>double</b>.</TD> 173</TR> 174<TR BGCOLOR="white" CLASS="TableRowColor"> 175<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 176<CODE> double</CODE></FONT></TD> 177<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#asDouble(double)">asDouble</A></B>(double defaultValue)</CODE> 178 179<BR> 180 Method that will try to convert value of this node to a Java <b>double</b>.</TD> 181</TR> 182<TR BGCOLOR="white" CLASS="TableRowColor"> 183<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 184<CODE> int</CODE></FONT></TD> 185<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#asInt()">asInt</A></B>()</CODE> 186 187<BR> 188 Method that will try to convert value of this node to a Java <b>int</b>.</TD> 189</TR> 190<TR BGCOLOR="white" CLASS="TableRowColor"> 191<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 192<CODE> int</CODE></FONT></TD> 193<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#asInt(int)">asInt</A></B>(int defaultValue)</CODE> 194 195<BR> 196 Method that will try to convert value of this node to a Java <b>int</b>.</TD> 197</TR> 198<TR BGCOLOR="white" CLASS="TableRowColor"> 199<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 200<CODE> long</CODE></FONT></TD> 201<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#asLong()">asLong</A></B>()</CODE> 202 203<BR> 204 Method that will try to convert value of this node to a Java <b>long</b>.</TD> 205</TR> 206<TR BGCOLOR="white" CLASS="TableRowColor"> 207<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 208<CODE> long</CODE></FONT></TD> 209<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#asLong(long)">asLong</A></B>(long defaultValue)</CODE> 210 211<BR> 212 Method that will try to convert value of this node to a Java <b>long</b>.</TD> 213</TR> 214<TR BGCOLOR="white" CLASS="TableRowColor"> 215<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 216<CODE>abstract <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> 217<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#asText()">asText</A></B>()</CODE> 218 219<BR> 220 Method that will return a valid String representation of 221 the container value, if the node is a value node 222 (method <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isValueNode()"><CODE>JsonNode.isValueNode()</CODE></A> returns true), 223 otherwise empty String.</TD> 224</TR> 225<TR BGCOLOR="white" CLASS="TableRowColor"> 226<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 227<CODE>abstract <A HREF="http://docs.oracle.com/javase/6/docs/api/java/math/BigInteger.html?is-external=true" title="class or interface in java.math">BigInteger</A></CODE></FONT></TD> 228<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#bigIntegerValue()">bigIntegerValue</A></B>()</CODE> 229 230<BR> 231 </TD> 232</TR> 233<TR BGCOLOR="white" CLASS="TableRowColor"> 234<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 235<CODE>abstract boolean</CODE></FONT></TD> 236<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#canConvertToInt()">canConvertToInt</A></B>()</CODE> 237 238<BR> 239 Method that can be used to check whether this node is a numeric 240 node (<A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()"><CODE>JsonNode.isNumber()</CODE></A> would return true) AND its value fits 241 within Java's 32-bit signed integer type, <code>int</code>.</TD> 242</TR> 243<TR BGCOLOR="white" CLASS="TableRowColor"> 244<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 245<CODE>abstract boolean</CODE></FONT></TD> 246<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#canConvertToLong()">canConvertToLong</A></B>()</CODE> 247 248<BR> 249 Method that can be used to check whether this node is a numeric 250 node (<A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()"><CODE>JsonNode.isNumber()</CODE></A> would return true) AND its value fits 251 within Java's 64-bit signed integer type, <code>long</code>.</TD> 252</TR> 253<TR BGCOLOR="white" CLASS="TableRowColor"> 254<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 255<CODE>abstract <A HREF="http://docs.oracle.com/javase/6/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math">BigDecimal</A></CODE></FONT></TD> 256<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#decimalValue()">decimalValue</A></B>()</CODE> 257 258<BR> 259 </TD> 260</TR> 261<TR BGCOLOR="white" CLASS="TableRowColor"> 262<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 263<CODE>abstract double</CODE></FONT></TD> 264<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#doubleValue()">doubleValue</A></B>()</CODE> 265 266<BR> 267 </TD> 268</TR> 269<TR BGCOLOR="white" CLASS="TableRowColor"> 270<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 271<CODE>abstract int</CODE></FONT></TD> 272<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#intValue()">intValue</A></B>()</CODE> 273 274<BR> 275 Returns integer value for this node, <b>if and only if</b> 276 this node is numeric (<A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()"><CODE>JsonNode.isNumber()</CODE></A> returns true).</TD> 277</TR> 278<TR BGCOLOR="white" CLASS="TableRowColor"> 279<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 280<CODE> boolean</CODE></FONT></TD> 281<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#isNumber()">isNumber</A></B>()</CODE> 282 283<BR> 284 </TD> 285</TR> 286<TR BGCOLOR="white" CLASS="TableRowColor"> 287<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 288<CODE>abstract long</CODE></FONT></TD> 289<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#longValue()">longValue</A></B>()</CODE> 290 291<BR> 292 </TD> 293</TR> 294<TR BGCOLOR="white" CLASS="TableRowColor"> 295<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 296<CODE>abstract com.fasterxml.jackson.core.JsonParser.NumberType</CODE></FONT></TD> 297<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#numberType()">numberType</A></B>()</CODE> 298 299<BR> 300 Returns code that identifies type of underlying numeric 301 value, if (and only if) node is a number node.</TD> 302</TR> 303<TR BGCOLOR="white" CLASS="TableRowColor"> 304<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 305<CODE>abstract <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Number.html?is-external=true" title="class or interface in java.lang">Number</A></CODE></FONT></TD> 306<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#numberValue()">numberValue</A></B>()</CODE> 307 308<BR> 309 Returns numeric value for this node, <b>if and only if</b> 310 this node is numeric (<A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()"><CODE>JsonNode.isNumber()</CODE></A> returns true); otherwise 311 returns null</TD> 312</TR> 313</TABLE> 314 <A NAME="methods_inherited_from_class_com.fasterxml.jackson.databind.node.ValueNode"><!-- --></A> 315<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 316<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 317<TH ALIGN="left"><B>Methods inherited from class com.fasterxml.jackson.databind.node.<A HREF="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html" title="class in com.fasterxml.jackson.databind.node">ValueNode</A></B></TH> 318</TR> 319<TR BGCOLOR="white" CLASS="TableRowColor"> 320<TD><CODE><A HREF="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#asToken()">asToken</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#deepCopy()">deepCopy</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#isValueNode()">isValueNode</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#path(int)">path</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#path(java.lang.String)">path</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#serializeWithType(com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.databind.SerializerProvider, com.fasterxml.jackson.databind.jsontype.TypeSerializer)">serializeWithType</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#toString()">toString</A></CODE></TD> 321</TR> 322</TABLE> 323 <A NAME="methods_inherited_from_class_com.fasterxml.jackson.databind.node.BaseJsonNode"><!-- --></A> 324<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 325<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 326<TH ALIGN="left"><B>Methods inherited from class com.fasterxml.jackson.databind.node.<A HREF="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html" title="class in com.fasterxml.jackson.databind.node">BaseJsonNode</A></B></TH> 327</TR> 328<TR BGCOLOR="white" CLASS="TableRowColor"> 329<TD><CODE><A HREF="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#findParent(java.lang.String)">findParent</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#findParents(java.lang.String, java.util.List)">findParents</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#findPath(java.lang.String)">findPath</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#findValue(java.lang.String)">findValue</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#findValues(java.lang.String, java.util.List)">findValues</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#findValuesAsText(java.lang.String, java.util.List)">findValuesAsText</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#serialize(com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.databind.SerializerProvider)">serialize</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#traverse()">traverse</A></CODE></TD> 330</TR> 331</TABLE> 332 <A NAME="methods_inherited_from_class_com.fasterxml.jackson.databind.JsonNode"><!-- --></A> 333<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 334<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 335<TH ALIGN="left"><B>Methods inherited from class com.fasterxml.jackson.databind.<A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A></B></TH> 336</TR> 337<TR BGCOLOR="white" CLASS="TableRowColor"> 338<TD><CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asBoolean()">asBoolean</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asBoolean(boolean)">asBoolean</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#binaryValue()">binaryValue</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#booleanValue()">booleanValue</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#elements()">elements</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#equals(java.lang.Object)">equals</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#fieldNames()">fieldNames</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#fields()">fields</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#findParents(java.lang.String)">findParents</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#findValues(java.lang.String)">findValues</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#findValuesAsText(java.lang.String)">findValuesAsText</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#get(int)">get</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#get(java.lang.String)">get</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#has(int)">has</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#has(java.lang.String)">has</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isArray()">isArray</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isBigDecimal()">isBigDecimal</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isBigInteger()">isBigInteger</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isBinary()">isBinary</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isBoolean()">isBoolean</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isContainerNode()">isContainerNode</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isDouble()">isDouble</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isFloatingPointNumber()">isFloatingPointNumber</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isInt()">isInt</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isIntegralNumber()">isIntegralNumber</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isLong()">isLong</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isMissingNode()">isMissingNode</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNull()">isNull</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isObject()">isObject</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isPojo()">isPojo</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isTextual()">isTextual</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#iterator()">iterator</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#size()">size</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#textValue()">textValue</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#with(java.lang.String)">with</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#withArray(java.lang.String)">withArray</A></CODE></TD> 339</TR> 340</TABLE> 341 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> 342<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 343<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 344<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH> 345</TR> 346<TR BGCOLOR="white" CLASS="TableRowColor"> 347<TD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD> 348</TR> 349</TABLE> 350 351<P> 352 353<!-- ========= CONSTRUCTOR DETAIL ======== --> 354 355<A NAME="constructor_detail"><!-- --></A> 356<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 357<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 358<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 359<B>Constructor Detail</B></FONT></TH> 360</TR> 361</TABLE> 362 363<A NAME="NumericNode()"><!-- --></A><H3> 364NumericNode</H3> 365<PRE> 366protected <B>NumericNode</B>()</PRE> 367<DL> 368</DL> 369 370<!-- ============ METHOD DETAIL ========== --> 371 372<A NAME="method_detail"><!-- --></A> 373<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 374<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 375<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 376<B>Method Detail</B></FONT></TH> 377</TR> 378</TABLE> 379 380<A NAME="isNumber()"><!-- --></A><H3> 381isNumber</H3> 382<PRE> 383public final boolean <B>isNumber</B>()</PRE> 384<DL> 385<DD><DL> 386<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()">isNumber</A></CODE> in class <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A></CODE></DL> 387</DD> 388<DD><DL> 389 390<DT><B>Returns:</B><DD>True if this node represents a numeric JSON 391 value</DL> 392</DD> 393</DL> 394<HR> 395 396<A NAME="numberType()"><!-- --></A><H3> 397numberType</H3> 398<PRE> 399public abstract com.fasterxml.jackson.core.JsonParser.NumberType <B>numberType</B>()</PRE> 400<DL> 401<DD><B>Description copied from class: <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#numberType()">BaseJsonNode</A></CODE></B></DD> 402<DD>Returns code that identifies type of underlying numeric 403 value, if (and only if) node is a number node. 404<P> 405<DD><DL> 406<DT><B>Specified by:</B><DD><CODE>numberType</CODE> in interface <CODE>com.fasterxml.jackson.core.TreeNode</CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#numberType()">numberType</A></CODE> in class <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html" title="class in com.fasterxml.jackson.databind.node">BaseJsonNode</A></CODE></DL> 407</DD> 408<DD><DL> 409 410<DT><B>Returns:</B><DD>Type of number contained, if any; or null if node does not 411 contain numeric value.</DL> 412</DD> 413</DL> 414<HR> 415 416<A NAME="numberValue()"><!-- --></A><H3> 417numberValue</H3> 418<PRE> 419public abstract <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Number.html?is-external=true" title="class or interface in java.lang">Number</A> <B>numberValue</B>()</PRE> 420<DL> 421<DD><B>Description copied from class: <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#numberValue()">JsonNode</A></CODE></B></DD> 422<DD>Returns numeric value for this node, <b>if and only if</b> 423 this node is numeric (<A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()"><CODE>JsonNode.isNumber()</CODE></A> returns true); otherwise 424 returns null 425<P> 426<DD><DL> 427<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#numberValue()">numberValue</A></CODE> in class <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A></CODE></DL> 428</DD> 429<DD><DL> 430 431<DT><B>Returns:</B><DD>Number value this node contains, if any (null for non-number 432 nodes).</DL> 433</DD> 434</DL> 435<HR> 436 437<A NAME="intValue()"><!-- --></A><H3> 438intValue</H3> 439<PRE> 440public abstract int <B>intValue</B>()</PRE> 441<DL> 442<DD><B>Description copied from class: <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#intValue()">JsonNode</A></CODE></B></DD> 443<DD>Returns integer value for this node, <b>if and only if</b> 444 this node is numeric (<A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()"><CODE>JsonNode.isNumber()</CODE></A> returns true). For other 445 types returns 0. 446 For floating-point numbers, value is truncated using default 447 Java coercion, similar to how cast from double to int operates. 448<P> 449<DD><DL> 450<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#intValue()">intValue</A></CODE> in class <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A></CODE></DL> 451</DD> 452<DD><DL> 453 454<DT><B>Returns:</B><DD>Integer value this node contains, if any; 0 for non-number 455 nodes.</DL> 456</DD> 457</DL> 458<HR> 459 460<A NAME="longValue()"><!-- --></A><H3> 461longValue</H3> 462<PRE> 463public abstract long <B>longValue</B>()</PRE> 464<DL> 465<DD><DL> 466<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#longValue()">longValue</A></CODE> in class <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A></CODE></DL> 467</DD> 468<DD><DL> 469</DL> 470</DD> 471</DL> 472<HR> 473 474<A NAME="doubleValue()"><!-- --></A><H3> 475doubleValue</H3> 476<PRE> 477public abstract double <B>doubleValue</B>()</PRE> 478<DL> 479<DD><DL> 480<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#doubleValue()">doubleValue</A></CODE> in class <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A></CODE></DL> 481</DD> 482<DD><DL> 483</DL> 484</DD> 485</DL> 486<HR> 487 488<A NAME="decimalValue()"><!-- --></A><H3> 489decimalValue</H3> 490<PRE> 491public abstract <A HREF="http://docs.oracle.com/javase/6/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math">BigDecimal</A> <B>decimalValue</B>()</PRE> 492<DL> 493<DD><DL> 494<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#decimalValue()">decimalValue</A></CODE> in class <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A></CODE></DL> 495</DD> 496<DD><DL> 497</DL> 498</DD> 499</DL> 500<HR> 501 502<A NAME="bigIntegerValue()"><!-- --></A><H3> 503bigIntegerValue</H3> 504<PRE> 505public abstract <A HREF="http://docs.oracle.com/javase/6/docs/api/java/math/BigInteger.html?is-external=true" title="class or interface in java.math">BigInteger</A> <B>bigIntegerValue</B>()</PRE> 506<DL> 507<DD><DL> 508<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#bigIntegerValue()">bigIntegerValue</A></CODE> in class <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A></CODE></DL> 509</DD> 510<DD><DL> 511</DL> 512</DD> 513</DL> 514<HR> 515 516<A NAME="canConvertToInt()"><!-- --></A><H3> 517canConvertToInt</H3> 518<PRE> 519public abstract boolean <B>canConvertToInt</B>()</PRE> 520<DL> 521<DD><B>Description copied from class: <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#canConvertToInt()">JsonNode</A></CODE></B></DD> 522<DD>Method that can be used to check whether this node is a numeric 523 node (<A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()"><CODE>JsonNode.isNumber()</CODE></A> would return true) AND its value fits 524 within Java's 32-bit signed integer type, <code>int</code>. 525 Note that floating-point numbers are convertible if the integral 526 part fits without overflow (as per standard Java coercion rules) 527<P> 528<DD><DL> 529<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#canConvertToInt()">canConvertToInt</A></CODE> in class <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A></CODE></DL> 530</DD> 531<DD><DL> 532</DL> 533</DD> 534</DL> 535<HR> 536 537<A NAME="canConvertToLong()"><!-- --></A><H3> 538canConvertToLong</H3> 539<PRE> 540public abstract boolean <B>canConvertToLong</B>()</PRE> 541<DL> 542<DD><B>Description copied from class: <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#canConvertToLong()">JsonNode</A></CODE></B></DD> 543<DD>Method that can be used to check whether this node is a numeric 544 node (<A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()"><CODE>JsonNode.isNumber()</CODE></A> would return true) AND its value fits 545 within Java's 64-bit signed integer type, <code>long</code>. 546 Note that floating-point numbers are convertible if the integral 547 part fits without overflow (as per standard Java coercion rules) 548<P> 549<DD><DL> 550<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#canConvertToLong()">canConvertToLong</A></CODE> in class <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A></CODE></DL> 551</DD> 552<DD><DL> 553</DL> 554</DD> 555</DL> 556<HR> 557 558<A NAME="asText()"><!-- --></A><H3> 559asText</H3> 560<PRE> 561public abstract <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>asText</B>()</PRE> 562<DL> 563<DD><B>Description copied from class: <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asText()">JsonNode</A></CODE></B></DD> 564<DD>Method that will return a valid String representation of 565 the container value, if the node is a value node 566 (method <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isValueNode()"><CODE>JsonNode.isValueNode()</CODE></A> returns true), 567 otherwise empty String. 568<P> 569<DD><DL> 570<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asText()">asText</A></CODE> in class <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A></CODE></DL> 571</DD> 572<DD><DL> 573</DL> 574</DD> 575</DL> 576<HR> 577 578<A NAME="asInt()"><!-- --></A><H3> 579asInt</H3> 580<PRE> 581public int <B>asInt</B>()</PRE> 582<DL> 583<DD><B>Description copied from class: <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asInt()">JsonNode</A></CODE></B></DD> 584<DD>Method that will try to convert value of this node to a Java <b>int</b>. 585 Numbers are coerced using default Java rules; booleans convert to 0 (false) 586 and 1 (true), and Strings are parsed using default Java language integer 587 parsing rules. 588<p> 589 If representation can not be converted to an int (including structured types 590 like Objects and Arrays), 591 default value of <b>0</b> will be returned; no exceptions are thrown. 592<P> 593<DD><DL> 594<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asInt()">asInt</A></CODE> in class <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A></CODE></DL> 595</DD> 596<DD><DL> 597</DL> 598</DD> 599</DL> 600<HR> 601 602<A NAME="asInt(int)"><!-- --></A><H3> 603asInt</H3> 604<PRE> 605public int <B>asInt</B>(int defaultValue)</PRE> 606<DL> 607<DD><B>Description copied from class: <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asInt(int)">JsonNode</A></CODE></B></DD> 608<DD>Method that will try to convert value of this node to a Java <b>int</b>. 609 Numbers are coerced using default Java rules; booleans convert to 0 (false) 610 and 1 (true), and Strings are parsed using default Java language integer 611 parsing rules. 612<p> 613 If representation can not be converted to an int (including structured types 614 like Objects and Arrays), 615 specified <b>defaultValue</b> will be returned; no exceptions are thrown. 616<P> 617<DD><DL> 618<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asInt(int)">asInt</A></CODE> in class <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A></CODE></DL> 619</DD> 620<DD><DL> 621</DL> 622</DD> 623</DL> 624<HR> 625 626<A NAME="asLong()"><!-- --></A><H3> 627asLong</H3> 628<PRE> 629public long <B>asLong</B>()</PRE> 630<DL> 631<DD><B>Description copied from class: <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asLong()">JsonNode</A></CODE></B></DD> 632<DD>Method that will try to convert value of this node to a Java <b>long</b>. 633 Numbers are coerced using default Java rules; booleans convert to 0 (false) 634 and 1 (true), and Strings are parsed using default Java language integer 635 parsing rules. 636<p> 637 If representation can not be converted to an long (including structured types 638 like Objects and Arrays), 639 default value of <b>0</b> will be returned; no exceptions are thrown. 640<P> 641<DD><DL> 642<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asLong()">asLong</A></CODE> in class <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A></CODE></DL> 643</DD> 644<DD><DL> 645</DL> 646</DD> 647</DL> 648<HR> 649 650<A NAME="asLong(long)"><!-- --></A><H3> 651asLong</H3> 652<PRE> 653public long <B>asLong</B>(long defaultValue)</PRE> 654<DL> 655<DD><B>Description copied from class: <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asLong(long)">JsonNode</A></CODE></B></DD> 656<DD>Method that will try to convert value of this node to a Java <b>long</b>. 657 Numbers are coerced using default Java rules; booleans convert to 0 (false) 658 and 1 (true), and Strings are parsed using default Java language integer 659 parsing rules. 660<p> 661 If representation can not be converted to an long (including structured types 662 like Objects and Arrays), 663 specified <b>defaultValue</b> will be returned; no exceptions are thrown. 664<P> 665<DD><DL> 666<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asLong(long)">asLong</A></CODE> in class <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A></CODE></DL> 667</DD> 668<DD><DL> 669</DL> 670</DD> 671</DL> 672<HR> 673 674<A NAME="asDouble()"><!-- --></A><H3> 675asDouble</H3> 676<PRE> 677public double <B>asDouble</B>()</PRE> 678<DL> 679<DD><B>Description copied from class: <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asDouble()">JsonNode</A></CODE></B></DD> 680<DD>Method that will try to convert value of this node to a Java <b>double</b>. 681 Numbers are coerced using default Java rules; booleans convert to 0.0 (false) 682 and 1.0 (true), and Strings are parsed using default Java language integer 683 parsing rules. 684<p> 685 If representation can not be converted to an int (including structured types 686 like Objects and Arrays), 687 default value of <b>0.0</b> will be returned; no exceptions are thrown. 688<P> 689<DD><DL> 690<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asDouble()">asDouble</A></CODE> in class <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A></CODE></DL> 691</DD> 692<DD><DL> 693</DL> 694</DD> 695</DL> 696<HR> 697 698<A NAME="asDouble(double)"><!-- --></A><H3> 699asDouble</H3> 700<PRE> 701public double <B>asDouble</B>(double defaultValue)</PRE> 702<DL> 703<DD><B>Description copied from class: <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asDouble(double)">JsonNode</A></CODE></B></DD> 704<DD>Method that will try to convert value of this node to a Java <b>double</b>. 705 Numbers are coerced using default Java rules; booleans convert to 0.0 (false) 706 and 1.0 (true), and Strings are parsed using default Java language integer 707 parsing rules. 708<p> 709 If representation can not be converted to an int (including structured types 710 like Objects and Arrays), 711 specified <b>defaultValue</b> will be returned; no exceptions are thrown. 712<P> 713<DD><DL> 714<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asDouble(double)">asDouble</A></CODE> in class <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A></CODE></DL> 715</DD> 716<DD><DL> 717</DL> 718</DD> 719</DL> 720<!-- ========= END OF CLASS DATA ========= --> 721<HR> 722 723 724<!-- ======= START OF BOTTOM NAVBAR ====== --> 725<A NAME="navbar_bottom"><!-- --></A> 726<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> 727<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 728<TR> 729<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 730<A NAME="navbar_bottom_firstrow"><!-- --></A> 731<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 732 <TR ALIGN="center" VALIGN="top"> 733 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> 734 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 735 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> 736 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/NumericNode.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> 737 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 738 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 739 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 740 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 741 </TR> 742</TABLE> 743</TD> 744<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 745</EM> 746</TD> 747</TR> 748 749<TR> 750<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 751 <A HREF="../../../../../com/fasterxml/jackson/databind/node/NullNode.html" title="class in com.fasterxml.jackson.databind.node"><B>PREV CLASS</B></A> 752 <A HREF="../../../../../com/fasterxml/jackson/databind/node/ObjectNode.html" title="class in com.fasterxml.jackson.databind.node"><B>NEXT CLASS</B></A></FONT></TD> 753<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 754 <A HREF="../../../../../index.html?com/fasterxml/jackson/databind/node/NumericNode.html" target="_top"><B>FRAMES</B></A> 755 <A HREF="NumericNode.html" target="_top"><B>NO FRAMES</B></A> 756 <SCRIPT type="text/javascript"> 757 <!-- 758 if(window==top) { 759 document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); 760 } 761 //--> 762</SCRIPT> 763<NOSCRIPT> 764 <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> 765</NOSCRIPT> 766 767 768</FONT></TD> 769</TR> 770<TR> 771<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 772 SUMMARY: NESTED | <A HREF="#fields_inherited_from_class_com.fasterxml.jackson.databind.JsonNode">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> 773<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 774DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> 775</TR> 776</TABLE> 777<A NAME="skip-navbar_bottom"></A> 778<!-- ======== END OF BOTTOM NAVBAR ======= --> 779 780<HR> 781Copyright © 2012 <a href="http://fasterxml.com">fasterxml.com</a>. All Rights Reserved. 782</BODY> 783</HTML> 784