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 (version 1.7.0_10-ea) on Mon Apr 22 19:50:40 PDT 2013 -->
6<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
7<title>DecimalNode (jackson-databind 2.2.0 API)</title>
8<meta name="date" content="2013-04-22">
9<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
10</head>
11<body>
12<script type="text/javascript"><!--
13    if (location.href.indexOf('is-external=true') == -1) {
14        parent.document.title="DecimalNode (jackson-databind 2.2.0 API)";
15    }
16//-->
17</script>
18<noscript>
19<div>JavaScript is disabled on your browser.</div>
20</noscript>
21<!-- ========= START OF TOP NAVBAR ======= -->
22<div class="topNav"><a name="navbar_top">
23<!--   -->
24</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
25<!--   -->
26</a>
27<ul class="navList" title="Navigation">
28<li><a href="../../../../../overview-summary.html">Overview</a></li>
29<li><a href="package-summary.html">Package</a></li>
30<li class="navBarCell1Rev">Class</li>
31<li><a href="class-use/DecimalNode.html">Use</a></li>
32<li><a href="package-tree.html">Tree</a></li>
33<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
34<li><a href="../../../../../index-all.html">Index</a></li>
35<li><a href="../../../../../help-doc.html">Help</a></li>
36</ul>
37</div>
38<div class="subNav">
39<ul class="navList">
40<li><a href="../../../../../com/fasterxml/jackson/databind/node/ContainerNode.html" title="class in com.fasterxml.jackson.databind.node"><span class="strong">Prev Class</span></a></li>
41<li><a href="../../../../../com/fasterxml/jackson/databind/node/DoubleNode.html" title="class in com.fasterxml.jackson.databind.node"><span class="strong">Next Class</span></a></li>
42</ul>
43<ul class="navList">
44<li><a href="../../../../../index.html?com/fasterxml/jackson/databind/node/DecimalNode.html" target="_top">Frames</a></li>
45<li><a href="DecimalNode.html" target="_top">No Frames</a></li>
46</ul>
47<ul class="navList" id="allclasses_navbar_top">
48<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
49</ul>
50<div>
51<script type="text/javascript"><!--
52  allClassesLink = document.getElementById("allclasses_navbar_top");
53  if(window==top) {
54    allClassesLink.style.display = "block";
55  }
56  else {
57    allClassesLink.style.display = "none";
58  }
59  //-->
60</script>
61</div>
62<div>
63<ul class="subNavList">
64<li>Summary:&nbsp;</li>
65<li>Nested&nbsp;|&nbsp;</li>
66<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
67<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
68<li><a href="#method_summary">Method</a></li>
69</ul>
70<ul class="subNavList">
71<li>Detail:&nbsp;</li>
72<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
73<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
74<li><a href="#method_detail">Method</a></li>
75</ul>
76</div>
77<a name="skip-navbar_top">
78<!--   -->
79</a></div>
80<!-- ========= END OF TOP NAVBAR ========= -->
81<!-- ======== START OF CLASS DATA ======== -->
82<div class="header">
83<div class="subTitle">com.fasterxml.jackson.databind.node</div>
84<h2 title="Class DecimalNode" class="title">Class DecimalNode</h2>
85</div>
86<div class="contentContainer">
87<ul class="inheritance">
88<li><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
89<li>
90<ul class="inheritance">
91<li><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">com.fasterxml.jackson.databind.JsonNode</a></li>
92<li>
93<ul class="inheritance">
94<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>
95<li>
96<ul class="inheritance">
97<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>
98<li>
99<ul class="inheritance">
100<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>
101<li>
102<ul class="inheritance">
103<li>com.fasterxml.jackson.databind.node.DecimalNode</li>
104</ul>
105</li>
106</ul>
107</li>
108</ul>
109</li>
110</ul>
111</li>
112</ul>
113</li>
114</ul>
115<div class="description">
116<ul class="blockList">
117<li class="blockList">
118<dl>
119<dt>All Implemented Interfaces:</dt>
120<dd><a href="http://fasterxml.github.com/jackson-core/javadoc/2.1.1/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/6/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>
121</dl>
122<hr>
123<br>
124<pre>public final class <span class="strong">DecimalNode</span>
125extends <a href="../../../../../com/fasterxml/jackson/databind/node/NumericNode.html" title="class in com.fasterxml.jackson.databind.node">NumericNode</a></pre>
126<div class="block">Numeric node that contains values that do not fit in simple
127 integer (int, long) or floating point (double) values.</div>
128</li>
129</ul>
130</div>
131<div class="summary">
132<ul class="blockList">
133<li class="blockList">
134<!-- =========== FIELD SUMMARY =========== -->
135<ul class="blockList">
136<li class="blockList"><a name="field_summary">
137<!--   -->
138</a>
139<h3>Field Summary</h3>
140<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
141<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
142<tr>
143<th class="colFirst" scope="col">Modifier and Type</th>
144<th class="colLast" scope="col">Field and Description</th>
145</tr>
146<tr class="altColor">
147<td class="colFirst"><code>protected <a href="http://docs.oracle.com/javase/6/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math">BigDecimal</a></code></td>
148<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/node/DecimalNode.html#_value">_value</a></strong></code>&nbsp;</td>
149</tr>
150<tr class="rowColor">
151<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>
152<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/node/DecimalNode.html#ZERO">ZERO</a></strong></code>&nbsp;</td>
153</tr>
154</table>
155</li>
156</ul>
157<!-- ======== CONSTRUCTOR SUMMARY ======== -->
158<ul class="blockList">
159<li class="blockList"><a name="constructor_summary">
160<!--   -->
161</a>
162<h3>Constructor Summary</h3>
163<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
164<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
165<tr>
166<th class="colOne" scope="col">Constructor and Description</th>
167</tr>
168<tr class="altColor">
169<td class="colOne"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/node/DecimalNode.html#DecimalNode(java.math.BigDecimal)">DecimalNode</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math">BigDecimal</a>&nbsp;v)</code>&nbsp;</td>
170</tr>
171</table>
172</li>
173</ul>
174<!-- ========== METHOD SUMMARY =========== -->
175<ul class="blockList">
176<li class="blockList"><a name="method_summary">
177<!--   -->
178</a>
179<h3>Method Summary</h3>
180<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
181<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
182<tr>
183<th class="colFirst" scope="col">Modifier and Type</th>
184<th class="colLast" scope="col">Method and Description</th>
185</tr>
186<tr class="altColor">
187<td class="colFirst"><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
188<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/node/DecimalNode.html#asText()">asText</a></strong>()</code>
189<div class="block">Method that will return a valid String representation of
190 the container value, if the node is a value node
191 (method <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isValueNode()"><code>JsonNode.isValueNode()</code></a> returns true),
192 otherwise empty String.</div>
193</td>
194</tr>
195<tr class="rowColor">
196<td class="colFirst"><code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.1.1/com/fasterxml/jackson/core/JsonToken.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonToken</a></code></td>
197<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/node/DecimalNode.html#asToken()">asToken</a></strong>()</code>
198<div class="block">Method that can be used for efficient type detection
199 when using stream abstraction for traversing nodes.</div>
200</td>
201</tr>
202<tr class="altColor">
203<td class="colFirst"><code><a href="http://docs.oracle.com/javase/6/docs/api/java/math/BigInteger.html?is-external=true" title="class or interface in java.math">BigInteger</a></code></td>
204<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/node/DecimalNode.html#bigIntegerValue()">bigIntegerValue</a></strong>()</code>&nbsp;</td>
205</tr>
206<tr class="rowColor">
207<td class="colFirst"><code>boolean</code></td>
208<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/node/DecimalNode.html#canConvertToInt()">canConvertToInt</a></strong>()</code>
209<div class="block">Method that can be used to check whether this node is a numeric
210 node (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()"><code>JsonNode.isNumber()</code></a> would return true) AND its value fits
211 within Java's 32-bit signed integer type, <code>int</code>.</div>
212</td>
213</tr>
214<tr class="altColor">
215<td class="colFirst"><code>boolean</code></td>
216<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/node/DecimalNode.html#canConvertToLong()">canConvertToLong</a></strong>()</code>
217<div class="block">Method that can be used to check whether this node is a numeric
218 node (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()"><code>JsonNode.isNumber()</code></a> would return true) AND its value fits
219 within Java's 64-bit signed integer type, <code>long</code>.</div>
220</td>
221</tr>
222<tr class="rowColor">
223<td class="colFirst"><code><a href="http://docs.oracle.com/javase/6/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math">BigDecimal</a></code></td>
224<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/node/DecimalNode.html#decimalValue()">decimalValue</a></strong>()</code>&nbsp;</td>
225</tr>
226<tr class="altColor">
227<td class="colFirst"><code>double</code></td>
228<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/node/DecimalNode.html#doubleValue()">doubleValue</a></strong>()</code>
229<div class="block">Returns 64-bit floating point (double) value for this node, <b>if and only if</b>
230 this node is numeric (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()"><code>JsonNode.isNumber()</code></a> returns true).</div>
231</td>
232</tr>
233<tr class="rowColor">
234<td class="colFirst"><code>boolean</code></td>
235<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/node/DecimalNode.html#equals(java.lang.Object)">equals</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;o)</code>
236<div class="block">Equality for node objects is defined as full (deep) value
237 equality.</div>
238</td>
239</tr>
240<tr class="altColor">
241<td class="colFirst"><code>float</code></td>
242<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/node/DecimalNode.html#floatValue()">floatValue</a></strong>()</code>
243<div class="block">Returns 32-bit floating value for this node, <b>if and only if</b>
244 this node is numeric (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()"><code>JsonNode.isNumber()</code></a> returns true).</div>
245</td>
246</tr>
247<tr class="rowColor">
248<td class="colFirst"><code>int</code></td>
249<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/node/DecimalNode.html#hashCode()">hashCode</a></strong>()</code>&nbsp;</td>
250</tr>
251<tr class="altColor">
252<td class="colFirst"><code>int</code></td>
253<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/node/DecimalNode.html#intValue()">intValue</a></strong>()</code>
254<div class="block">Returns integer value for this node, <b>if and only if</b>
255 this node is numeric (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()"><code>JsonNode.isNumber()</code></a> returns true).</div>
256</td>
257</tr>
258<tr class="rowColor">
259<td class="colFirst"><code>boolean</code></td>
260<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/node/DecimalNode.html#isBigDecimal()">isBigDecimal</a></strong>()</code>&nbsp;</td>
261</tr>
262<tr class="altColor">
263<td class="colFirst"><code>boolean</code></td>
264<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/node/DecimalNode.html#isFloatingPointNumber()">isFloatingPointNumber</a></strong>()</code>&nbsp;</td>
265</tr>
266<tr class="rowColor">
267<td class="colFirst"><code>long</code></td>
268<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/node/DecimalNode.html#longValue()">longValue</a></strong>()</code>
269<div class="block">Returns 64-bit long value for this node, <b>if and only if</b>
270 this node is numeric (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()"><code>JsonNode.isNumber()</code></a> returns true).</div>
271</td>
272</tr>
273<tr class="altColor">
274<td class="colFirst"><code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.1.1/com/fasterxml/jackson/core/JsonParser.NumberType.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonParser.NumberType</a></code></td>
275<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/node/DecimalNode.html#numberType()">numberType</a></strong>()</code>
276<div class="block">Returns code that identifies type of underlying numeric
277 value, if (and only if) node is a number node.</div>
278</td>
279</tr>
280<tr class="rowColor">
281<td class="colFirst"><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Number.html?is-external=true" title="class or interface in java.lang">Number</a></code></td>
282<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/node/DecimalNode.html#numberValue()">numberValue</a></strong>()</code>
283<div class="block">Returns numeric value for this node, <b>if and only if</b>
284 this node is numeric (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()"><code>JsonNode.isNumber()</code></a> returns true); otherwise
285 returns null</div>
286</td>
287</tr>
288<tr class="altColor">
289<td class="colFirst"><code>void</code></td>
290<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/node/DecimalNode.html#serialize(com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.databind.SerializerProvider)">serialize</a></strong>(<a href="http://fasterxml.github.com/jackson-core/javadoc/2.1.1/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerator</a>&nbsp;jg,
291         <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html" title="class in com.fasterxml.jackson.databind">SerializerProvider</a>&nbsp;provider)</code>
292<div class="block">Method called to serialize node instances using given generator.</div>
293</td>
294</tr>
295<tr class="rowColor">
296<td class="colFirst"><code>short</code></td>
297<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/node/DecimalNode.html#shortValue()">shortValue</a></strong>()</code>
298<div class="block">Returns 16-bit short value for this node, <b>if and only if</b>
299 this node is numeric (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()"><code>JsonNode.isNumber()</code></a> returns true).</div>
300</td>
301</tr>
302<tr class="altColor">
303<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>
304<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/node/DecimalNode.html#valueOf(java.math.BigDecimal)">valueOf</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math">BigDecimal</a>&nbsp;d)</code>&nbsp;</td>
305</tr>
306</table>
307<ul class="blockList">
308<li class="blockList"><a name="methods_inherited_from_class_com.fasterxml.jackson.databind.node.NumericNode">
309<!--   -->
310</a>
311<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>
312<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>
313</ul>
314<ul class="blockList">
315<li class="blockList"><a name="methods_inherited_from_class_com.fasterxml.jackson.databind.node.ValueNode">
316<!--   -->
317</a>
318<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>
319<code><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>
320</ul>
321<ul class="blockList">
322<li class="blockList"><a name="methods_inherited_from_class_com.fasterxml.jackson.databind.node.BaseJsonNode">
323<!--   -->
324</a>
325<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>
326<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>
327</ul>
328<ul class="blockList">
329<li class="blockList"><a name="methods_inherited_from_class_com.fasterxml.jackson.databind.JsonNode">
330<!--   -->
331</a>
332<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>
333<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#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#fieldNames()">fieldNames</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#fields()">fields</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#findParents(java.lang.String)">findParents</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#findValues(java.lang.String)">findValues</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#findValuesAsText(java.lang.String)">findValuesAsText</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isArray()">isArray</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isBigInteger()">isBigInteger</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isBinary()">isBinary</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isBoolean()">isBoolean</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isContainerNode()">isContainerNode</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isDouble()">isDouble</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isFloat()">isFloat</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isInt()">isInt</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isIntegralNumber()">isIntegralNumber</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isLong()">isLong</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isMissingNode()">isMissingNode</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNull()">isNull</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()">isNumber</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isObject()">isObject</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isPojo()">isPojo</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isShort()">isShort</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isTextual()">isTextual</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isValueNode()">isValueNode</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#iterator()">iterator</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#size()">size</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#textValue()">textValue</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#with(java.lang.String)">with</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#withArray(java.lang.String)">withArray</a></code></li>
334</ul>
335<ul class="blockList">
336<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
337<!--   -->
338</a>
339<h3>Methods inherited from class&nbsp;java.lang.<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
340<code><a href="http://docs.oracle.com/javase/6/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/6/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/6/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/6/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/6/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/6/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/6/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/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</a></code></li>
341</ul>
342</li>
343</ul>
344</li>
345</ul>
346</div>
347<div class="details">
348<ul class="blockList">
349<li class="blockList">
350<!-- ============ FIELD DETAIL =========== -->
351<ul class="blockList">
352<li class="blockList"><a name="field_detail">
353<!--   -->
354</a>
355<h3>Field Detail</h3>
356<a name="ZERO">
357<!--   -->
358</a>
359<ul class="blockList">
360<li class="blockList">
361<h4>ZERO</h4>
362<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>
363</li>
364</ul>
365<a name="_value">
366<!--   -->
367</a>
368<ul class="blockListLast">
369<li class="blockList">
370<h4>_value</h4>
371<pre>protected final&nbsp;<a href="http://docs.oracle.com/javase/6/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math">BigDecimal</a> _value</pre>
372</li>
373</ul>
374</li>
375</ul>
376<!-- ========= CONSTRUCTOR DETAIL ======== -->
377<ul class="blockList">
378<li class="blockList"><a name="constructor_detail">
379<!--   -->
380</a>
381<h3>Constructor Detail</h3>
382<a name="DecimalNode(java.math.BigDecimal)">
383<!--   -->
384</a>
385<ul class="blockListLast">
386<li class="blockList">
387<h4>DecimalNode</h4>
388<pre>public&nbsp;DecimalNode(<a href="http://docs.oracle.com/javase/6/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math">BigDecimal</a>&nbsp;v)</pre>
389</li>
390</ul>
391</li>
392</ul>
393<!-- ============ METHOD DETAIL ========== -->
394<ul class="blockList">
395<li class="blockList"><a name="method_detail">
396<!--   -->
397</a>
398<h3>Method Detail</h3>
399<a name="valueOf(java.math.BigDecimal)">
400<!--   -->
401</a>
402<ul class="blockList">
403<li class="blockList">
404<h4>valueOf</h4>
405<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="http://docs.oracle.com/javase/6/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math">BigDecimal</a>&nbsp;d)</pre>
406</li>
407</ul>
408<a name="asToken()">
409<!--   -->
410</a>
411<ul class="blockList">
412<li class="blockList">
413<h4>asToken</h4>
414<pre>public&nbsp;<a href="http://fasterxml.github.com/jackson-core/javadoc/2.1.1/com/fasterxml/jackson/core/JsonToken.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonToken</a>&nbsp;asToken()</pre>
415<div class="block"><strong>Description copied from class:&nbsp;<code><a href="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#asToken()">BaseJsonNode</a></code></strong></div>
416<div class="block">Method that can be used for efficient type detection
417 when using stream abstraction for traversing nodes.
418 Will return the first <a href="http://fasterxml.github.com/jackson-core/javadoc/2.1.1/com/fasterxml/jackson/core/JsonToken.html?is-external=true" title="class or interface in com.fasterxml.jackson.core"><code>JsonToken</code></a> that equivalent
419 stream event would produce (for most nodes there is just
420 one token but for structured/container types multiple)</div>
421<dl>
422<dt><strong>Specified by:</strong></dt>
423<dd><code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.1.1/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.com/jackson-core/javadoc/2.1.1/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a></code></dd>
424<dt><strong>Specified by:</strong></dt>
425<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>
426</dl>
427</li>
428</ul>
429<a name="numberType()">
430<!--   -->
431</a>
432<ul class="blockList">
433<li class="blockList">
434<h4>numberType</h4>
435<pre>public&nbsp;<a href="http://fasterxml.github.com/jackson-core/javadoc/2.1.1/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>
436<div class="block"><strong>Description copied from class:&nbsp;<code><a href="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#numberType()">BaseJsonNode</a></code></strong></div>
437<div class="block">Returns code that identifies type of underlying numeric
438 value, if (and only if) node is a number node.</div>
439<dl>
440<dt><strong>Specified by:</strong></dt>
441<dd><code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.1.1/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.com/jackson-core/javadoc/2.1.1/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a></code></dd>
442<dt><strong>Specified by:</strong></dt>
443<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>
444</dl>
445</li>
446</ul>
447<a name="isFloatingPointNumber()">
448<!--   -->
449</a>
450<ul class="blockList">
451<li class="blockList">
452<h4>isFloatingPointNumber</h4>
453<pre>public&nbsp;boolean&nbsp;isFloatingPointNumber()</pre>
454<dl>
455<dt><strong>Overrides:</strong></dt>
456<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>
457<dt><span class="strong">Returns:</span></dt><dd>True if this node represents a non-integral
458   numeric JSON value</dd></dl>
459</li>
460</ul>
461<a name="isBigDecimal()">
462<!--   -->
463</a>
464<ul class="blockList">
465<li class="blockList">
466<h4>isBigDecimal</h4>
467<pre>public&nbsp;boolean&nbsp;isBigDecimal()</pre>
468<dl>
469<dt><strong>Overrides:</strong></dt>
470<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>
471</dl>
472</li>
473</ul>
474<a name="canConvertToInt()">
475<!--   -->
476</a>
477<ul class="blockList">
478<li class="blockList">
479<h4>canConvertToInt</h4>
480<pre>public&nbsp;boolean&nbsp;canConvertToInt()</pre>
481<div class="block"><strong>Description copied from class:&nbsp;<code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#canConvertToInt()">JsonNode</a></code></strong></div>
482<div class="block">Method that can be used to check whether this node is a numeric
483 node (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()"><code>JsonNode.isNumber()</code></a> would return true) AND its value fits
484 within Java's 32-bit signed integer type, <code>int</code>.
485 Note that floating-point numbers are convertible if the integral
486 part fits without overflow (as per standard Java coercion rules)</div>
487<dl>
488<dt><strong>Specified by:</strong></dt>
489<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>
490</dl>
491</li>
492</ul>
493<a name="canConvertToLong()">
494<!--   -->
495</a>
496<ul class="blockList">
497<li class="blockList">
498<h4>canConvertToLong</h4>
499<pre>public&nbsp;boolean&nbsp;canConvertToLong()</pre>
500<div class="block"><strong>Description copied from class:&nbsp;<code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#canConvertToLong()">JsonNode</a></code></strong></div>
501<div class="block">Method that can be used to check whether this node is a numeric
502 node (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()"><code>JsonNode.isNumber()</code></a> would return true) AND its value fits
503 within Java's 64-bit signed integer type, <code>long</code>.
504 Note that floating-point numbers are convertible if the integral
505 part fits without overflow (as per standard Java coercion rules)</div>
506<dl>
507<dt><strong>Specified by:</strong></dt>
508<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>
509</dl>
510</li>
511</ul>
512<a name="numberValue()">
513<!--   -->
514</a>
515<ul class="blockList">
516<li class="blockList">
517<h4>numberValue</h4>
518<pre>public&nbsp;<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Number.html?is-external=true" title="class or interface in java.lang">Number</a>&nbsp;numberValue()</pre>
519<div class="block"><strong>Description copied from class:&nbsp;<code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#numberValue()">JsonNode</a></code></strong></div>
520<div class="block">Returns numeric value for this node, <b>if and only if</b>
521 this node is numeric (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()"><code>JsonNode.isNumber()</code></a> returns true); otherwise
522 returns null</div>
523<dl>
524<dt><strong>Specified by:</strong></dt>
525<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>
526<dt><span class="strong">Returns:</span></dt><dd>Number value this node contains, if any (null for non-number
527   nodes).</dd></dl>
528</li>
529</ul>
530<a name="shortValue()">
531<!--   -->
532</a>
533<ul class="blockList">
534<li class="blockList">
535<h4>shortValue</h4>
536<pre>public&nbsp;short&nbsp;shortValue()</pre>
537<div class="block"><strong>Description copied from class:&nbsp;<code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#shortValue()">JsonNode</a></code></strong></div>
538<div class="block">Returns 16-bit short value for this node, <b>if and only if</b>
539 this node is numeric (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()"><code>JsonNode.isNumber()</code></a> returns true). For other
540 types returns 0.
541 For floating-point numbers, value is truncated using default
542 Java coercion, similar to how cast from double to short operates.</div>
543<dl>
544<dt><strong>Overrides:</strong></dt>
545<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>
546<dt><span class="strong">Returns:</span></dt><dd>Short value this node contains, if any; 0 for non-number
547   nodes.</dd></dl>
548</li>
549</ul>
550<a name="intValue()">
551<!--   -->
552</a>
553<ul class="blockList">
554<li class="blockList">
555<h4>intValue</h4>
556<pre>public&nbsp;int&nbsp;intValue()</pre>
557<div class="block"><strong>Description copied from class:&nbsp;<code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#intValue()">JsonNode</a></code></strong></div>
558<div class="block">Returns integer value for this node, <b>if and only if</b>
559 this node is numeric (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()"><code>JsonNode.isNumber()</code></a> returns true). For other
560 types returns 0.
561 For floating-point numbers, value is truncated using default
562 Java coercion, similar to how cast from double to int operates.</div>
563<dl>
564<dt><strong>Specified by:</strong></dt>
565<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>
566<dt><span class="strong">Returns:</span></dt><dd>Integer value this node contains, if any; 0 for non-number
567   nodes.</dd></dl>
568</li>
569</ul>
570<a name="longValue()">
571<!--   -->
572</a>
573<ul class="blockList">
574<li class="blockList">
575<h4>longValue</h4>
576<pre>public&nbsp;long&nbsp;longValue()</pre>
577<div class="block"><strong>Description copied from class:&nbsp;<code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#longValue()">JsonNode</a></code></strong></div>
578<div class="block">Returns 64-bit long value for this node, <b>if and only if</b>
579 this node is numeric (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()"><code>JsonNode.isNumber()</code></a> returns true). For other
580 types returns 0.
581 For floating-point numbers, value is truncated using default
582 Java coercion, similar to how cast from double to long operates.</div>
583<dl>
584<dt><strong>Specified by:</strong></dt>
585<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>
586<dt><span class="strong">Returns:</span></dt><dd>Long value this node contains, if any; 0 for non-number
587   nodes.</dd></dl>
588</li>
589</ul>
590<a name="bigIntegerValue()">
591<!--   -->
592</a>
593<ul class="blockList">
594<li class="blockList">
595<h4>bigIntegerValue</h4>
596<pre>public&nbsp;<a href="http://docs.oracle.com/javase/6/docs/api/java/math/BigInteger.html?is-external=true" title="class or interface in java.math">BigInteger</a>&nbsp;bigIntegerValue()</pre>
597<dl>
598<dt><strong>Specified by:</strong></dt>
599<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>
600</dl>
601</li>
602</ul>
603<a name="floatValue()">
604<!--   -->
605</a>
606<ul class="blockList">
607<li class="blockList">
608<h4>floatValue</h4>
609<pre>public&nbsp;float&nbsp;floatValue()</pre>
610<div class="block"><strong>Description copied from class:&nbsp;<code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#floatValue()">JsonNode</a></code></strong></div>
611<div class="block">Returns 32-bit floating value for this node, <b>if and only if</b>
612 this node is numeric (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()"><code>JsonNode.isNumber()</code></a> returns true). For other
613 types returns 0.0.
614 For integer values, conversion is done using coercion; this means
615 that an overflow is possible for `long` values</div>
616<dl>
617<dt><strong>Overrides:</strong></dt>
618<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>
619<dt><span class="strong">Returns:</span></dt><dd>32-bit float value this node contains, if any; 0.0 for non-number nodes.</dd></dl>
620</li>
621</ul>
622<a name="doubleValue()">
623<!--   -->
624</a>
625<ul class="blockList">
626<li class="blockList">
627<h4>doubleValue</h4>
628<pre>public&nbsp;double&nbsp;doubleValue()</pre>
629<div class="block"><strong>Description copied from class:&nbsp;<code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#doubleValue()">JsonNode</a></code></strong></div>
630<div class="block">Returns 64-bit floating point (double) value for this node, <b>if and only if</b>
631 this node is numeric (<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()"><code>JsonNode.isNumber()</code></a> returns true). For other
632 types returns 0.0.
633 For integer values, conversion is done using coercion; this may result
634 in overflows with <a href="http://docs.oracle.com/javase/6/docs/api/java/math/BigInteger.html?is-external=true" title="class or interface in java.math"><code>BigInteger</code></a> values.</div>
635<dl>
636<dt><strong>Specified by:</strong></dt>
637<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>
638<dt><span class="strong">Returns:</span></dt><dd>64-bit double value this node contains, if any; 0.0 for non-number nodes.</dd></dl>
639</li>
640</ul>
641<a name="decimalValue()">
642<!--   -->
643</a>
644<ul class="blockList">
645<li class="blockList">
646<h4>decimalValue</h4>
647<pre>public&nbsp;<a href="http://docs.oracle.com/javase/6/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math">BigDecimal</a>&nbsp;decimalValue()</pre>
648<dl>
649<dt><strong>Specified by:</strong></dt>
650<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>
651</dl>
652</li>
653</ul>
654<a name="asText()">
655<!--   -->
656</a>
657<ul class="blockList">
658<li class="blockList">
659<h4>asText</h4>
660<pre>public&nbsp;<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;asText()</pre>
661<div class="block"><strong>Description copied from class:&nbsp;<code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asText()">JsonNode</a></code></strong></div>
662<div class="block">Method that will return a valid String representation of
663 the container value, if the node is a value node
664 (method <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isValueNode()"><code>JsonNode.isValueNode()</code></a> returns true),
665 otherwise empty String.</div>
666<dl>
667<dt><strong>Specified by:</strong></dt>
668<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>
669</dl>
670</li>
671</ul>
672<a name="serialize(com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.databind.SerializerProvider)">
673<!--   -->
674</a>
675<ul class="blockList">
676<li class="blockList">
677<h4>serialize</h4>
678<pre>public final&nbsp;void&nbsp;serialize(<a href="http://fasterxml.github.com/jackson-core/javadoc/2.1.1/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerator</a>&nbsp;jg,
679             <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html" title="class in com.fasterxml.jackson.databind">SerializerProvider</a>&nbsp;provider)
680                     throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>,
681                            <a href="http://fasterxml.github.com/jackson-core/javadoc/2.1.1/com/fasterxml/jackson/core/JsonProcessingException.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonProcessingException</a></pre>
682<div class="block"><strong>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></strong></div>
683<div class="block">Method called to serialize node instances using given generator.</div>
684<dl>
685<dt><strong>Specified by:</strong></dt>
686<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>
687<dt><strong>Specified by:</strong></dt>
688<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>
689<dt><span class="strong">Throws:</span></dt>
690<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd>
691<dd><code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.1.1/com/fasterxml/jackson/core/JsonProcessingException.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonProcessingException</a></code></dd></dl>
692</li>
693</ul>
694<a name="equals(java.lang.Object)">
695<!--   -->
696</a>
697<ul class="blockList">
698<li class="blockList">
699<h4>equals</h4>
700<pre>public&nbsp;boolean&nbsp;equals(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;o)</pre>
701<div class="block"><strong>Description copied from class:&nbsp;<code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#equals(java.lang.Object)">JsonNode</a></code></strong></div>
702<div class="block">Equality for node objects is defined as full (deep) value
703 equality. This means that it is possible to compare complete
704 JSON trees for equality by comparing equality of root nodes.
705<p>
706 Note: marked as abstract to ensure all implementation
707 classes define it properly and not rely on definition
708 from <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang"><code>Object</code></a>.</div>
709<dl>
710<dt><strong>Specified by:</strong></dt>
711<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>
712</dl>
713</li>
714</ul>
715<a name="hashCode()">
716<!--   -->
717</a>
718<ul class="blockListLast">
719<li class="blockList">
720<h4>hashCode</h4>
721<pre>public&nbsp;int&nbsp;hashCode()</pre>
722<dl>
723<dt><strong>Overrides:</strong></dt>
724<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a></code>&nbsp;in class&nbsp;<code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd>
725</dl>
726</li>
727</ul>
728</li>
729</ul>
730</li>
731</ul>
732</div>
733</div>
734<!-- ========= END OF CLASS DATA ========= -->
735<!-- ======= START OF BOTTOM NAVBAR ====== -->
736<div class="bottomNav"><a name="navbar_bottom">
737<!--   -->
738</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
739<!--   -->
740</a>
741<ul class="navList" title="Navigation">
742<li><a href="../../../../../overview-summary.html">Overview</a></li>
743<li><a href="package-summary.html">Package</a></li>
744<li class="navBarCell1Rev">Class</li>
745<li><a href="class-use/DecimalNode.html">Use</a></li>
746<li><a href="package-tree.html">Tree</a></li>
747<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
748<li><a href="../../../../../index-all.html">Index</a></li>
749<li><a href="../../../../../help-doc.html">Help</a></li>
750</ul>
751</div>
752<div class="subNav">
753<ul class="navList">
754<li><a href="../../../../../com/fasterxml/jackson/databind/node/ContainerNode.html" title="class in com.fasterxml.jackson.databind.node"><span class="strong">Prev Class</span></a></li>
755<li><a href="../../../../../com/fasterxml/jackson/databind/node/DoubleNode.html" title="class in com.fasterxml.jackson.databind.node"><span class="strong">Next Class</span></a></li>
756</ul>
757<ul class="navList">
758<li><a href="../../../../../index.html?com/fasterxml/jackson/databind/node/DecimalNode.html" target="_top">Frames</a></li>
759<li><a href="DecimalNode.html" target="_top">No Frames</a></li>
760</ul>
761<ul class="navList" id="allclasses_navbar_bottom">
762<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
763</ul>
764<div>
765<script type="text/javascript"><!--
766  allClassesLink = document.getElementById("allclasses_navbar_bottom");
767  if(window==top) {
768    allClassesLink.style.display = "block";
769  }
770  else {
771    allClassesLink.style.display = "none";
772  }
773  //-->
774</script>
775</div>
776<div>
777<ul class="subNavList">
778<li>Summary:&nbsp;</li>
779<li>Nested&nbsp;|&nbsp;</li>
780<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
781<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
782<li><a href="#method_summary">Method</a></li>
783</ul>
784<ul class="subNavList">
785<li>Detail:&nbsp;</li>
786<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
787<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
788<li><a href="#method_detail">Method</a></li>
789</ul>
790</div>
791<a name="skip-navbar_bottom">
792<!--   -->
793</a></div>
794<!-- ======== END OF BOTTOM NAVBAR ======= -->
795<p class="legalCopy"><small>Copyright &#169; 2012-2013 <a href="http://fasterxml.com/">FasterXML</a>. All Rights Reserved.</small></p>
796</body>
797</html>
798