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