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>IntNode (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="IntNode (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":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":9}; 23var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance 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/IntNode.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/FloatNode.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/JsonNodeCreator.html" title="interface 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/IntNode.html" target="_top">Frames</a></li> 58<li><a href="IntNode.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><a href="#field.summary">Field</a> | </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><a href="#field.detail">Field</a> | </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 IntNode" class="title">Class IntNode</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><a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html" title="class in com.fasterxml.jackson.databind.node">com.fasterxml.jackson.databind.node.NumericNode</a></li> 117<li> 118<ul class="inheritance"> 119<li>com.fasterxml.jackson.databind.node.IntNode</li> 120</ul> 121</li> 122</ul> 123</li> 124</ul> 125</li> 126</ul> 127</li> 128</ul> 129</li> 130</ul> 131</li> 132</ul> 133<div class="description"> 134<ul class="blockList"> 135<li class="blockList"> 136<dl> 137<dt>All Implemented Interfaces:</dt> 138<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> 139</dl> 140<hr> 141<br> 142<pre>public class <span class="typeNameLabel">IntNode</span> 143extends <a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html" title="class in com.fasterxml.jackson.databind.node">NumericNode</a></pre> 144<div class="block">Numeric node that contains simple 32-bit integer values.</div> 145<dl> 146<dt><span class="seeLabel">See Also:</span></dt> 147<dd><a href="../../../../../serialized-form.html#com.fasterxml.jackson.databind.node.IntNode">Serialized Form</a></dd> 148</dl> 149</li> 150</ul> 151</div> 152<div class="summary"> 153<ul class="blockList"> 154<li class="blockList"> 155<!-- ======== NESTED CLASS SUMMARY ======== --> 156<ul class="blockList"> 157<li class="blockList"><a name="nested.class.summary"> 158<!-- --> 159</a> 160<h3>Nested Class Summary</h3> 161<ul class="blockList"> 162<li class="blockList"><a name="nested.classes.inherited.from.class.com.fasterxml.jackson.databind.JsonSerializable"> 163<!-- --> 164</a> 165<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> 166<code><a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.Base.html" title="class in com.fasterxml.jackson.databind">JsonSerializable.Base</a></code></li> 167</ul> 168</li> 169</ul> 170<!-- =========== FIELD SUMMARY =========== --> 171<ul class="blockList"> 172<li class="blockList"><a name="field.summary"> 173<!-- --> 174</a> 175<h3>Field Summary</h3> 176<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> 177<caption><span>Fields</span><span class="tabEnd"> </span></caption> 178<tr> 179<th class="colFirst" scope="col">Modifier and Type</th> 180<th class="colLast" scope="col">Field and Description</th> 181</tr> 182<tr class="altColor"> 183<td class="colFirst"><code>protected int</code></td> 184<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/IntNode.html#Z:Z_value">_value</a></span></code> 185<div class="block">Integer value this node contains</div> 186</td> 187</tr> 188</table> 189</li> 190</ul> 191<!-- ======== CONSTRUCTOR SUMMARY ======== --> 192<ul class="blockList"> 193<li class="blockList"><a name="constructor.summary"> 194<!-- --> 195</a> 196<h3>Constructor Summary</h3> 197<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> 198<caption><span>Constructors</span><span class="tabEnd"> </span></caption> 199<tr> 200<th class="colOne" scope="col">Constructor and Description</th> 201</tr> 202<tr class="altColor"> 203<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/IntNode.html#IntNode-int-">IntNode</a></span>(int v)</code> </td> 204</tr> 205</table> 206</li> 207</ul> 208<!-- ========== METHOD SUMMARY =========== --> 209<ul class="blockList"> 210<li class="blockList"><a name="method.summary"> 211<!-- --> 212</a> 213<h3>Method Summary</h3> 214<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> 215<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></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="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption> 216<tr> 217<th class="colFirst" scope="col">Modifier and Type</th> 218<th class="colLast" scope="col">Method and Description</th> 219</tr> 220<tr id="i0" class="altColor"> 221<td class="colFirst"><code>boolean</code></td> 222<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/IntNode.html#asBoolean-boolean-">asBoolean</a></span>(boolean defaultValue)</code> 223<div class="block">Method that will try to convert value of this node to a Java <b>boolean</b>.</div> 224</td> 225</tr> 226<tr id="i1" class="rowColor"> 227<td class="colFirst"><code><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> 228<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/IntNode.html#asText--">asText</a></span>()</code> 229<div class="block">Method that will return a valid String representation of 230 the container value, if the node is a value node 231 (method <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isValueNode--"><code>JsonNode.isValueNode()</code></a> returns true), 232 otherwise empty String.</div> 233</td> 234</tr> 235<tr id="i2" class="altColor"> 236<td class="colFirst"><code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonToken.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonToken</a></code></td> 237<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/IntNode.html#asToken--">asToken</a></span>()</code> 238<div class="block">Method that can be used for efficient type detection 239 when using stream abstraction for traversing nodes.</div> 240</td> 241</tr> 242<tr id="i3" class="rowColor"> 243<td class="colFirst"><code><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> 244<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/IntNode.html#bigIntegerValue--">bigIntegerValue</a></span>()</code> 245<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> 246 this node is numeric (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>JsonNode.isNumber()</code></a> returns true).</div> 247</td> 248</tr> 249<tr id="i4" class="altColor"> 250<td class="colFirst"><code>boolean</code></td> 251<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/IntNode.html#canConvertToInt--">canConvertToInt</a></span>()</code> 252<div class="block">Method that can be used to check whether this node is a numeric 253 node (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>JsonNode.isNumber()</code></a> would return true) AND its value fits 254 within Java's 32-bit signed integer type, <code>int</code>.</div> 255</td> 256</tr> 257<tr id="i5" class="rowColor"> 258<td class="colFirst"><code>boolean</code></td> 259<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/IntNode.html#canConvertToLong--">canConvertToLong</a></span>()</code> 260<div class="block">Method that can be used to check whether this node is a numeric 261 node (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>JsonNode.isNumber()</code></a> would return true) AND its value fits 262 within Java's 64-bit signed integer type, <code>long</code>.</div> 263</td> 264</tr> 265<tr id="i6" class="altColor"> 266<td class="colFirst"><code><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> 267<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/IntNode.html#decimalValue--">decimalValue</a></span>()</code> 268<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> 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="i7" class="rowColor"> 273<td class="colFirst"><code>double</code></td> 274<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/IntNode.html#doubleValue--">doubleValue</a></span>()</code> 275<div class="block">Returns 64-bit floating point (double) value for this node, <b>if and only if</b> 276 this node is numeric (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>JsonNode.isNumber()</code></a> returns true).</div> 277</td> 278</tr> 279<tr id="i8" class="altColor"> 280<td class="colFirst"><code>boolean</code></td> 281<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/IntNode.html#equals-java.lang.Object-">equals</a></span>(<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> o)</code> 282<div class="block">Equality for node objects is defined as full (deep) value 283 equality.</div> 284</td> 285</tr> 286<tr id="i9" class="rowColor"> 287<td class="colFirst"><code>float</code></td> 288<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/IntNode.html#floatValue--">floatValue</a></span>()</code> 289<div class="block">Returns 32-bit floating value for this node, <b>if and only if</b> 290 this node is numeric (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>JsonNode.isNumber()</code></a> returns true).</div> 291</td> 292</tr> 293<tr id="i10" class="altColor"> 294<td class="colFirst"><code>int</code></td> 295<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/IntNode.html#hashCode--">hashCode</a></span>()</code> </td> 296</tr> 297<tr id="i11" class="rowColor"> 298<td class="colFirst"><code>int</code></td> 299<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/IntNode.html#intValue--">intValue</a></span>()</code> 300<div class="block">Returns integer value for this node, <b>if and only if</b> 301 this node is numeric (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>JsonNode.isNumber()</code></a> returns true).</div> 302</td> 303</tr> 304<tr id="i12" class="altColor"> 305<td class="colFirst"><code>boolean</code></td> 306<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/IntNode.html#isInt--">isInt</a></span>()</code> 307<div class="block">Method that can be used to check whether contained value 308 is a number represented as Java <code>int</code>.</div> 309</td> 310</tr> 311<tr id="i13" class="rowColor"> 312<td class="colFirst"><code>boolean</code></td> 313<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/IntNode.html#isIntegralNumber--">isIntegralNumber</a></span>()</code> </td> 314</tr> 315<tr id="i14" class="altColor"> 316<td class="colFirst"><code>long</code></td> 317<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/IntNode.html#longValue--">longValue</a></span>()</code> 318<div class="block">Returns 64-bit long value for this node, <b>if and only if</b> 319 this node is numeric (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>JsonNode.isNumber()</code></a> returns true).</div> 320</td> 321</tr> 322<tr id="i15" class="rowColor"> 323<td class="colFirst"><code><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> 324<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/IntNode.html#numberType--">numberType</a></span>()</code> 325<div class="block">Returns code that identifies type of underlying numeric 326 value, if (and only if) node is a number node.</div> 327</td> 328</tr> 329<tr id="i16" class="altColor"> 330<td class="colFirst"><code><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> 331<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/IntNode.html#numberValue--">numberValue</a></span>()</code> 332<div class="block">Returns numeric value for this node, <b>if and only if</b> 333 this node is numeric (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>JsonNode.isNumber()</code></a> returns true); otherwise 334 returns null</div> 335</td> 336</tr> 337<tr id="i17" class="rowColor"> 338<td class="colFirst"><code>void</code></td> 339<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/IntNode.html#serialize-com.fasterxml.jackson.core.JsonGenerator-com.fasterxml.jackson.databind.SerializerProvider-">serialize</a></span>(<a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerator</a> jg, 340 <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html" title="class in com.fasterxml.jackson.databind">SerializerProvider</a> provider)</code> 341<div class="block">Method called to serialize node instances using given generator.</div> 342</td> 343</tr> 344<tr id="i18" class="altColor"> 345<td class="colFirst"><code>short</code></td> 346<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/IntNode.html#shortValue--">shortValue</a></span>()</code> 347<div class="block">Returns 16-bit short value for this node, <b>if and only if</b> 348 this node is numeric (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>JsonNode.isNumber()</code></a> returns true).</div> 349</td> 350</tr> 351<tr id="i19" class="rowColor"> 352<td class="colFirst"><code>static <a href="../../../../../com/fasterxml/jackson/databind/node/IntNode.html" title="class in com.fasterxml.jackson.databind.node">IntNode</a></code></td> 353<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/node/IntNode.html#valueOf-int-">valueOf</a></span>(int i)</code> </td> 354</tr> 355</table> 356<ul class="blockList"> 357<li class="blockList"><a name="methods.inherited.from.class.com.fasterxml.jackson.databind.node.NumericNode"> 358<!-- --> 359</a> 360<h3>Methods inherited from class com.fasterxml.jackson.databind.node.<a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html" title="class in com.fasterxml.jackson.databind.node">NumericNode</a></h3> 361<code><a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#asDouble--">asDouble</a>, <a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#asDouble-double-">asDouble</a>, <a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#asInt--">asInt</a>, <a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#asInt-int-">asInt</a>, <a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#asLong--">asLong</a>, <a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#asLong-long-">asLong</a>, <a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#getNodeType--">getNodeType</a>, <a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#isNaN--">isNaN</a></code></li> 362</ul> 363<ul class="blockList"> 364<li class="blockList"><a name="methods.inherited.from.class.com.fasterxml.jackson.databind.node.ValueNode"> 365<!-- --> 366</a> 367<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> 368<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#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> 369</ul> 370<ul class="blockList"> 371<li class="blockList"><a name="methods.inherited.from.class.com.fasterxml.jackson.databind.node.BaseJsonNode"> 372<!-- --> 373</a> 374<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> 375<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#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#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> 376</ul> 377<ul class="blockList"> 378<li class="blockList"><a name="methods.inherited.from.class.com.fasterxml.jackson.databind.JsonNode"> 379<!-- --> 380</a> 381<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> 382<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#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#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#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#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#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> 383</ul> 384<ul class="blockList"> 385<li class="blockList"><a name="methods.inherited.from.class.com.fasterxml.jackson.databind.JsonSerializable.Base"> 386<!-- --> 387</a> 388<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> 389<code><a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.Base.html#isEmpty-com.fasterxml.jackson.databind.SerializerProvider-">isEmpty</a></code></li> 390</ul> 391<ul class="blockList"> 392<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> 393<!-- --> 394</a> 395<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> 396<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> 397</ul> 398<ul class="blockList"> 399<li class="blockList"><a name="methods.inherited.from.class.java.lang.Iterable"> 400<!-- --> 401</a> 402<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> 403<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> 404</ul> 405</li> 406</ul> 407</li> 408</ul> 409</div> 410<div class="details"> 411<ul class="blockList"> 412<li class="blockList"> 413<!-- ============ FIELD DETAIL =========== --> 414<ul class="blockList"> 415<li class="blockList"><a name="field.detail"> 416<!-- --> 417</a> 418<h3>Field Detail</h3> 419<a name="Z:Z_value"> 420<!-- --> 421</a> 422<ul class="blockListLast"> 423<li class="blockList"> 424<h4>_value</h4> 425<pre>protected final int _value</pre> 426<div class="block">Integer value this node contains</div> 427</li> 428</ul> 429</li> 430</ul> 431<!-- ========= CONSTRUCTOR DETAIL ======== --> 432<ul class="blockList"> 433<li class="blockList"><a name="constructor.detail"> 434<!-- --> 435</a> 436<h3>Constructor Detail</h3> 437<a name="IntNode-int-"> 438<!-- --> 439</a> 440<ul class="blockListLast"> 441<li class="blockList"> 442<h4>IntNode</h4> 443<pre>public IntNode(int v)</pre> 444</li> 445</ul> 446</li> 447</ul> 448<!-- ============ METHOD DETAIL ========== --> 449<ul class="blockList"> 450<li class="blockList"><a name="method.detail"> 451<!-- --> 452</a> 453<h3>Method Detail</h3> 454<a name="valueOf-int-"> 455<!-- --> 456</a> 457<ul class="blockList"> 458<li class="blockList"> 459<h4>valueOf</h4> 460<pre>public static <a href="../../../../../com/fasterxml/jackson/databind/node/IntNode.html" title="class in com.fasterxml.jackson.databind.node">IntNode</a> valueOf(int i)</pre> 461</li> 462</ul> 463<a name="asToken--"> 464<!-- --> 465</a> 466<ul class="blockList"> 467<li class="blockList"> 468<h4>asToken</h4> 469<pre>public <a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonToken.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonToken</a> asToken()</pre> 470<div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#asToken--">BaseJsonNode</a></code></span></div> 471<div class="block">Method that can be used for efficient type detection 472 when using stream abstraction for traversing nodes. 473 Will return the first <a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonToken.html?is-external=true" title="class or interface in com.fasterxml.jackson.core"><code>JsonToken</code></a> that equivalent 474 stream event would produce (for most nodes there is just 475 one token but for structured/container types multiple)</div> 476<dl> 477<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 478<dd><code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true#asToken--" title="class or interface in com.fasterxml.jackson.core">asToken</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> 479<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 480<dd><code><a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#asToken--">asToken</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html" title="class in com.fasterxml.jackson.databind.node">ValueNode</a></code></dd> 481</dl> 482</li> 483</ul> 484<a name="numberType--"> 485<!-- --> 486</a> 487<ul class="blockList"> 488<li class="blockList"> 489<h4>numberType</h4> 490<pre>public <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> 491<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> 492<div class="block">Returns code that identifies type of underlying numeric 493 value, if (and only if) node is a number node.</div> 494<dl> 495<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 496<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> 497<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 498<dd><code><a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#numberType--">numberType</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html" title="class in com.fasterxml.jackson.databind.node">NumericNode</a></code></dd> 499</dl> 500</li> 501</ul> 502<a name="isIntegralNumber--"> 503<!-- --> 504</a> 505<ul class="blockList"> 506<li class="blockList"> 507<h4>isIntegralNumber</h4> 508<pre>public boolean isIntegralNumber()</pre> 509<dl> 510<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> 511<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isIntegralNumber--">isIntegralNumber</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></dd> 512<dt><span class="returnLabel">Returns:</span></dt> 513<dd>True if this node represents an integral (integer) 514 numeric JSON value</dd> 515</dl> 516</li> 517</ul> 518<a name="isInt--"> 519<!-- --> 520</a> 521<ul class="blockList"> 522<li class="blockList"> 523<h4>isInt</h4> 524<pre>public boolean isInt()</pre> 525<div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isInt--">JsonNode</a></code></span></div> 526<div class="block">Method that can be used to check whether contained value 527 is a number represented as Java <code>int</code>. 528 Note, however, that even if this method returns false, it 529 is possible that conversion would be possible from other numeric 530 types -- to check if this is possible, use 531 <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#canConvertToInt--"><code>JsonNode.canConvertToInt()</code></a> instead.</div> 532<dl> 533<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> 534<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isInt--">isInt</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></dd> 535<dt><span class="returnLabel">Returns:</span></dt> 536<dd>True if the value contained by this node is stored as Java int</dd> 537</dl> 538</li> 539</ul> 540<a name="canConvertToInt--"> 541<!-- --> 542</a> 543<ul class="blockList"> 544<li class="blockList"> 545<h4>canConvertToInt</h4> 546<pre>public boolean canConvertToInt()</pre> 547<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> 548<div class="block">Method that can be used to check whether this node is a numeric 549 node (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>JsonNode.isNumber()</code></a> would return true) AND its value fits 550 within Java's 32-bit signed integer type, <code>int</code>. 551 Note that floating-point numbers are convertible if the integral 552 part fits without overflow (as per standard Java coercion rules) 553<p> 554 NOTE: this method does not consider possible value type conversion 555 from JSON String into Number; so even if this method returns false, 556 it is possible that <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asInt--"><code>JsonNode.asInt()</code></a> could still succeed 557 if node is a JSON String representing integral number, or boolean.</div> 558<dl> 559<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 560<dd><code><a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#canConvertToInt--">canConvertToInt</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html" title="class in com.fasterxml.jackson.databind.node">NumericNode</a></code></dd> 561</dl> 562</li> 563</ul> 564<a name="canConvertToLong--"> 565<!-- --> 566</a> 567<ul class="blockList"> 568<li class="blockList"> 569<h4>canConvertToLong</h4> 570<pre>public boolean canConvertToLong()</pre> 571<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> 572<div class="block">Method that can be used to check whether this node is a numeric 573 node (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>JsonNode.isNumber()</code></a> would return true) AND its value fits 574 within Java's 64-bit signed integer type, <code>long</code>. 575 Note that floating-point numbers are convertible if the integral 576 part fits without overflow (as per standard Java coercion rules) 577<p> 578 NOTE: this method does not consider possible value type conversion 579 from JSON String into Number; so even if this method returns false, 580 it is possible that <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asLong--"><code>JsonNode.asLong()</code></a> could still succeed 581 if node is a JSON String representing integral number, or boolean.</div> 582<dl> 583<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 584<dd><code><a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#canConvertToLong--">canConvertToLong</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html" title="class in com.fasterxml.jackson.databind.node">NumericNode</a></code></dd> 585</dl> 586</li> 587</ul> 588<a name="numberValue--"> 589<!-- --> 590</a> 591<ul class="blockList"> 592<li class="blockList"> 593<h4>numberValue</h4> 594<pre>public <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> 595<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> 596<div class="block">Returns numeric value for this node, <b>if and only if</b> 597 this node is numeric (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>JsonNode.isNumber()</code></a> returns true); otherwise 598 returns null</div> 599<dl> 600<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 601<dd><code><a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#numberValue--">numberValue</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html" title="class in com.fasterxml.jackson.databind.node">NumericNode</a></code></dd> 602<dt><span class="returnLabel">Returns:</span></dt> 603<dd>Number value this node contains, if any (null for non-number 604 nodes).</dd> 605</dl> 606</li> 607</ul> 608<a name="shortValue--"> 609<!-- --> 610</a> 611<ul class="blockList"> 612<li class="blockList"> 613<h4>shortValue</h4> 614<pre>public short shortValue()</pre> 615<div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#shortValue--">JsonNode</a></code></span></div> 616<div class="block">Returns 16-bit short value for this node, <b>if and only if</b> 617 this node is numeric (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>JsonNode.isNumber()</code></a> returns true). For other 618 types returns 0. 619 For floating-point numbers, value is truncated using default 620 Java coercion, similar to how cast from double to short operates.</div> 621<dl> 622<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> 623<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#shortValue--">shortValue</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></dd> 624<dt><span class="returnLabel">Returns:</span></dt> 625<dd>Short value this node contains, if any; 0 for non-number 626 nodes.</dd> 627</dl> 628</li> 629</ul> 630<a name="intValue--"> 631<!-- --> 632</a> 633<ul class="blockList"> 634<li class="blockList"> 635<h4>intValue</h4> 636<pre>public int intValue()</pre> 637<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> 638<div class="block">Returns integer value for this node, <b>if and only if</b> 639 this node is numeric (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>JsonNode.isNumber()</code></a> returns true). For other 640 types returns 0. 641 For floating-point numbers, value is truncated using default 642 Java coercion, similar to how cast from double to int operates.</div> 643<dl> 644<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 645<dd><code><a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#intValue--">intValue</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html" title="class in com.fasterxml.jackson.databind.node">NumericNode</a></code></dd> 646<dt><span class="returnLabel">Returns:</span></dt> 647<dd>Integer value this node contains, if any; 0 for non-number 648 nodes.</dd> 649</dl> 650</li> 651</ul> 652<a name="longValue--"> 653<!-- --> 654</a> 655<ul class="blockList"> 656<li class="blockList"> 657<h4>longValue</h4> 658<pre>public long longValue()</pre> 659<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> 660<div class="block">Returns 64-bit long value for this node, <b>if and only if</b> 661 this node is numeric (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>JsonNode.isNumber()</code></a> returns true). For other 662 types returns 0. 663 For floating-point numbers, value is truncated using default 664 Java coercion, similar to how cast from double to long operates.</div> 665<dl> 666<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 667<dd><code><a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#longValue--">longValue</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html" title="class in com.fasterxml.jackson.databind.node">NumericNode</a></code></dd> 668<dt><span class="returnLabel">Returns:</span></dt> 669<dd>Long value this node contains, if any; 0 for non-number 670 nodes.</dd> 671</dl> 672</li> 673</ul> 674<a name="floatValue--"> 675<!-- --> 676</a> 677<ul class="blockList"> 678<li class="blockList"> 679<h4>floatValue</h4> 680<pre>public float floatValue()</pre> 681<div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#floatValue--">JsonNode</a></code></span></div> 682<div class="block">Returns 32-bit floating value for this node, <b>if and only if</b> 683 this node is numeric (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>JsonNode.isNumber()</code></a> returns true). For other 684 types returns 0.0. 685 For integer values, conversion is done using coercion; this means 686 that an overflow is possible for `long` values</div> 687<dl> 688<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> 689<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#floatValue--">floatValue</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></dd> 690<dt><span class="returnLabel">Returns:</span></dt> 691<dd>32-bit float value this node contains, if any; 0.0 for non-number nodes.</dd> 692</dl> 693</li> 694</ul> 695<a name="doubleValue--"> 696<!-- --> 697</a> 698<ul class="blockList"> 699<li class="blockList"> 700<h4>doubleValue</h4> 701<pre>public double doubleValue()</pre> 702<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> 703<div class="block">Returns 64-bit floating point (double) value for this node, <b>if and only if</b> 704 this node is numeric (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>JsonNode.isNumber()</code></a> returns true). For other 705 types returns 0.0. 706 For integer values, conversion is done using coercion; this may result 707 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> 708<dl> 709<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 710<dd><code><a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#doubleValue--">doubleValue</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html" title="class in com.fasterxml.jackson.databind.node">NumericNode</a></code></dd> 711<dt><span class="returnLabel">Returns:</span></dt> 712<dd>64-bit double value this node contains, if any; 0.0 for non-number nodes.</dd> 713</dl> 714</li> 715</ul> 716<a name="decimalValue--"> 717<!-- --> 718</a> 719<ul class="blockList"> 720<li class="blockList"> 721<h4>decimalValue</h4> 722<pre>public <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> 723<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> 724<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> 725 this node is numeric (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>JsonNode.isNumber()</code></a> returns true). For other 726 types returns <code>BigDecimal.ZERO</code>.</div> 727<dl> 728<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 729<dd><code><a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#decimalValue--">decimalValue</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html" title="class in com.fasterxml.jackson.databind.node">NumericNode</a></code></dd> 730<dt><span class="returnLabel">Returns:</span></dt> 731<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> 732</dl> 733</li> 734</ul> 735<a name="bigIntegerValue--"> 736<!-- --> 737</a> 738<ul class="blockList"> 739<li class="blockList"> 740<h4>bigIntegerValue</h4> 741<pre>public <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> 742<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> 743<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> 744 this node is numeric (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>JsonNode.isNumber()</code></a> returns true). For other 745 types returns <code>BigInteger.ZERO</code>.</div> 746<dl> 747<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 748<dd><code><a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#bigIntegerValue--">bigIntegerValue</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html" title="class in com.fasterxml.jackson.databind.node">NumericNode</a></code></dd> 749<dt><span class="returnLabel">Returns:</span></dt> 750<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> 751</dl> 752</li> 753</ul> 754<a name="asText--"> 755<!-- --> 756</a> 757<ul class="blockList"> 758<li class="blockList"> 759<h4>asText</h4> 760<pre>public <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> 761<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> 762<div class="block">Method that will return a valid String representation of 763 the container value, if the node is a value node 764 (method <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isValueNode--"><code>JsonNode.isValueNode()</code></a> returns true), 765 otherwise empty String.</div> 766<dl> 767<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 768<dd><code><a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html#asText--">asText</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html" title="class in com.fasterxml.jackson.databind.node">NumericNode</a></code></dd> 769</dl> 770</li> 771</ul> 772<a name="asBoolean-boolean-"> 773<!-- --> 774</a> 775<ul class="blockList"> 776<li class="blockList"> 777<h4>asBoolean</h4> 778<pre>public boolean asBoolean(boolean defaultValue)</pre> 779<div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asBoolean-boolean-">JsonNode</a></code></span></div> 780<div class="block">Method that will try to convert value of this node to a Java <b>boolean</b>. 781 JSON booleans map naturally; integer numbers other than 0 map to true, and 782 0 maps to false 783 and Strings 'true' and 'false' map to corresponding values. 784<p> 785 If representation cannot be converted to a boolean value (including structured types 786 like Objects and Arrays), 787 specified <b>defaultValue</b> will be returned; no exceptions are thrown.</div> 788<dl> 789<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> 790<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asBoolean-boolean-">asBoolean</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></dd> 791</dl> 792</li> 793</ul> 794<a name="serialize-com.fasterxml.jackson.core.JsonGenerator-com.fasterxml.jackson.databind.SerializerProvider-"> 795<!-- --> 796</a> 797<ul class="blockList"> 798<li class="blockList"> 799<h4>serialize</h4> 800<pre>public final void serialize(<a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerator</a> jg, 801 <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html" title="class in com.fasterxml.jackson.databind">SerializerProvider</a> provider) 802 throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>, 803 <a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonProcessingException.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonProcessingException</a></pre> 804<div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#serialize-com.fasterxml.jackson.core.JsonGenerator-com.fasterxml.jackson.databind.SerializerProvider-">BaseJsonNode</a></code></span></div> 805<div class="block">Method called to serialize node instances using given generator.</div> 806<dl> 807<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 808<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.html#serialize-com.fasterxml.jackson.core.JsonGenerator-com.fasterxml.jackson.databind.SerializerProvider-">serialize</a></code> in interface <code><a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.html" title="interface in com.fasterxml.jackson.databind">JsonSerializable</a></code></dd> 809<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 810<dd><code><a href="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#serialize-com.fasterxml.jackson.core.JsonGenerator-com.fasterxml.jackson.databind.SerializerProvider-">serialize</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> 811<dt><span class="throwsLabel">Throws:</span></dt> 812<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> 813<dd><code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonProcessingException.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonProcessingException</a></code></dd> 814</dl> 815</li> 816</ul> 817<a name="equals-java.lang.Object-"> 818<!-- --> 819</a> 820<ul class="blockList"> 821<li class="blockList"> 822<h4>equals</h4> 823<pre>public boolean equals(<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> o)</pre> 824<div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#equals-java.lang.Object-">JsonNode</a></code></span></div> 825<div class="block">Equality for node objects is defined as full (deep) value 826 equality. This means that it is possible to compare complete 827 JSON trees for equality by comparing equality of root nodes. 828<p> 829 Note: marked as abstract to ensure all implementation 830 classes define it properly and not rely on definition 831 from <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang"><code>Object</code></a>.</div> 832<dl> 833<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 834<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#equals-java.lang.Object-">equals</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></dd> 835</dl> 836</li> 837</ul> 838<a name="hashCode--"> 839<!-- --> 840</a> 841<ul class="blockListLast"> 842<li class="blockList"> 843<h4>hashCode</h4> 844<pre>public int hashCode()</pre> 845<dl> 846<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 847<dd><code><a href="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#hashCode--">hashCode</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> 848</dl> 849</li> 850</ul> 851</li> 852</ul> 853</li> 854</ul> 855</div> 856</div> 857<!-- ========= END OF CLASS DATA ========= --> 858<!-- ======= START OF BOTTOM NAVBAR ====== --> 859<div class="bottomNav"><a name="navbar.bottom"> 860<!-- --> 861</a> 862<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> 863<a name="navbar.bottom.firstrow"> 864<!-- --> 865</a> 866<ul class="navList" title="Navigation"> 867<li><a href="../../../../../overview-summary.html">Overview</a></li> 868<li><a href="package-summary.html">Package</a></li> 869<li class="navBarCell1Rev">Class</li> 870<li><a href="class-use/IntNode.html">Use</a></li> 871<li><a href="package-tree.html">Tree</a></li> 872<li><a href="../../../../../deprecated-list.html">Deprecated</a></li> 873<li><a href="../../../../../index-all.html">Index</a></li> 874<li><a href="../../../../../help-doc.html">Help</a></li> 875</ul> 876</div> 877<div class="subNav"> 878<ul class="navList"> 879<li><a href="../../../../../com/fasterxml/jackson/databind/node/FloatNode.html" title="class in com.fasterxml.jackson.databind.node"><span class="typeNameLink">Prev Class</span></a></li> 880<li><a href="../../../../../com/fasterxml/jackson/databind/node/JsonNodeCreator.html" title="interface in com.fasterxml.jackson.databind.node"><span class="typeNameLink">Next Class</span></a></li> 881</ul> 882<ul class="navList"> 883<li><a href="../../../../../index.html?com/fasterxml/jackson/databind/node/IntNode.html" target="_top">Frames</a></li> 884<li><a href="IntNode.html" target="_top">No Frames</a></li> 885</ul> 886<ul class="navList" id="allclasses_navbar_bottom"> 887<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> 888</ul> 889<div> 890<script type="text/javascript"><!-- 891 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 892 if(window==top) { 893 allClassesLink.style.display = "block"; 894 } 895 else { 896 allClassesLink.style.display = "none"; 897 } 898 //--> 899</script> 900</div> 901<div> 902<ul class="subNavList"> 903<li>Summary: </li> 904<li>Nested | </li> 905<li><a href="#field.summary">Field</a> | </li> 906<li><a href="#constructor.summary">Constr</a> | </li> 907<li><a href="#method.summary">Method</a></li> 908</ul> 909<ul class="subNavList"> 910<li>Detail: </li> 911<li><a href="#field.detail">Field</a> | </li> 912<li><a href="#constructor.detail">Constr</a> | </li> 913<li><a href="#method.detail">Method</a></li> 914</ul> 915</div> 916<a name="skip.navbar.bottom"> 917<!-- --> 918</a></div> 919<!-- ======== END OF BOTTOM NAVBAR ======= --> 920<p class="legalCopy"><small>Copyright © 2008–2020 <a href="http://fasterxml.com/">FasterXML</a>. All rights reserved.</small></p> 921</body> 922</html> 923