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