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