1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 2<!-- NewPage --> 3<html lang="en"> 4<head> 5<!-- Generated by javadoc (1.8.0) on Sun Jul 19 11:36:53 PDT 2015 --> 6<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 7<title>NumericNode (jackson-databind 2.6.0 API)</title> 8<meta name="date" content="2015-07-19"> 9<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> 10<script type="text/javascript" src="../../../../../script.js"></script> 11</head> 12<body> 13<script type="text/javascript"><!-- 14 try { 15 if (location.href.indexOf('is-external=true') == -1) { 16 parent.document.title="NumericNode (jackson-databind 2.6.0 API)"; 17 } 18 } 19 catch(err) { 20 } 21//--> 22var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":6,"i7":6,"i8":6,"i9":6,"i10":6,"i11":6,"i12":10,"i13":6,"i14":6,"i15":6,"i16":6}; 23var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"],8:["t4","Concrete Methods"]}; 24var altColor = "altColor"; 25var rowColor = "rowColor"; 26var tableTab = "tableTab"; 27var activeTableTab = "activeTableTab"; 28</script> 29<noscript> 30<div>JavaScript is disabled on your browser.</div> 31</noscript> 32<!-- ========= START OF TOP NAVBAR ======= --> 33<div class="topNav"><a name="navbar.top"> 34<!-- --> 35</a> 36<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> 37<a name="navbar.top.firstrow"> 38<!-- --> 39</a> 40<ul class="navList" title="Navigation"> 41<li><a href="../../../../../overview-summary.html">Overview</a></li> 42<li><a href="package-summary.html">Package</a></li> 43<li class="navBarCell1Rev">Class</li> 44<li><a href="class-use/NumericNode.html">Use</a></li> 45<li><a href="package-tree.html">Tree</a></li> 46<li><a href="../../../../../deprecated-list.html">Deprecated</a></li> 47<li><a href="../../../../../index-all.html">Index</a></li> 48<li><a href="../../../../../help-doc.html">Help</a></li> 49</ul> 50</div> 51<div class="subNav"> 52<ul class="navList"> 53<li><a href="../../../../../com/fasterxml/jackson/databind/node/NullNode.html" title="class in com.fasterxml.jackson.databind.node"><span class="typeNameLink">Prev Class</span></a></li> 54<li><a href="../../../../../com/fasterxml/jackson/databind/node/ObjectNode.html" title="class in com.fasterxml.jackson.databind.node"><span class="typeNameLink">Next Class</span></a></li> 55</ul> 56<ul class="navList"> 57<li><a href="../../../../../index.html?com/fasterxml/jackson/databind/node/NumericNode.html" target="_top">Frames</a></li> 58<li><a href="NumericNode.html" target="_top">No Frames</a></li> 59</ul> 60<ul class="navList" id="allclasses_navbar_top"> 61<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> 62</ul> 63<div> 64<script type="text/javascript"><!-- 65 allClassesLink = document.getElementById("allclasses_navbar_top"); 66 if(window==top) { 67 allClassesLink.style.display = "block"; 68 } 69 else { 70 allClassesLink.style.display = "none"; 71 } 72 //--> 73</script> 74</div> 75<div> 76<ul class="subNavList"> 77<li>Summary: </li> 78<li>Nested | </li> 79<li>Field | </li> 80<li><a href="#constructor.summary">Constr</a> | </li> 81<li><a href="#method.summary">Method</a></li> 82</ul> 83<ul class="subNavList"> 84<li>Detail: </li> 85<li>Field | </li> 86<li><a href="#constructor.detail">Constr</a> | </li> 87<li><a href="#method.detail">Method</a></li> 88</ul> 89</div> 90<a name="skip.navbar.top"> 91<!-- --> 92</a></div> 93<!-- ========= END OF TOP NAVBAR ========= --> 94<!-- ======== START OF CLASS DATA ======== --> 95<div class="header"> 96<div class="subTitle">com.fasterxml.jackson.databind.node</div> 97<h2 title="Class NumericNode" class="title">Class NumericNode</h2> 98</div> 99<div class="contentContainer"> 100<ul class="inheritance"> 101<li><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></li> 102<li> 103<ul class="inheritance"> 104<li><a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.Base.html" title="class in com.fasterxml.jackson.databind">com.fasterxml.jackson.databind.JsonSerializable.Base</a></li> 105<li> 106<ul class="inheritance"> 107<li><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">com.fasterxml.jackson.databind.JsonNode</a></li> 108<li> 109<ul class="inheritance"> 110<li><a href="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html" title="class in com.fasterxml.jackson.databind.node">com.fasterxml.jackson.databind.node.BaseJsonNode</a></li> 111<li> 112<ul class="inheritance"> 113<li><a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html" title="class in com.fasterxml.jackson.databind.node">com.fasterxml.jackson.databind.node.ValueNode</a></li> 114<li> 115<ul class="inheritance"> 116<li>com.fasterxml.jackson.databind.node.NumericNode</li> 117</ul> 118</li> 119</ul> 120</li> 121</ul> 122</li> 123</ul> 124</li> 125</ul> 126</li> 127</ul> 128<div class="description"> 129<ul class="blockList"> 130<li class="blockList"> 131<dl> 132<dt>All Implemented Interfaces:</dt> 133<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> 134</dl> 135<dl> 136<dt>Direct Known Subclasses:</dt> 137<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/FloatNode.html" title="class in com.fasterxml.jackson.databind.node">FloatNode</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>, <a href="../../../../../com/fasterxml/jackson/databind/node/ShortNode.html" title="class in com.fasterxml.jackson.databind.node">ShortNode</a></dd> 138</dl> 139<hr> 140<br> 141<pre>public abstract class <span class="typeNameLabel">NumericNode</span> 142extends <a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html" title="class in com.fasterxml.jackson.databind.node">ValueNode</a></pre> 143<div class="block">Intermediate value node used for numeric nodes.</div> 144</li> 145</ul> 146</div> 147<div class="summary"> 148<ul class="blockList"> 149<li class="blockList"> 150<!-- ======== NESTED CLASS SUMMARY ======== --> 151<ul class="blockList"> 152<li class="blockList"><a name="nested.class.summary"> 153<!-- --> 154</a> 155<h3>Nested Class Summary</h3> 156<ul class="blockList"> 157<li class="blockList"><a name="nested.classes.inherited.from.class.com.fasterxml.jackson.databind.JsonSerializable"> 158<!-- --> 159</a> 160<h3>Nested classes/interfaces inherited from interface com.fasterxml.jackson.databind.<a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.html" title="interface in com.fasterxml.jackson.databind">JsonSerializable</a></h3> 161<code><a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.Base.html" title="class in com.fasterxml.jackson.databind">JsonSerializable.Base</a></code></li> 162</ul> 163</li> 164</ul> 165<!-- ======== CONSTRUCTOR SUMMARY ======== --> 166<ul class="blockList"> 167<li class="blockList"><a name="constructor.summary"> 168<!-- --> 169</a> 170<h3>Constructor Summary</h3> 171<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> 172<caption><span>Constructors</span><span class="tabEnd"> </span></caption> 173<tr> 174<th class="colFirst" scope="col">Modifier</th> 175<th class="colLast" scope="col">Constructor and Description</th> 176</tr> 177<tr class="altColor"> 178<td class="colFirst"><code>protected </code></td> 179<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#NumericNode--">NumericNode</a></span>()</code> </td> 180</tr> 181</table> 182</li> 183</ul> 184<!-- ========== METHOD SUMMARY =========== --> 185<ul class="blockList"> 186<li class="blockList"><a name="method.summary"> 187<!-- --> 188</a> 189<h3>Method Summary</h3> 190<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> 191<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption> 192<tr> 193<th class="colFirst" scope="col">Modifier and Type</th> 194<th class="colLast" scope="col">Method and Description</th> 195</tr> 196<tr id="i0" class="altColor"> 197<td class="colFirst"><code>double</code></td> 198<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#asDouble--">asDouble</a></span>()</code> 199<div class="block">Method that will try to convert value of this node to a Java <b>double</b>.</div> 200</td> 201</tr> 202<tr id="i1" class="rowColor"> 203<td class="colFirst"><code>double</code></td> 204<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#asDouble-double-">asDouble</a></span>(double defaultValue)</code> 205<div class="block">Method that will try to convert value of this node to a Java <b>double</b>.</div> 206</td> 207</tr> 208<tr id="i2" class="altColor"> 209<td class="colFirst"><code>int</code></td> 210<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#asInt--">asInt</a></span>()</code> 211<div class="block">Method that will try to convert value of this node to a Java <b>int</b>.</div> 212</td> 213</tr> 214<tr id="i3" class="rowColor"> 215<td class="colFirst"><code>int</code></td> 216<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#asInt-int-">asInt</a></span>(int defaultValue)</code> 217<div class="block">Method that will try to convert value of this node to a Java <b>int</b>.</div> 218</td> 219</tr> 220<tr id="i4" class="altColor"> 221<td class="colFirst"><code>long</code></td> 222<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#asLong--">asLong</a></span>()</code> 223<div class="block">Method that will try to convert value of this node to a Java <b>long</b>.</div> 224</td> 225</tr> 226<tr id="i5" class="rowColor"> 227<td class="colFirst"><code>long</code></td> 228<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#asLong-long-">asLong</a></span>(long defaultValue)</code> 229<div class="block">Method that will try to convert value of this node to a Java <b>long</b>.</div> 230</td> 231</tr> 232<tr id="i6" class="altColor"> 233<td class="colFirst"><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></td> 234<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#asText--">asText</a></span>()</code> 235<div class="block">Method that will return a valid String representation of 236 the container value, if the node is a value node 237 (method <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isValueNode--"><code>JsonNode.isValueNode()</code></a> returns true), 238 otherwise empty String.</div> 239</td> 240</tr> 241<tr id="i7" class="rowColor"> 242<td class="colFirst"><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></td> 243<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#bigIntegerValue--">bigIntegerValue</a></span>()</code> </td> 244</tr> 245<tr id="i8" class="altColor"> 246<td class="colFirst"><code>abstract boolean</code></td> 247<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#canConvertToInt--">canConvertToInt</a></span>()</code> 248<div class="block">Method that can be used to check whether this node is a numeric 249 node (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>JsonNode.isNumber()</code></a> would return true) AND its value fits 250 within Java's 32-bit signed integer type, <code>int</code>.</div> 251</td> 252</tr> 253<tr id="i9" class="rowColor"> 254<td class="colFirst"><code>abstract boolean</code></td> 255<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#canConvertToLong--">canConvertToLong</a></span>()</code> 256<div class="block">Method that can be used to check whether this node is a numeric 257 node (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>JsonNode.isNumber()</code></a> would return true) AND its value fits 258 within Java's 64-bit signed integer type, <code>long</code>.</div> 259</td> 260</tr> 261<tr id="i10" class="altColor"> 262<td class="colFirst"><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></td> 263<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#decimalValue--">decimalValue</a></span>()</code> </td> 264</tr> 265<tr id="i11" class="rowColor"> 266<td class="colFirst"><code>abstract double</code></td> 267<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#doubleValue--">doubleValue</a></span>()</code> 268<div class="block">Returns 64-bit floating point (double) value for this node, <b>if and only if</b> 269 this node is numeric (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>JsonNode.isNumber()</code></a> returns true).</div> 270</td> 271</tr> 272<tr id="i12" class="altColor"> 273<td class="colFirst"><code><a href="../../../../../com/fasterxml/jackson/databind/node/JsonNodeType.html" title="enum in com.fasterxml.jackson.databind.node">JsonNodeType</a></code></td> 274<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#getNodeType--">getNodeType</a></span>()</code> 275<div class="block">Return the type of this node</div> 276</td> 277</tr> 278<tr id="i13" class="rowColor"> 279<td class="colFirst"><code>abstract int</code></td> 280<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#intValue--">intValue</a></span>()</code> 281<div class="block">Returns integer value for this node, <b>if and only if</b> 282 this node is numeric (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>JsonNode.isNumber()</code></a> returns true).</div> 283</td> 284</tr> 285<tr id="i14" class="altColor"> 286<td class="colFirst"><code>abstract long</code></td> 287<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#longValue--">longValue</a></span>()</code> 288<div class="block">Returns 64-bit long value for this node, <b>if and only if</b> 289 this node is numeric (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>JsonNode.isNumber()</code></a> returns true).</div> 290</td> 291</tr> 292<tr id="i15" class="rowColor"> 293<td class="colFirst"><code>abstract com.fasterxml.jackson.core.JsonParser.NumberType</code></td> 294<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#numberType--">numberType</a></span>()</code> 295<div class="block">Returns code that identifies type of underlying numeric 296 value, if (and only if) node is a number node.</div> 297</td> 298</tr> 299<tr id="i16" class="altColor"> 300<td class="colFirst"><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></td> 301<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#numberValue--">numberValue</a></span>()</code> 302<div class="block">Returns numeric value for this node, <b>if and only if</b> 303 this node is numeric (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>JsonNode.isNumber()</code></a> returns true); otherwise 304 returns null</div> 305</td> 306</tr> 307</table> 308<ul class="blockList"> 309<li class="blockList"><a name="methods.inherited.from.class.com.fasterxml.jackson.databind.node.ValueNode"> 310<!-- --> 311</a> 312<h3>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></h3> 313<code><a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#Z:Z_at-com.fasterxml.jackson.core.JsonPointer-">_at</a>, <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#findParent-java.lang.String-">findParent</a>, <a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#findParents-java.lang.String-java.util.List-">findParents</a>, <a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#findValue-java.lang.String-">findValue</a>, <a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#findValues-java.lang.String-java.util.List-">findValues</a>, <a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#findValuesAsText-java.lang.String-java.util.List-">findValuesAsText</a>, <a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#get-int-">get</a>, <a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#get-java.lang.String-">get</a>, <a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#has-int-">has</a>, <a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#has-java.lang.String-">has</a>, <a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#hasNonNull-int-">hasNonNull</a>, <a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#hasNonNull-java.lang.String-">hasNonNull</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></li> 314</ul> 315<ul class="blockList"> 316<li class="blockList"><a name="methods.inherited.from.class.com.fasterxml.jackson.databind.node.BaseJsonNode"> 317<!-- --> 318</a> 319<h3>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></h3> 320<code><a href="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#findPath-java.lang.String-">findPath</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>, <a href="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#traverse-com.fasterxml.jackson.core.ObjectCodec-">traverse</a></code></li> 321</ul> 322<ul class="blockList"> 323<li class="blockList"><a name="methods.inherited.from.class.com.fasterxml.jackson.databind.JsonNode"> 324<!-- --> 325</a> 326<h3>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></h3> 327<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#asText-java.lang.String-">asText</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#at-com.fasterxml.jackson.core.JsonPointer-">at</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#at-java.lang.String-">at</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.util.Comparator-com.fasterxml.jackson.databind.JsonNode-">equals</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#floatValue--">floatValue</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#isFloat--">isFloat</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#isNumber--">isNumber</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#isShort--">isShort</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isTextual--">isTextual</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isValueNode--">isValueNode</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#iterator--">iterator</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#shortValue--">shortValue</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></li> 328</ul> 329<ul class="blockList"> 330<li class="blockList"><a name="methods.inherited.from.class.com.fasterxml.jackson.databind.JsonSerializable.Base"> 331<!-- --> 332</a> 333<h3>Methods inherited from class com.fasterxml.jackson.databind.<a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.Base.html" title="class in com.fasterxml.jackson.databind">JsonSerializable.Base</a></h3> 334<code><a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.Base.html#isEmpty-com.fasterxml.jackson.databind.SerializerProvider-">isEmpty</a></code></li> 335</ul> 336<ul class="blockList"> 337<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> 338<!-- --> 339</a> 340<h3>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></h3> 341<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></li> 342</ul> 343<ul class="blockList"> 344<li class="blockList"><a name="methods.inherited.from.class.java.lang.Iterable"> 345<!-- --> 346</a> 347<h3>Methods inherited from interface java.lang.<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></h3> 348<code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Iterable.html?is-external=true#forEach-java.util.function.Consumer-" title="class or interface in java.lang">forEach</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Iterable.html?is-external=true#spliterator--" title="class or interface in java.lang">spliterator</a></code></li> 349</ul> 350</li> 351</ul> 352</li> 353</ul> 354</div> 355<div class="details"> 356<ul class="blockList"> 357<li class="blockList"> 358<!-- ========= CONSTRUCTOR DETAIL ======== --> 359<ul class="blockList"> 360<li class="blockList"><a name="constructor.detail"> 361<!-- --> 362</a> 363<h3>Constructor Detail</h3> 364<a name="NumericNode--"> 365<!-- --> 366</a> 367<ul class="blockListLast"> 368<li class="blockList"> 369<h4>NumericNode</h4> 370<pre>protected NumericNode()</pre> 371</li> 372</ul> 373</li> 374</ul> 375<!-- ============ METHOD DETAIL ========== --> 376<ul class="blockList"> 377<li class="blockList"><a name="method.detail"> 378<!-- --> 379</a> 380<h3>Method Detail</h3> 381<a name="getNodeType--"> 382<!-- --> 383</a> 384<ul class="blockList"> 385<li class="blockList"> 386<h4>getNodeType</h4> 387<pre>public final <a href="../../../../../com/fasterxml/jackson/databind/node/JsonNodeType.html" title="enum in com.fasterxml.jackson.databind.node">JsonNodeType</a> getNodeType()</pre> 388<div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#getNodeType--">JsonNode</a></code></span></div> 389<div class="block">Return the type of this node</div> 390<dl> 391<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 392<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#getNodeType--">getNodeType</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></dd> 393<dt><span class="returnLabel">Returns:</span></dt> 394<dd>the node type as a <a href="../../../../../com/fasterxml/jackson/databind/node/JsonNodeType.html" title="enum in com.fasterxml.jackson.databind.node"><code>JsonNodeType</code></a> enum value</dd> 395</dl> 396</li> 397</ul> 398<a name="numberType--"> 399<!-- --> 400</a> 401<ul class="blockList"> 402<li class="blockList"> 403<h4>numberType</h4> 404<pre>public abstract com.fasterxml.jackson.core.JsonParser.NumberType numberType()</pre> 405<div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#numberType--">BaseJsonNode</a></code></span></div> 406<div class="block">Returns code that identifies type of underlying numeric 407 value, if (and only if) node is a number node.</div> 408<dl> 409<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 410<dd><code>numberType</code> in interface <code>com.fasterxml.jackson.core.TreeNode</code></dd> 411<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> 412<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></dd> 413</dl> 414</li> 415</ul> 416<a name="numberValue--"> 417<!-- --> 418</a> 419<ul class="blockList"> 420<li class="blockList"> 421<h4>numberValue</h4> 422<pre>public 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> numberValue()</pre> 423<div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#numberValue--">JsonNode</a></code></span></div> 424<div class="block">Returns numeric value for this node, <b>if and only if</b> 425 this node is numeric (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>JsonNode.isNumber()</code></a> returns true); otherwise 426 returns null</div> 427<dl> 428<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> 429<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></dd> 430<dt><span class="returnLabel">Returns:</span></dt> 431<dd>Number value this node contains, if any (null for non-number 432 nodes).</dd> 433</dl> 434</li> 435</ul> 436<a name="intValue--"> 437<!-- --> 438</a> 439<ul class="blockList"> 440<li class="blockList"> 441<h4>intValue</h4> 442<pre>public abstract int intValue()</pre> 443<div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#intValue--">JsonNode</a></code></span></div> 444<div class="block">Returns integer value for this node, <b>if and only if</b> 445 this node is numeric (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>JsonNode.isNumber()</code></a> returns true). For other 446 types returns 0. 447 For floating-point numbers, value is truncated using default 448 Java coercion, similar to how cast from double to int operates.</div> 449<dl> 450<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> 451<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></dd> 452<dt><span class="returnLabel">Returns:</span></dt> 453<dd>Integer value this node contains, if any; 0 for non-number 454 nodes.</dd> 455</dl> 456</li> 457</ul> 458<a name="longValue--"> 459<!-- --> 460</a> 461<ul class="blockList"> 462<li class="blockList"> 463<h4>longValue</h4> 464<pre>public abstract long longValue()</pre> 465<div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#longValue--">JsonNode</a></code></span></div> 466<div class="block">Returns 64-bit long value for this node, <b>if and only if</b> 467 this node is numeric (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>JsonNode.isNumber()</code></a> returns true). For other 468 types returns 0. 469 For floating-point numbers, value is truncated using default 470 Java coercion, similar to how cast from double to long operates.</div> 471<dl> 472<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> 473<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></dd> 474<dt><span class="returnLabel">Returns:</span></dt> 475<dd>Long value this node contains, if any; 0 for non-number 476 nodes.</dd> 477</dl> 478</li> 479</ul> 480<a name="doubleValue--"> 481<!-- --> 482</a> 483<ul class="blockList"> 484<li class="blockList"> 485<h4>doubleValue</h4> 486<pre>public abstract double doubleValue()</pre> 487<div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#doubleValue--">JsonNode</a></code></span></div> 488<div class="block">Returns 64-bit floating point (double) value for this node, <b>if and only if</b> 489 this node is numeric (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>JsonNode.isNumber()</code></a> returns true). For other 490 types returns 0.0. 491 For integer values, conversion is done using coercion; this may result 492 in overflows with <a href="http://docs.oracle.com/javase/6/docs/api/java/math/BigInteger.html?is-external=true" title="class or interface in java.math"><code>BigInteger</code></a> values.</div> 493<dl> 494<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> 495<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></dd> 496<dt><span class="returnLabel">Returns:</span></dt> 497<dd>64-bit double value this node contains, if any; 0.0 for non-number nodes.</dd> 498</dl> 499</li> 500</ul> 501<a name="decimalValue--"> 502<!-- --> 503</a> 504<ul class="blockList"> 505<li class="blockList"> 506<h4>decimalValue</h4> 507<pre>public 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> decimalValue()</pre> 508<dl> 509<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> 510<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></dd> 511</dl> 512</li> 513</ul> 514<a name="bigIntegerValue--"> 515<!-- --> 516</a> 517<ul class="blockList"> 518<li class="blockList"> 519<h4>bigIntegerValue</h4> 520<pre>public 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> bigIntegerValue()</pre> 521<dl> 522<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> 523<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></dd> 524</dl> 525</li> 526</ul> 527<a name="canConvertToInt--"> 528<!-- --> 529</a> 530<ul class="blockList"> 531<li class="blockList"> 532<h4>canConvertToInt</h4> 533<pre>public abstract boolean canConvertToInt()</pre> 534<div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#canConvertToInt--">JsonNode</a></code></span></div> 535<div class="block">Method that can be used to check whether this node is a numeric 536 node (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>JsonNode.isNumber()</code></a> would return true) AND its value fits 537 within Java's 32-bit signed integer type, <code>int</code>. 538 Note that floating-point numbers are convertible if the integral 539 part fits without overflow (as per standard Java coercion rules) 540<p> 541 NOTE: this method does not consider possible value type conversion 542 from JSON String into Number; so even if this method returns false, 543 it is possible that <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asInt--"><code>JsonNode.asInt()</code></a> could still succeed 544 if node is a JSON String representing integral number, or boolean.</div> 545<dl> 546<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> 547<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></dd> 548</dl> 549</li> 550</ul> 551<a name="canConvertToLong--"> 552<!-- --> 553</a> 554<ul class="blockList"> 555<li class="blockList"> 556<h4>canConvertToLong</h4> 557<pre>public abstract boolean canConvertToLong()</pre> 558<div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#canConvertToLong--">JsonNode</a></code></span></div> 559<div class="block">Method that can be used to check whether this node is a numeric 560 node (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>JsonNode.isNumber()</code></a> would return true) AND its value fits 561 within Java's 64-bit signed integer type, <code>long</code>. 562 Note that floating-point numbers are convertible if the integral 563 part fits without overflow (as per standard Java coercion rules) 564<p> 565 NOTE: this method does not consider possible value type conversion 566 from JSON String into Number; so even if this method returns false, 567 it is possible that <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asLong--"><code>JsonNode.asLong()</code></a> could still succeed 568 if node is a JSON String representing integral number, or boolean.</div> 569<dl> 570<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> 571<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></dd> 572</dl> 573</li> 574</ul> 575<a name="asText--"> 576<!-- --> 577</a> 578<ul class="blockList"> 579<li class="blockList"> 580<h4>asText</h4> 581<pre>public 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> asText()</pre> 582<div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asText--">JsonNode</a></code></span></div> 583<div class="block">Method that will return a valid String representation of 584 the container value, if the node is a value node 585 (method <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isValueNode--"><code>JsonNode.isValueNode()</code></a> returns true), 586 otherwise empty String.</div> 587<dl> 588<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 589<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></dd> 590</dl> 591</li> 592</ul> 593<a name="asInt--"> 594<!-- --> 595</a> 596<ul class="blockList"> 597<li class="blockList"> 598<h4>asInt</h4> 599<pre>public final int asInt()</pre> 600<div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asInt--">JsonNode</a></code></span></div> 601<div class="block">Method that will try to convert value of this node to a Java <b>int</b>. 602 Numbers are coerced using default Java rules; booleans convert to 0 (false) 603 and 1 (true), and Strings are parsed using default Java language integer 604 parsing rules. 605<p> 606 If representation can not be converted to an int (including structured types 607 like Objects and Arrays), 608 default value of <b>0</b> will be returned; no exceptions are thrown.</div> 609<dl> 610<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> 611<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></dd> 612</dl> 613</li> 614</ul> 615<a name="asInt-int-"> 616<!-- --> 617</a> 618<ul class="blockList"> 619<li class="blockList"> 620<h4>asInt</h4> 621<pre>public final int asInt(int defaultValue)</pre> 622<div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asInt-int-">JsonNode</a></code></span></div> 623<div class="block">Method that will try to convert value of this node to a Java <b>int</b>. 624 Numbers are coerced using default Java rules; booleans convert to 0 (false) 625 and 1 (true), and Strings are parsed using default Java language integer 626 parsing rules. 627<p> 628 If representation can not be converted to an int (including structured types 629 like Objects and Arrays), 630 specified <b>defaultValue</b> will be returned; no exceptions are thrown.</div> 631<dl> 632<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> 633<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></dd> 634</dl> 635</li> 636</ul> 637<a name="asLong--"> 638<!-- --> 639</a> 640<ul class="blockList"> 641<li class="blockList"> 642<h4>asLong</h4> 643<pre>public final long asLong()</pre> 644<div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asLong--">JsonNode</a></code></span></div> 645<div class="block">Method that will try to convert value of this node to a Java <b>long</b>. 646 Numbers are coerced using default Java rules; booleans convert to 0 (false) 647 and 1 (true), and Strings are parsed using default Java language integer 648 parsing rules. 649<p> 650 If representation can not be converted to an long (including structured types 651 like Objects and Arrays), 652 default value of <b>0</b> will be returned; no exceptions are thrown.</div> 653<dl> 654<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> 655<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></dd> 656</dl> 657</li> 658</ul> 659<a name="asLong-long-"> 660<!-- --> 661</a> 662<ul class="blockList"> 663<li class="blockList"> 664<h4>asLong</h4> 665<pre>public final long asLong(long defaultValue)</pre> 666<div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asLong-long-">JsonNode</a></code></span></div> 667<div class="block">Method that will try to convert value of this node to a Java <b>long</b>. 668 Numbers are coerced using default Java rules; booleans convert to 0 (false) 669 and 1 (true), and Strings are parsed using default Java language integer 670 parsing rules. 671<p> 672 If representation can not be converted to an long (including structured types 673 like Objects and Arrays), 674 specified <b>defaultValue</b> will be returned; no exceptions are thrown.</div> 675<dl> 676<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> 677<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></dd> 678</dl> 679</li> 680</ul> 681<a name="asDouble--"> 682<!-- --> 683</a> 684<ul class="blockList"> 685<li class="blockList"> 686<h4>asDouble</h4> 687<pre>public final double asDouble()</pre> 688<div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asDouble--">JsonNode</a></code></span></div> 689<div class="block">Method that will try to convert value of this node to a Java <b>double</b>. 690 Numbers are coerced using default Java rules; booleans convert to 0.0 (false) 691 and 1.0 (true), and Strings are parsed using default Java language integer 692 parsing rules. 693<p> 694 If representation can not be converted to an int (including structured types 695 like Objects and Arrays), 696 default value of <b>0.0</b> will be returned; no exceptions are thrown.</div> 697<dl> 698<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> 699<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></dd> 700</dl> 701</li> 702</ul> 703<a name="asDouble-double-"> 704<!-- --> 705</a> 706<ul class="blockListLast"> 707<li class="blockList"> 708<h4>asDouble</h4> 709<pre>public final double asDouble(double defaultValue)</pre> 710<div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asDouble-double-">JsonNode</a></code></span></div> 711<div class="block">Method that will try to convert value of this node to a Java <b>double</b>. 712 Numbers are coerced using default Java rules; booleans convert to 0.0 (false) 713 and 1.0 (true), and Strings are parsed using default Java language integer 714 parsing rules. 715<p> 716 If representation can not be converted to an int (including structured types 717 like Objects and Arrays), 718 specified <b>defaultValue</b> will be returned; no exceptions are thrown.</div> 719<dl> 720<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> 721<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></dd> 722</dl> 723</li> 724</ul> 725</li> 726</ul> 727</li> 728</ul> 729</div> 730</div> 731<!-- ========= END OF CLASS DATA ========= --> 732<!-- ======= START OF BOTTOM NAVBAR ====== --> 733<div class="bottomNav"><a name="navbar.bottom"> 734<!-- --> 735</a> 736<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> 737<a name="navbar.bottom.firstrow"> 738<!-- --> 739</a> 740<ul class="navList" title="Navigation"> 741<li><a href="../../../../../overview-summary.html">Overview</a></li> 742<li><a href="package-summary.html">Package</a></li> 743<li class="navBarCell1Rev">Class</li> 744<li><a href="class-use/NumericNode.html">Use</a></li> 745<li><a href="package-tree.html">Tree</a></li> 746<li><a href="../../../../../deprecated-list.html">Deprecated</a></li> 747<li><a href="../../../../../index-all.html">Index</a></li> 748<li><a href="../../../../../help-doc.html">Help</a></li> 749</ul> 750</div> 751<div class="subNav"> 752<ul class="navList"> 753<li><a href="../../../../../com/fasterxml/jackson/databind/node/NullNode.html" title="class in com.fasterxml.jackson.databind.node"><span class="typeNameLink">Prev Class</span></a></li> 754<li><a href="../../../../../com/fasterxml/jackson/databind/node/ObjectNode.html" title="class in com.fasterxml.jackson.databind.node"><span class="typeNameLink">Next Class</span></a></li> 755</ul> 756<ul class="navList"> 757<li><a href="../../../../../index.html?com/fasterxml/jackson/databind/node/NumericNode.html" target="_top">Frames</a></li> 758<li><a href="NumericNode.html" target="_top">No Frames</a></li> 759</ul> 760<ul class="navList" id="allclasses_navbar_bottom"> 761<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> 762</ul> 763<div> 764<script type="text/javascript"><!-- 765 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 766 if(window==top) { 767 allClassesLink.style.display = "block"; 768 } 769 else { 770 allClassesLink.style.display = "none"; 771 } 772 //--> 773</script> 774</div> 775<div> 776<ul class="subNavList"> 777<li>Summary: </li> 778<li>Nested | </li> 779<li>Field | </li> 780<li><a href="#constructor.summary">Constr</a> | </li> 781<li><a href="#method.summary">Method</a></li> 782</ul> 783<ul class="subNavList"> 784<li>Detail: </li> 785<li>Field | </li> 786<li><a href="#constructor.detail">Constr</a> | </li> 787<li><a href="#method.detail">Method</a></li> 788</ul> 789</div> 790<a name="skip.navbar.bottom"> 791<!-- --> 792</a></div> 793<!-- ======== END OF BOTTOM NAVBAR ======= --> 794<p class="legalCopy"><small>Copyright © 2014–2015 <a href="http://fasterxml.com/">FasterXML</a>. All rights reserved.</small></p> 795</body> 796</html> 797