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_162) on Tue Mar 24 11:44:41 PDT 2020 --> 6<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 7<title>NumericNode (jackson-databind 2.11.0.rc1 API)</title> 8<meta name="date" content="2020-03-24"> 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.11.0.rc1 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":10,"i15":6,"i16":6,"i17":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="https://docs.oracle.com/javase/8/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><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.html" title="interface in com.fasterxml.jackson.databind">JsonSerializable</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>, <a href="https://docs.oracle.com/javase/8/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<dl> 145<dt><span class="seeLabel">See Also:</span></dt> 146<dd><a href="../../../../../serialized-form.html#com.fasterxml.jackson.databind.node.NumericNode">Serialized Form</a></dd> 147</dl> 148</li> 149</ul> 150</div> 151<div class="summary"> 152<ul class="blockList"> 153<li class="blockList"> 154<!-- ======== NESTED CLASS SUMMARY ======== --> 155<ul class="blockList"> 156<li class="blockList"><a name="nested.class.summary"> 157<!-- --> 158</a> 159<h3>Nested Class Summary</h3> 160<ul class="blockList"> 161<li class="blockList"><a name="nested.classes.inherited.from.class.com.fasterxml.jackson.databind.JsonSerializable"> 162<!-- --> 163</a> 164<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> 165<code><a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.Base.html" title="class in com.fasterxml.jackson.databind">JsonSerializable.Base</a></code></li> 166</ul> 167</li> 168</ul> 169<!-- ======== CONSTRUCTOR SUMMARY ======== --> 170<ul class="blockList"> 171<li class="blockList"><a name="constructor.summary"> 172<!-- --> 173</a> 174<h3>Constructor Summary</h3> 175<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> 176<caption><span>Constructors</span><span class="tabEnd"> </span></caption> 177<tr> 178<th class="colFirst" scope="col">Modifier</th> 179<th class="colLast" scope="col">Constructor and Description</th> 180</tr> 181<tr class="altColor"> 182<td class="colFirst"><code>protected </code></td> 183<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#NumericNode--">NumericNode</a></span>()</code> </td> 184</tr> 185</table> 186</li> 187</ul> 188<!-- ========== METHOD SUMMARY =========== --> 189<ul class="blockList"> 190<li class="blockList"><a name="method.summary"> 191<!-- --> 192</a> 193<h3>Method Summary</h3> 194<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> 195<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> 196<tr> 197<th class="colFirst" scope="col">Modifier and Type</th> 198<th class="colLast" scope="col">Method and Description</th> 199</tr> 200<tr id="i0" class="altColor"> 201<td class="colFirst"><code>double</code></td> 202<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#asDouble--">asDouble</a></span>()</code> 203<div class="block">Method that will try to convert value of this node to a Java <b>double</b>.</div> 204</td> 205</tr> 206<tr id="i1" class="rowColor"> 207<td class="colFirst"><code>double</code></td> 208<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#asDouble-double-">asDouble</a></span>(double defaultValue)</code> 209<div class="block">Method that will try to convert value of this node to a Java <b>double</b>.</div> 210</td> 211</tr> 212<tr id="i2" class="altColor"> 213<td class="colFirst"><code>int</code></td> 214<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#asInt--">asInt</a></span>()</code> 215<div class="block">Method that will try to convert value of this node to a Java <b>int</b>.</div> 216</td> 217</tr> 218<tr id="i3" class="rowColor"> 219<td class="colFirst"><code>int</code></td> 220<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#asInt-int-">asInt</a></span>(int defaultValue)</code> 221<div class="block">Method that will try to convert value of this node to a Java <b>int</b>.</div> 222</td> 223</tr> 224<tr id="i4" class="altColor"> 225<td class="colFirst"><code>long</code></td> 226<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#asLong--">asLong</a></span>()</code> 227<div class="block">Method that will try to convert value of this node to a Java <b>long</b>.</div> 228</td> 229</tr> 230<tr id="i5" class="rowColor"> 231<td class="colFirst"><code>long</code></td> 232<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#asLong-long-">asLong</a></span>(long defaultValue)</code> 233<div class="block">Method that will try to convert value of this node to a Java <b>long</b>.</div> 234</td> 235</tr> 236<tr id="i6" class="altColor"> 237<td class="colFirst"><code>abstract <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> 238<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#asText--">asText</a></span>()</code> 239<div class="block">Method that will return a valid String representation of 240 the container value, if the node is a value node 241 (method <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isValueNode--"><code>JsonNode.isValueNode()</code></a> returns true), 242 otherwise empty String.</div> 243</td> 244</tr> 245<tr id="i7" class="rowColor"> 246<td class="colFirst"><code>abstract <a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigInteger.html?is-external=true" title="class or interface in java.math">BigInteger</a></code></td> 247<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#bigIntegerValue--">bigIntegerValue</a></span>()</code> 248<div class="block">Returns integer value for this node (as <a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math"><code>BigDecimal</code></a>), <b>if and only if</b> 249 this node is numeric (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>JsonNode.isNumber()</code></a> returns true).</div> 250</td> 251</tr> 252<tr id="i8" class="altColor"> 253<td class="colFirst"><code>abstract boolean</code></td> 254<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#canConvertToInt--">canConvertToInt</a></span>()</code> 255<div class="block">Method that can be used to check whether this node is a numeric 256 node (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>JsonNode.isNumber()</code></a> would return true) AND its value fits 257 within Java's 32-bit signed integer type, <code>int</code>.</div> 258</td> 259</tr> 260<tr id="i9" class="rowColor"> 261<td class="colFirst"><code>abstract boolean</code></td> 262<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#canConvertToLong--">canConvertToLong</a></span>()</code> 263<div class="block">Method that can be used to check whether this node is a numeric 264 node (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>JsonNode.isNumber()</code></a> would return true) AND its value fits 265 within Java's 64-bit signed integer type, <code>long</code>.</div> 266</td> 267</tr> 268<tr id="i10" class="altColor"> 269<td class="colFirst"><code>abstract <a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math">BigDecimal</a></code></td> 270<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#decimalValue--">decimalValue</a></span>()</code> 271<div class="block">Returns floating point value for this node (as <a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math"><code>BigDecimal</code></a>), <b>if and only if</b> 272 this node is numeric (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>JsonNode.isNumber()</code></a> returns true).</div> 273</td> 274</tr> 275<tr id="i11" class="rowColor"> 276<td class="colFirst"><code>abstract double</code></td> 277<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#doubleValue--">doubleValue</a></span>()</code> 278<div class="block">Returns 64-bit floating point (double) value for this node, <b>if and only if</b> 279 this node is numeric (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>JsonNode.isNumber()</code></a> returns true).</div> 280</td> 281</tr> 282<tr id="i12" class="altColor"> 283<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> 284<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#getNodeType--">getNodeType</a></span>()</code> 285<div class="block">Return the type of this node</div> 286</td> 287</tr> 288<tr id="i13" class="rowColor"> 289<td class="colFirst"><code>abstract int</code></td> 290<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#intValue--">intValue</a></span>()</code> 291<div class="block">Returns integer value for this node, <b>if and only if</b> 292 this node is numeric (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>JsonNode.isNumber()</code></a> returns true).</div> 293</td> 294</tr> 295<tr id="i14" class="altColor"> 296<td class="colFirst"><code>boolean</code></td> 297<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#isNaN--">isNaN</a></span>()</code> 298<div class="block">Convenience method for checking whether this node is a 299 <a href="../../../../../com/fasterxml/jackson/databind/node/FloatNode.html" title="class in com.fasterxml.jackson.databind.node"><code>FloatNode</code></a> or <a href="../../../../../com/fasterxml/jackson/databind/node/DoubleNode.html" title="class in com.fasterxml.jackson.databind.node"><code>DoubleNode</code></a> that contains 300 "not-a-number" (NaN) value.</div> 301</td> 302</tr> 303<tr id="i15" class="rowColor"> 304<td class="colFirst"><code>abstract long</code></td> 305<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#longValue--">longValue</a></span>()</code> 306<div class="block">Returns 64-bit long value for this node, <b>if and only if</b> 307 this node is numeric (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>JsonNode.isNumber()</code></a> returns true).</div> 308</td> 309</tr> 310<tr id="i16" class="altColor"> 311<td class="colFirst"><code>abstract <a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonParser.NumberType.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonParser.NumberType</a></code></td> 312<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#numberType--">numberType</a></span>()</code> 313<div class="block">Returns code that identifies type of underlying numeric 314 value, if (and only if) node is a number node.</div> 315</td> 316</tr> 317<tr id="i17" class="rowColor"> 318<td class="colFirst"><code>abstract <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Number.html?is-external=true" title="class or interface in java.lang">Number</a></code></td> 319<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#numberValue--">numberValue</a></span>()</code> 320<div class="block">Returns numeric value for this node, <b>if and only if</b> 321 this node is numeric (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>JsonNode.isNumber()</code></a> returns true); otherwise 322 returns null</div> 323</td> 324</tr> 325</table> 326<ul class="blockList"> 327<li class="blockList"><a name="methods.inherited.from.class.com.fasterxml.jackson.databind.node.ValueNode"> 328<!-- --> 329</a> 330<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> 331<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#isEmpty--">isEmpty</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></code></li> 332</ul> 333<ul class="blockList"> 334<li class="blockList"><a name="methods.inherited.from.class.com.fasterxml.jackson.databind.node.BaseJsonNode"> 335<!-- --> 336</a> 337<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> 338<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#hashCode--">hashCode</a>, <a href="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#required-int-">required</a>, <a href="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#required-java.lang.String-">required</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#toPrettyString--">toPrettyString</a>, <a href="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#toString--">toString</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> 339</ul> 340<ul class="blockList"> 341<li class="blockList"><a name="methods.inherited.from.class.com.fasterxml.jackson.databind.JsonNode"> 342<!-- --> 343</a> 344<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> 345<code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#Z:Z_reportRequiredViolation-java.lang.String-java.lang.Object...-">_reportRequiredViolation</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#Z:Z_this--">_this</a>, <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#require--">require</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#requiredAt-com.fasterxml.jackson.core.JsonPointer-">requiredAt</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#requiredAt-java.lang.String-">requiredAt</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#requireNonNull--">requireNonNull</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> 346</ul> 347<ul class="blockList"> 348<li class="blockList"><a name="methods.inherited.from.class.com.fasterxml.jackson.databind.JsonSerializable.Base"> 349<!-- --> 350</a> 351<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> 352<code><a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.Base.html#isEmpty-com.fasterxml.jackson.databind.SerializerProvider-">isEmpty</a></code></li> 353</ul> 354<ul class="blockList"> 355<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> 356<!-- --> 357</a> 358<h3>Methods inherited from class java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> 359<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li> 360</ul> 361<ul class="blockList"> 362<li class="blockList"><a name="methods.inherited.from.class.java.lang.Iterable"> 363<!-- --> 364</a> 365<h3>Methods inherited from interface java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a></h3> 366<code><a href="https://docs.oracle.com/javase/8/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="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true#spliterator--" title="class or interface in java.lang">spliterator</a></code></li> 367</ul> 368</li> 369</ul> 370</li> 371</ul> 372</div> 373<div class="details"> 374<ul class="blockList"> 375<li class="blockList"> 376<!-- ========= CONSTRUCTOR DETAIL ======== --> 377<ul class="blockList"> 378<li class="blockList"><a name="constructor.detail"> 379<!-- --> 380</a> 381<h3>Constructor Detail</h3> 382<a name="NumericNode--"> 383<!-- --> 384</a> 385<ul class="blockListLast"> 386<li class="blockList"> 387<h4>NumericNode</h4> 388<pre>protected NumericNode()</pre> 389</li> 390</ul> 391</li> 392</ul> 393<!-- ============ METHOD DETAIL ========== --> 394<ul class="blockList"> 395<li class="blockList"><a name="method.detail"> 396<!-- --> 397</a> 398<h3>Method Detail</h3> 399<a name="getNodeType--"> 400<!-- --> 401</a> 402<ul class="blockList"> 403<li class="blockList"> 404<h4>getNodeType</h4> 405<pre>public final <a href="../../../../../com/fasterxml/jackson/databind/node/JsonNodeType.html" title="enum in com.fasterxml.jackson.databind.node">JsonNodeType</a> getNodeType()</pre> 406<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> 407<div class="block">Return the type of this node</div> 408<dl> 409<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 410<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> 411<dt><span class="returnLabel">Returns:</span></dt> 412<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> 413</dl> 414</li> 415</ul> 416<a name="numberType--"> 417<!-- --> 418</a> 419<ul class="blockList"> 420<li class="blockList"> 421<h4>numberType</h4> 422<pre>public abstract <a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonParser.NumberType.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonParser.NumberType</a> numberType()</pre> 423<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> 424<div class="block">Returns code that identifies type of underlying numeric 425 value, if (and only if) node is a number node.</div> 426<dl> 427<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 428<dd><code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true#numberType--" title="class or interface in com.fasterxml.jackson.core">numberType</a></code> in interface <code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a></code></dd> 429<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> 430<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> 431</dl> 432</li> 433</ul> 434<a name="numberValue--"> 435<!-- --> 436</a> 437<ul class="blockList"> 438<li class="blockList"> 439<h4>numberValue</h4> 440<pre>public abstract <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Number.html?is-external=true" title="class or interface in java.lang">Number</a> numberValue()</pre> 441<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> 442<div class="block">Returns numeric value for this node, <b>if and only if</b> 443 this node is numeric (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>JsonNode.isNumber()</code></a> returns true); otherwise 444 returns null</div> 445<dl> 446<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> 447<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> 448<dt><span class="returnLabel">Returns:</span></dt> 449<dd>Number value this node contains, if any (null for non-number 450 nodes).</dd> 451</dl> 452</li> 453</ul> 454<a name="intValue--"> 455<!-- --> 456</a> 457<ul class="blockList"> 458<li class="blockList"> 459<h4>intValue</h4> 460<pre>public abstract int intValue()</pre> 461<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> 462<div class="block">Returns integer value for this node, <b>if and only if</b> 463 this node is numeric (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>JsonNode.isNumber()</code></a> returns true). For other 464 types returns 0. 465 For floating-point numbers, value is truncated using default 466 Java coercion, similar to how cast from double to int operates.</div> 467<dl> 468<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> 469<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> 470<dt><span class="returnLabel">Returns:</span></dt> 471<dd>Integer value this node contains, if any; 0 for non-number 472 nodes.</dd> 473</dl> 474</li> 475</ul> 476<a name="longValue--"> 477<!-- --> 478</a> 479<ul class="blockList"> 480<li class="blockList"> 481<h4>longValue</h4> 482<pre>public abstract long longValue()</pre> 483<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> 484<div class="block">Returns 64-bit long value for this node, <b>if and only if</b> 485 this node is numeric (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>JsonNode.isNumber()</code></a> returns true). For other 486 types returns 0. 487 For floating-point numbers, value is truncated using default 488 Java coercion, similar to how cast from double to long operates.</div> 489<dl> 490<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> 491<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> 492<dt><span class="returnLabel">Returns:</span></dt> 493<dd>Long value this node contains, if any; 0 for non-number 494 nodes.</dd> 495</dl> 496</li> 497</ul> 498<a name="doubleValue--"> 499<!-- --> 500</a> 501<ul class="blockList"> 502<li class="blockList"> 503<h4>doubleValue</h4> 504<pre>public abstract double doubleValue()</pre> 505<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> 506<div class="block">Returns 64-bit floating point (double) value for this node, <b>if and only if</b> 507 this node is numeric (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>JsonNode.isNumber()</code></a> returns true). For other 508 types returns 0.0. 509 For integer values, conversion is done using coercion; this may result 510 in overflows with <a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigInteger.html?is-external=true" title="class or interface in java.math"><code>BigInteger</code></a> values.</div> 511<dl> 512<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> 513<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> 514<dt><span class="returnLabel">Returns:</span></dt> 515<dd>64-bit double value this node contains, if any; 0.0 for non-number nodes.</dd> 516</dl> 517</li> 518</ul> 519<a name="decimalValue--"> 520<!-- --> 521</a> 522<ul class="blockList"> 523<li class="blockList"> 524<h4>decimalValue</h4> 525<pre>public abstract <a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math">BigDecimal</a> decimalValue()</pre> 526<div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#decimalValue--">JsonNode</a></code></span></div> 527<div class="block">Returns floating point value for this node (as <a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math"><code>BigDecimal</code></a>), <b>if and only if</b> 528 this node is numeric (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>JsonNode.isNumber()</code></a> returns true). For other 529 types returns <code>BigDecimal.ZERO</code>.</div> 530<dl> 531<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> 532<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> 533<dt><span class="returnLabel">Returns:</span></dt> 534<dd><a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math"><code>BigDecimal</code></a> value this node contains, if numeric node; <code>BigDecimal.ZERO</code> for non-number nodes.</dd> 535</dl> 536</li> 537</ul> 538<a name="bigIntegerValue--"> 539<!-- --> 540</a> 541<ul class="blockList"> 542<li class="blockList"> 543<h4>bigIntegerValue</h4> 544<pre>public abstract <a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigInteger.html?is-external=true" title="class or interface in java.math">BigInteger</a> bigIntegerValue()</pre> 545<div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#bigIntegerValue--">JsonNode</a></code></span></div> 546<div class="block">Returns integer value for this node (as <a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math"><code>BigDecimal</code></a>), <b>if and only if</b> 547 this node is numeric (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>JsonNode.isNumber()</code></a> returns true). For other 548 types returns <code>BigInteger.ZERO</code>.</div> 549<dl> 550<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> 551<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> 552<dt><span class="returnLabel">Returns:</span></dt> 553<dd><a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigInteger.html?is-external=true" title="class or interface in java.math"><code>BigInteger</code></a> value this node contains, if numeric node; <code>BigInteger.ZERO</code> for non-number nodes.</dd> 554</dl> 555</li> 556</ul> 557<a name="canConvertToInt--"> 558<!-- --> 559</a> 560<ul class="blockList"> 561<li class="blockList"> 562<h4>canConvertToInt</h4> 563<pre>public abstract boolean canConvertToInt()</pre> 564<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> 565<div class="block">Method that can be used to check whether this node is a numeric 566 node (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>JsonNode.isNumber()</code></a> would return true) AND its value fits 567 within Java's 32-bit signed integer type, <code>int</code>. 568 Note that floating-point numbers are convertible if the integral 569 part fits without overflow (as per standard Java coercion rules) 570<p> 571 NOTE: this method does not consider possible value type conversion 572 from JSON String into Number; so even if this method returns false, 573 it is possible that <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asInt--"><code>JsonNode.asInt()</code></a> could still succeed 574 if node is a JSON String representing integral number, or boolean.</div> 575<dl> 576<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> 577<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> 578</dl> 579</li> 580</ul> 581<a name="canConvertToLong--"> 582<!-- --> 583</a> 584<ul class="blockList"> 585<li class="blockList"> 586<h4>canConvertToLong</h4> 587<pre>public abstract boolean canConvertToLong()</pre> 588<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> 589<div class="block">Method that can be used to check whether this node is a numeric 590 node (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>JsonNode.isNumber()</code></a> would return true) AND its value fits 591 within Java's 64-bit signed integer type, <code>long</code>. 592 Note that floating-point numbers are convertible if the integral 593 part fits without overflow (as per standard Java coercion rules) 594<p> 595 NOTE: this method does not consider possible value type conversion 596 from JSON String into Number; so even if this method returns false, 597 it is possible that <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asLong--"><code>JsonNode.asLong()</code></a> could still succeed 598 if node is a JSON String representing integral number, or boolean.</div> 599<dl> 600<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> 601<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> 602</dl> 603</li> 604</ul> 605<a name="asText--"> 606<!-- --> 607</a> 608<ul class="blockList"> 609<li class="blockList"> 610<h4>asText</h4> 611<pre>public abstract <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> asText()</pre> 612<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> 613<div class="block">Method that will return a valid String representation of 614 the container value, if the node is a value node 615 (method <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isValueNode--"><code>JsonNode.isValueNode()</code></a> returns true), 616 otherwise empty String.</div> 617<dl> 618<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 619<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> 620</dl> 621</li> 622</ul> 623<a name="asInt--"> 624<!-- --> 625</a> 626<ul class="blockList"> 627<li class="blockList"> 628<h4>asInt</h4> 629<pre>public final int asInt()</pre> 630<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> 631<div class="block">Method that will try to convert value of this node to a Java <b>int</b>. 632 Numbers are coerced using default Java rules; booleans convert to 0 (false) 633 and 1 (true), and Strings are parsed using default Java language integer 634 parsing rules. 635<p> 636 If representation cannot be converted to an int (including structured types 637 like Objects and Arrays), 638 default value of <b>0</b> will be returned; no exceptions are thrown.</div> 639<dl> 640<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> 641<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> 642</dl> 643</li> 644</ul> 645<a name="asInt-int-"> 646<!-- --> 647</a> 648<ul class="blockList"> 649<li class="blockList"> 650<h4>asInt</h4> 651<pre>public final int asInt(int defaultValue)</pre> 652<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> 653<div class="block">Method that will try to convert value of this node to a Java <b>int</b>. 654 Numbers are coerced using default Java rules; booleans convert to 0 (false) 655 and 1 (true), and Strings are parsed using default Java language integer 656 parsing rules. 657<p> 658 If representation cannot be converted to an int (including structured types 659 like Objects and Arrays), 660 specified <b>defaultValue</b> will be returned; no exceptions are thrown.</div> 661<dl> 662<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> 663<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> 664</dl> 665</li> 666</ul> 667<a name="asLong--"> 668<!-- --> 669</a> 670<ul class="blockList"> 671<li class="blockList"> 672<h4>asLong</h4> 673<pre>public final long asLong()</pre> 674<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> 675<div class="block">Method that will try to convert value of this node to a Java <b>long</b>. 676 Numbers are coerced using default Java rules; booleans convert to 0 (false) 677 and 1 (true), and Strings are parsed using default Java language integer 678 parsing rules. 679<p> 680 If representation cannot be converted to an long (including structured types 681 like Objects and Arrays), 682 default value of <b>0</b> will be returned; no exceptions are thrown.</div> 683<dl> 684<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> 685<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> 686</dl> 687</li> 688</ul> 689<a name="asLong-long-"> 690<!-- --> 691</a> 692<ul class="blockList"> 693<li class="blockList"> 694<h4>asLong</h4> 695<pre>public final long asLong(long defaultValue)</pre> 696<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> 697<div class="block">Method that will try to convert value of this node to a Java <b>long</b>. 698 Numbers are coerced using default Java rules; booleans convert to 0 (false) 699 and 1 (true), and Strings are parsed using default Java language integer 700 parsing rules. 701<p> 702 If representation cannot be converted to an long (including structured types 703 like Objects and Arrays), 704 specified <b>defaultValue</b> will be returned; no exceptions are thrown.</div> 705<dl> 706<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> 707<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> 708</dl> 709</li> 710</ul> 711<a name="asDouble--"> 712<!-- --> 713</a> 714<ul class="blockList"> 715<li class="blockList"> 716<h4>asDouble</h4> 717<pre>public final double asDouble()</pre> 718<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> 719<div class="block">Method that will try to convert value of this node to a Java <b>double</b>. 720 Numbers are coerced using default Java rules; booleans convert to 0.0 (false) 721 and 1.0 (true), and Strings are parsed using default Java language integer 722 parsing rules. 723<p> 724 If representation cannot be converted to an int (including structured types 725 like Objects and Arrays), 726 default value of <b>0.0</b> will be returned; no exceptions are thrown.</div> 727<dl> 728<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> 729<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> 730</dl> 731</li> 732</ul> 733<a name="asDouble-double-"> 734<!-- --> 735</a> 736<ul class="blockList"> 737<li class="blockList"> 738<h4>asDouble</h4> 739<pre>public final double asDouble(double defaultValue)</pre> 740<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> 741<div class="block">Method that will try to convert value of this node to a Java <b>double</b>. 742 Numbers are coerced using default Java rules; booleans convert to 0.0 (false) 743 and 1.0 (true), and Strings are parsed using default Java language integer 744 parsing rules. 745<p> 746 If representation cannot be converted to an int (including structured types 747 like Objects and Arrays), 748 specified <b>defaultValue</b> will be returned; no exceptions are thrown.</div> 749<dl> 750<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> 751<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> 752</dl> 753</li> 754</ul> 755<a name="isNaN--"> 756<!-- --> 757</a> 758<ul class="blockListLast"> 759<li class="blockList"> 760<h4>isNaN</h4> 761<pre>public boolean isNaN()</pre> 762<div class="block">Convenience method for checking whether this node is a 763 <a href="../../../../../com/fasterxml/jackson/databind/node/FloatNode.html" title="class in com.fasterxml.jackson.databind.node"><code>FloatNode</code></a> or <a href="../../../../../com/fasterxml/jackson/databind/node/DoubleNode.html" title="class in com.fasterxml.jackson.databind.node"><code>DoubleNode</code></a> that contains 764 "not-a-number" (NaN) value.</div> 765<dl> 766<dt><span class="simpleTagLabel">Since:</span></dt> 767<dd>2.9</dd> 768</dl> 769</li> 770</ul> 771</li> 772</ul> 773</li> 774</ul> 775</div> 776</div> 777<!-- ========= END OF CLASS DATA ========= --> 778<!-- ======= START OF BOTTOM NAVBAR ====== --> 779<div class="bottomNav"><a name="navbar.bottom"> 780<!-- --> 781</a> 782<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> 783<a name="navbar.bottom.firstrow"> 784<!-- --> 785</a> 786<ul class="navList" title="Navigation"> 787<li><a href="../../../../../overview-summary.html">Overview</a></li> 788<li><a href="package-summary.html">Package</a></li> 789<li class="navBarCell1Rev">Class</li> 790<li><a href="class-use/NumericNode.html">Use</a></li> 791<li><a href="package-tree.html">Tree</a></li> 792<li><a href="../../../../../deprecated-list.html">Deprecated</a></li> 793<li><a href="../../../../../index-all.html">Index</a></li> 794<li><a href="../../../../../help-doc.html">Help</a></li> 795</ul> 796</div> 797<div class="subNav"> 798<ul class="navList"> 799<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> 800<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> 801</ul> 802<ul class="navList"> 803<li><a href="../../../../../index.html?com/fasterxml/jackson/databind/node/NumericNode.html" target="_top">Frames</a></li> 804<li><a href="NumericNode.html" target="_top">No Frames</a></li> 805</ul> 806<ul class="navList" id="allclasses_navbar_bottom"> 807<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> 808</ul> 809<div> 810<script type="text/javascript"><!-- 811 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 812 if(window==top) { 813 allClassesLink.style.display = "block"; 814 } 815 else { 816 allClassesLink.style.display = "none"; 817 } 818 //--> 819</script> 820</div> 821<div> 822<ul class="subNavList"> 823<li>Summary: </li> 824<li>Nested | </li> 825<li>Field | </li> 826<li><a href="#constructor.summary">Constr</a> | </li> 827<li><a href="#method.summary">Method</a></li> 828</ul> 829<ul class="subNavList"> 830<li>Detail: </li> 831<li>Field | </li> 832<li><a href="#constructor.detail">Constr</a> | </li> 833<li><a href="#method.detail">Method</a></li> 834</ul> 835</div> 836<a name="skip.navbar.bottom"> 837<!-- --> 838</a></div> 839<!-- ======== END OF BOTTOM NAVBAR ======= --> 840<p class="legalCopy"><small>Copyright © 2008–2020 <a href="http://fasterxml.com/">FasterXML</a>. All rights reserved.</small></p> 841</body> 842</html> 843