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 Sun Jul 14 20:03:32 PDT 2013 -->
6<title>IntNode (Jackson JSON Processor)</title>
7<meta name="date" content="2013-07-14">
8<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
9</head>
10<body>
11<script type="text/javascript"><!--
12    if (location.href.indexOf('is-external=true') == -1) {
13        parent.document.title="IntNode (Jackson JSON Processor)";
14    }
15//-->
16</script>
17<noscript>
18<div>JavaScript is disabled on your browser.</div>
19</noscript>
20<!-- ========= START OF TOP NAVBAR ======= -->
21<div class="topNav"><a name="navbar_top">
22<!--   -->
23</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
24<!--   -->
25</a>
26<ul class="navList" title="Navigation">
27<li><a href="../../../../overview-summary.html">Overview</a></li>
28<li><a href="package-summary.html">Package</a></li>
29<li class="navBarCell1Rev">Class</li>
30<li><a href="class-use/IntNode.html">Use</a></li>
31<li><a href="package-tree.html">Tree</a></li>
32<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
33<li><a href="../../../../index-all.html">Index</a></li>
34<li><a href="../../../../help-doc.html">Help</a></li>
35</ul>
36</div>
37<div class="subNav">
38<ul class="navList">
39<li><a href="../../../../org/codehaus/jackson/node/DoubleNode.html" title="class in org.codehaus.jackson.node"><span class="strong">Prev Class</span></a></li>
40<li><a href="../../../../org/codehaus/jackson/node/JsonNodeFactory.html" title="class in org.codehaus.jackson.node"><span class="strong">Next Class</span></a></li>
41</ul>
42<ul class="navList">
43<li><a href="../../../../index.html?org/codehaus/jackson/node/IntNode.html" target="_top">Frames</a></li>
44<li><a href="IntNode.html" target="_top">No Frames</a></li>
45</ul>
46<ul class="navList" id="allclasses_navbar_top">
47<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
48</ul>
49<div>
50<script type="text/javascript"><!--
51  allClassesLink = document.getElementById("allclasses_navbar_top");
52  if(window==top) {
53    allClassesLink.style.display = "block";
54  }
55  else {
56    allClassesLink.style.display = "none";
57  }
58  //-->
59</script>
60</div>
61<div>
62<ul class="subNavList">
63<li>Summary:&nbsp;</li>
64<li>Nested&nbsp;|&nbsp;</li>
65<li><a href="#fields_inherited_from_class_org.codehaus.jackson.JsonNode">Field</a>&nbsp;|&nbsp;</li>
66<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
67<li><a href="#method_summary">Method</a></li>
68</ul>
69<ul class="subNavList">
70<li>Detail:&nbsp;</li>
71<li>Field&nbsp;|&nbsp;</li>
72<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
73<li><a href="#method_detail">Method</a></li>
74</ul>
75</div>
76<a name="skip-navbar_top">
77<!--   -->
78</a></div>
79<!-- ========= END OF TOP NAVBAR ========= -->
80<!-- ======== START OF CLASS DATA ======== -->
81<div class="header">
82<div class="subTitle">org.codehaus.jackson.node</div>
83<h2 title="Class IntNode" class="title">Class IntNode</h2>
84</div>
85<div class="contentContainer">
86<ul class="inheritance">
87<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>
88<li>
89<ul class="inheritance">
90<li><a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">org.codehaus.jackson.JsonNode</a></li>
91<li>
92<ul class="inheritance">
93<li><a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html" title="class in org.codehaus.jackson.node">org.codehaus.jackson.node.BaseJsonNode</a></li>
94<li>
95<ul class="inheritance">
96<li><a href="../../../../org/codehaus/jackson/node/ValueNode.html" title="class in org.codehaus.jackson.node">org.codehaus.jackson.node.ValueNode</a></li>
97<li>
98<ul class="inheritance">
99<li><a href="../../../../org/codehaus/jackson/node/NumericNode.html" title="class in org.codehaus.jackson.node">org.codehaus.jackson.node.NumericNode</a></li>
100<li>
101<ul class="inheritance">
102<li>org.codehaus.jackson.node.IntNode</li>
103</ul>
104</li>
105</ul>
106</li>
107</ul>
108</li>
109</ul>
110</li>
111</ul>
112</li>
113</ul>
114<div class="description">
115<ul class="blockList">
116<li class="blockList">
117<dl>
118<dt>All Implemented Interfaces:</dt>
119<dd><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="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a>&gt;, <a href="../../../../org/codehaus/jackson/map/JsonSerializable.html" title="interface in org.codehaus.jackson.map">JsonSerializable</a>, <a href="../../../../org/codehaus/jackson/map/JsonSerializableWithType.html" title="interface in org.codehaus.jackson.map">JsonSerializableWithType</a></dd>
120</dl>
121<hr>
122<br>
123<pre>public final class <span class="strong">IntNode</span>
124extends <a href="../../../../org/codehaus/jackson/node/NumericNode.html" title="class in org.codehaus.jackson.node">NumericNode</a></pre>
125<div class="block">Numeric node that contains simple 32-bit integer values.</div>
126</li>
127</ul>
128</div>
129<div class="summary">
130<ul class="blockList">
131<li class="blockList">
132<!-- =========== FIELD SUMMARY =========== -->
133<ul class="blockList">
134<li class="blockList"><a name="field_summary">
135<!--   -->
136</a>
137<h3>Field Summary</h3>
138<ul class="blockList">
139<li class="blockList"><a name="fields_inherited_from_class_org.codehaus.jackson.JsonNode">
140<!--   -->
141</a>
142<h3>Fields inherited from class&nbsp;org.codehaus.jackson.<a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></h3>
143<code><a href="../../../../org/codehaus/jackson/JsonNode.html#NO_NODES">NO_NODES</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#NO_STRINGS">NO_STRINGS</a></code></li>
144</ul>
145</li>
146</ul>
147<!-- ======== CONSTRUCTOR SUMMARY ======== -->
148<ul class="blockList">
149<li class="blockList"><a name="constructor_summary">
150<!--   -->
151</a>
152<h3>Constructor Summary</h3>
153<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
154<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
155<tr>
156<th class="colOne" scope="col">Constructor and Description</th>
157</tr>
158<tr class="altColor">
159<td class="colOne"><code><strong><a href="../../../../org/codehaus/jackson/node/IntNode.html#IntNode(int)">IntNode</a></strong>(int&nbsp;v)</code>&nbsp;</td>
160</tr>
161</table>
162</li>
163</ul>
164<!-- ========== METHOD SUMMARY =========== -->
165<ul class="blockList">
166<li class="blockList"><a name="method_summary">
167<!--   -->
168</a>
169<h3>Method Summary</h3>
170<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
171<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
172<tr>
173<th class="colFirst" scope="col">Modifier and Type</th>
174<th class="colLast" scope="col">Method and Description</th>
175</tr>
176<tr class="altColor">
177<td class="colFirst"><code>boolean</code></td>
178<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/IntNode.html#asBoolean(boolean)">asBoolean</a></strong>(boolean&nbsp;defaultValue)</code>
179<div class="block">Method that will try to convert value of this node to a Java <b>boolean</b>.</div>
180</td>
181</tr>
182<tr class="rowColor">
183<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>
184<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/IntNode.html#asText()">asText</a></strong>()</code>
185<div class="block">Method that will return valid String representation of
186 the container value, if the node is a value node
187 (method <a href="../../../../org/codehaus/jackson/JsonNode.html#isValueNode()"><code>JsonNode.isValueNode()</code></a> returns true), otherwise
188 empty String.</div>
189</td>
190</tr>
191<tr class="altColor">
192<td class="colFirst"><code><a href="../../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a></code></td>
193<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/IntNode.html#asToken()">asToken</a></strong>()</code>
194<div class="block">Method that can be used for efficient type detection
195 when using stream abstraction for traversing nodes.</div>
196</td>
197</tr>
198<tr class="rowColor">
199<td class="colFirst"><code>boolean</code></td>
200<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/IntNode.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>
201<div class="block">Equality for node objects is defined as full (deep) value
202 equality.</div>
203</td>
204</tr>
205<tr class="altColor">
206<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>
207<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/IntNode.html#getBigIntegerValue()">getBigIntegerValue</a></strong>()</code>&nbsp;</td>
208</tr>
209<tr class="rowColor">
210<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>
211<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/IntNode.html#getDecimalValue()">getDecimalValue</a></strong>()</code>&nbsp;</td>
212</tr>
213<tr class="altColor">
214<td class="colFirst"><code>double</code></td>
215<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/IntNode.html#getDoubleValue()">getDoubleValue</a></strong>()</code>&nbsp;</td>
216</tr>
217<tr class="rowColor">
218<td class="colFirst"><code>int</code></td>
219<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/IntNode.html#getIntValue()">getIntValue</a></strong>()</code>
220<div class="block">Returns integer value for this node, <b>if and only if</b>
221 this node is numeric (<a href="../../../../org/codehaus/jackson/JsonNode.html#isNumber()"><code>JsonNode.isNumber()</code></a> returns true).</div>
222</td>
223</tr>
224<tr class="altColor">
225<td class="colFirst"><code>long</code></td>
226<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/IntNode.html#getLongValue()">getLongValue</a></strong>()</code>&nbsp;</td>
227</tr>
228<tr class="rowColor">
229<td class="colFirst"><code><a href="../../../../org/codehaus/jackson/JsonParser.NumberType.html" title="enum in org.codehaus.jackson">JsonParser.NumberType</a></code></td>
230<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/IntNode.html#getNumberType()">getNumberType</a></strong>()</code>
231<div class="block">If this node is a numeric type (as per <a href="../../../../org/codehaus/jackson/JsonNode.html#isNumber()"><code>JsonNode.isNumber()</code></a>),
232 returns native type that node uses to store the numeric
233 value.</div>
234</td>
235</tr>
236<tr class="altColor">
237<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>
238<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/IntNode.html#getNumberValue()">getNumberValue</a></strong>()</code>
239<div class="block">Returns numeric value for this node, <b>if and only if</b>
240 this node is numeric (<a href="../../../../org/codehaus/jackson/JsonNode.html#isNumber()"><code>JsonNode.isNumber()</code></a> returns true); otherwise
241 returns null</div>
242</td>
243</tr>
244<tr class="rowColor">
245<td class="colFirst"><code>int</code></td>
246<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/IntNode.html#hashCode()">hashCode</a></strong>()</code>&nbsp;</td>
247</tr>
248<tr class="altColor">
249<td class="colFirst"><code>boolean</code></td>
250<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/IntNode.html#isInt()">isInt</a></strong>()</code>&nbsp;</td>
251</tr>
252<tr class="rowColor">
253<td class="colFirst"><code>boolean</code></td>
254<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/IntNode.html#isIntegralNumber()">isIntegralNumber</a></strong>()</code>&nbsp;</td>
255</tr>
256<tr class="altColor">
257<td class="colFirst"><code>void</code></td>
258<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/IntNode.html#serialize(org.codehaus.jackson.JsonGenerator, org.codehaus.jackson.map.SerializerProvider)">serialize</a></strong>(<a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a>&nbsp;jg,
259         <a href="../../../../org/codehaus/jackson/map/SerializerProvider.html" title="class in org.codehaus.jackson.map">SerializerProvider</a>&nbsp;provider)</code>
260<div class="block">Method called to serialize node instances using given generator.</div>
261</td>
262</tr>
263<tr class="rowColor">
264<td class="colFirst"><code>static <a href="../../../../org/codehaus/jackson/node/IntNode.html" title="class in org.codehaus.jackson.node">IntNode</a></code></td>
265<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/IntNode.html#valueOf(int)">valueOf</a></strong>(int&nbsp;i)</code>&nbsp;</td>
266</tr>
267</table>
268<ul class="blockList">
269<li class="blockList"><a name="methods_inherited_from_class_org.codehaus.jackson.node.NumericNode">
270<!--   -->
271</a>
272<h3>Methods inherited from class&nbsp;org.codehaus.jackson.node.<a href="../../../../org/codehaus/jackson/node/NumericNode.html" title="class in org.codehaus.jackson.node">NumericNode</a></h3>
273<code><a href="../../../../org/codehaus/jackson/node/NumericNode.html#asDouble()">asDouble</a>, <a href="../../../../org/codehaus/jackson/node/NumericNode.html#asDouble(double)">asDouble</a>, <a href="../../../../org/codehaus/jackson/node/NumericNode.html#asInt()">asInt</a>, <a href="../../../../org/codehaus/jackson/node/NumericNode.html#asInt(int)">asInt</a>, <a href="../../../../org/codehaus/jackson/node/NumericNode.html#asLong()">asLong</a>, <a href="../../../../org/codehaus/jackson/node/NumericNode.html#asLong(long)">asLong</a>, <a href="../../../../org/codehaus/jackson/node/NumericNode.html#isNumber()">isNumber</a></code></li>
274</ul>
275<ul class="blockList">
276<li class="blockList"><a name="methods_inherited_from_class_org.codehaus.jackson.node.ValueNode">
277<!--   -->
278</a>
279<h3>Methods inherited from class&nbsp;org.codehaus.jackson.node.<a href="../../../../org/codehaus/jackson/node/ValueNode.html" title="class in org.codehaus.jackson.node">ValueNode</a></h3>
280<code><a href="../../../../org/codehaus/jackson/node/ValueNode.html#isValueNode()">isValueNode</a>, <a href="../../../../org/codehaus/jackson/node/ValueNode.html#path(int)">path</a>, <a href="../../../../org/codehaus/jackson/node/ValueNode.html#path(java.lang.String)">path</a>, <a href="../../../../org/codehaus/jackson/node/ValueNode.html#serializeWithType(org.codehaus.jackson.JsonGenerator, org.codehaus.jackson.map.SerializerProvider, org.codehaus.jackson.map.TypeSerializer)">serializeWithType</a>, <a href="../../../../org/codehaus/jackson/node/ValueNode.html#toString()">toString</a></code></li>
281</ul>
282<ul class="blockList">
283<li class="blockList"><a name="methods_inherited_from_class_org.codehaus.jackson.node.BaseJsonNode">
284<!--   -->
285</a>
286<h3>Methods inherited from class&nbsp;org.codehaus.jackson.node.<a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html" title="class in org.codehaus.jackson.node">BaseJsonNode</a></h3>
287<code><a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html#findParent(java.lang.String)">findParent</a>, <a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html#findParents(java.lang.String, java.util.List)">findParents</a>, <a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html#findPath(java.lang.String)">findPath</a>, <a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html#findValue(java.lang.String)">findValue</a>, <a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html#findValues(java.lang.String, java.util.List)">findValues</a>, <a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html#findValuesAsText(java.lang.String, java.util.List)">findValuesAsText</a>, <a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html#traverse()">traverse</a></code></li>
288</ul>
289<ul class="blockList">
290<li class="blockList"><a name="methods_inherited_from_class_org.codehaus.jackson.JsonNode">
291<!--   -->
292</a>
293<h3>Methods inherited from class&nbsp;org.codehaus.jackson.<a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></h3>
294<code><a href="../../../../org/codehaus/jackson/JsonNode.html#asBoolean()">asBoolean</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#findParents(java.lang.String)">findParents</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#findValues(java.lang.String)">findValues</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#findValuesAsText(java.lang.String)">findValuesAsText</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#get(int)">get</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#get(java.lang.String)">get</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getBinaryValue()">getBinaryValue</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getBooleanValue()">getBooleanValue</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getElements()">getElements</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getFieldNames()">getFieldNames</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getFields()">getFields</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getPath(int)">getPath</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getPath(java.lang.String)">getPath</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getTextValue()">getTextValue</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getValueAsBoolean()">getValueAsBoolean</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getValueAsBoolean(boolean)">getValueAsBoolean</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getValueAsDouble()">getValueAsDouble</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getValueAsDouble(double)">getValueAsDouble</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getValueAsInt()">getValueAsInt</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getValueAsInt(int)">getValueAsInt</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getValueAsLong()">getValueAsLong</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getValueAsLong(long)">getValueAsLong</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getValueAsText()">getValueAsText</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#has(int)">has</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#has(java.lang.String)">has</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#isArray()">isArray</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#isBigDecimal()">isBigDecimal</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#isBigInteger()">isBigInteger</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#isBinary()">isBinary</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#isBoolean()">isBoolean</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#isContainerNode()">isContainerNode</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#isDouble()">isDouble</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#isFloatingPointNumber()">isFloatingPointNumber</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#isLong()">isLong</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#isMissingNode()">isMissingNode</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#isNull()">isNull</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#isObject()">isObject</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#isPojo()">isPojo</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#isTextual()">isTextual</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#iterator()">iterator</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#size()">size</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#with(java.lang.String)">with</a></code></li>
295</ul>
296<ul class="blockList">
297<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
298<!--   -->
299</a>
300<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>
301<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>
302</ul>
303</li>
304</ul>
305</li>
306</ul>
307</div>
308<div class="details">
309<ul class="blockList">
310<li class="blockList">
311<!-- ========= CONSTRUCTOR DETAIL ======== -->
312<ul class="blockList">
313<li class="blockList"><a name="constructor_detail">
314<!--   -->
315</a>
316<h3>Constructor Detail</h3>
317<a name="IntNode(int)">
318<!--   -->
319</a>
320<ul class="blockListLast">
321<li class="blockList">
322<h4>IntNode</h4>
323<pre>public&nbsp;IntNode(int&nbsp;v)</pre>
324</li>
325</ul>
326</li>
327</ul>
328<!-- ============ METHOD DETAIL ========== -->
329<ul class="blockList">
330<li class="blockList"><a name="method_detail">
331<!--   -->
332</a>
333<h3>Method Detail</h3>
334<a name="valueOf(int)">
335<!--   -->
336</a>
337<ul class="blockList">
338<li class="blockList">
339<h4>valueOf</h4>
340<pre>public static&nbsp;<a href="../../../../org/codehaus/jackson/node/IntNode.html" title="class in org.codehaus.jackson.node">IntNode</a>&nbsp;valueOf(int&nbsp;i)</pre>
341</li>
342</ul>
343<a name="asToken()">
344<!--   -->
345</a>
346<ul class="blockList">
347<li class="blockList">
348<h4>asToken</h4>
349<pre>public&nbsp;<a href="../../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a>&nbsp;asToken()</pre>
350<div class="block"><strong>Description copied from class:&nbsp;<code><a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html#asToken()">BaseJsonNode</a></code></strong></div>
351<div class="block">Method that can be used for efficient type detection
352 when using stream abstraction for traversing nodes.
353 Will return the first <a href="../../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson"><code>JsonToken</code></a> that equivalent
354 stream event would produce (for most nodes there is just
355 one token but for structured/container types multiple)</div>
356<dl>
357<dt><strong>Specified by:</strong></dt>
358<dd><code><a href="../../../../org/codehaus/jackson/node/ValueNode.html#asToken()">asToken</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/codehaus/jackson/node/ValueNode.html" title="class in org.codehaus.jackson.node">ValueNode</a></code></dd>
359</dl>
360</li>
361</ul>
362<a name="getNumberType()">
363<!--   -->
364</a>
365<ul class="blockList">
366<li class="blockList">
367<h4>getNumberType</h4>
368<pre>public&nbsp;<a href="../../../../org/codehaus/jackson/JsonParser.NumberType.html" title="enum in org.codehaus.jackson">JsonParser.NumberType</a>&nbsp;getNumberType()</pre>
369<div class="block"><strong>Description copied from class:&nbsp;<code><a href="../../../../org/codehaus/jackson/JsonNode.html#getNumberType()">JsonNode</a></code></strong></div>
370<div class="block">If this node is a numeric type (as per <a href="../../../../org/codehaus/jackson/JsonNode.html#isNumber()"><code>JsonNode.isNumber()</code></a>),
371 returns native type that node uses to store the numeric
372 value.</div>
373<dl>
374<dt><strong>Specified by:</strong></dt>
375<dd><code><a href="../../../../org/codehaus/jackson/node/NumericNode.html#getNumberType()">getNumberType</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/codehaus/jackson/node/NumericNode.html" title="class in org.codehaus.jackson.node">NumericNode</a></code></dd>
376</dl>
377</li>
378</ul>
379<a name="isIntegralNumber()">
380<!--   -->
381</a>
382<ul class="blockList">
383<li class="blockList">
384<h4>isIntegralNumber</h4>
385<pre>public&nbsp;boolean&nbsp;isIntegralNumber()</pre>
386<dl>
387<dt><strong>Overrides:</strong></dt>
388<dd><code><a href="../../../../org/codehaus/jackson/JsonNode.html#isIntegralNumber()">isIntegralNumber</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></code></dd>
389<dt><span class="strong">Returns:</span></dt><dd>True if this node represents an integral (integer)
390   numeric Json value</dd></dl>
391</li>
392</ul>
393<a name="isInt()">
394<!--   -->
395</a>
396<ul class="blockList">
397<li class="blockList">
398<h4>isInt</h4>
399<pre>public&nbsp;boolean&nbsp;isInt()</pre>
400<dl>
401<dt><strong>Overrides:</strong></dt>
402<dd><code><a href="../../../../org/codehaus/jackson/JsonNode.html#isInt()">isInt</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></code></dd>
403<dt><span class="strong">Returns:</span></dt><dd>True if this node represents an integral
404   numeric Json value that withs in Java int value space</dd></dl>
405</li>
406</ul>
407<a name="getNumberValue()">
408<!--   -->
409</a>
410<ul class="blockList">
411<li class="blockList">
412<h4>getNumberValue</h4>
413<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;getNumberValue()</pre>
414<div class="block"><strong>Description copied from class:&nbsp;<code><a href="../../../../org/codehaus/jackson/JsonNode.html#getNumberValue()">JsonNode</a></code></strong></div>
415<div class="block">Returns numeric value for this node, <b>if and only if</b>
416 this node is numeric (<a href="../../../../org/codehaus/jackson/JsonNode.html#isNumber()"><code>JsonNode.isNumber()</code></a> returns true); otherwise
417 returns null</div>
418<dl>
419<dt><strong>Specified by:</strong></dt>
420<dd><code><a href="../../../../org/codehaus/jackson/node/NumericNode.html#getNumberValue()">getNumberValue</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/codehaus/jackson/node/NumericNode.html" title="class in org.codehaus.jackson.node">NumericNode</a></code></dd>
421<dt><span class="strong">Returns:</span></dt><dd>Number value this node contains, if any (null for non-number
422   nodes).</dd></dl>
423</li>
424</ul>
425<a name="getIntValue()">
426<!--   -->
427</a>
428<ul class="blockList">
429<li class="blockList">
430<h4>getIntValue</h4>
431<pre>public&nbsp;int&nbsp;getIntValue()</pre>
432<div class="block"><strong>Description copied from class:&nbsp;<code><a href="../../../../org/codehaus/jackson/JsonNode.html#getIntValue()">JsonNode</a></code></strong></div>
433<div class="block">Returns integer value for this node, <b>if and only if</b>
434 this node is numeric (<a href="../../../../org/codehaus/jackson/JsonNode.html#isNumber()"><code>JsonNode.isNumber()</code></a> returns true). For other
435 types returns 0.
436 For floating-point numbers, value is truncated using default
437 Java coercion, similar to how cast from double to int operates.</div>
438<dl>
439<dt><strong>Specified by:</strong></dt>
440<dd><code><a href="../../../../org/codehaus/jackson/node/NumericNode.html#getIntValue()">getIntValue</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/codehaus/jackson/node/NumericNode.html" title="class in org.codehaus.jackson.node">NumericNode</a></code></dd>
441<dt><span class="strong">Returns:</span></dt><dd>Integer value this node contains, if any; 0 for non-number
442   nodes.</dd></dl>
443</li>
444</ul>
445<a name="getLongValue()">
446<!--   -->
447</a>
448<ul class="blockList">
449<li class="blockList">
450<h4>getLongValue</h4>
451<pre>public&nbsp;long&nbsp;getLongValue()</pre>
452<dl>
453<dt><strong>Specified by:</strong></dt>
454<dd><code><a href="../../../../org/codehaus/jackson/node/NumericNode.html#getLongValue()">getLongValue</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/codehaus/jackson/node/NumericNode.html" title="class in org.codehaus.jackson.node">NumericNode</a></code></dd>
455</dl>
456</li>
457</ul>
458<a name="getDoubleValue()">
459<!--   -->
460</a>
461<ul class="blockList">
462<li class="blockList">
463<h4>getDoubleValue</h4>
464<pre>public&nbsp;double&nbsp;getDoubleValue()</pre>
465<dl>
466<dt><strong>Specified by:</strong></dt>
467<dd><code><a href="../../../../org/codehaus/jackson/node/NumericNode.html#getDoubleValue()">getDoubleValue</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/codehaus/jackson/node/NumericNode.html" title="class in org.codehaus.jackson.node">NumericNode</a></code></dd>
468</dl>
469</li>
470</ul>
471<a name="getDecimalValue()">
472<!--   -->
473</a>
474<ul class="blockList">
475<li class="blockList">
476<h4>getDecimalValue</h4>
477<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;getDecimalValue()</pre>
478<dl>
479<dt><strong>Specified by:</strong></dt>
480<dd><code><a href="../../../../org/codehaus/jackson/node/NumericNode.html#getDecimalValue()">getDecimalValue</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/codehaus/jackson/node/NumericNode.html" title="class in org.codehaus.jackson.node">NumericNode</a></code></dd>
481</dl>
482</li>
483</ul>
484<a name="getBigIntegerValue()">
485<!--   -->
486</a>
487<ul class="blockList">
488<li class="blockList">
489<h4>getBigIntegerValue</h4>
490<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;getBigIntegerValue()</pre>
491<dl>
492<dt><strong>Specified by:</strong></dt>
493<dd><code><a href="../../../../org/codehaus/jackson/node/NumericNode.html#getBigIntegerValue()">getBigIntegerValue</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/codehaus/jackson/node/NumericNode.html" title="class in org.codehaus.jackson.node">NumericNode</a></code></dd>
494</dl>
495</li>
496</ul>
497<a name="asText()">
498<!--   -->
499</a>
500<ul class="blockList">
501<li class="blockList">
502<h4>asText</h4>
503<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>
504<div class="block"><strong>Description copied from class:&nbsp;<code><a href="../../../../org/codehaus/jackson/JsonNode.html#asText()">JsonNode</a></code></strong></div>
505<div class="block">Method that will return valid String representation of
506 the container value, if the node is a value node
507 (method <a href="../../../../org/codehaus/jackson/JsonNode.html#isValueNode()"><code>JsonNode.isValueNode()</code></a> returns true), otherwise
508 empty String.</div>
509<dl>
510<dt><strong>Specified by:</strong></dt>
511<dd><code><a href="../../../../org/codehaus/jackson/node/NumericNode.html#asText()">asText</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/codehaus/jackson/node/NumericNode.html" title="class in org.codehaus.jackson.node">NumericNode</a></code></dd>
512</dl>
513</li>
514</ul>
515<a name="asBoolean(boolean)">
516<!--   -->
517</a>
518<ul class="blockList">
519<li class="blockList">
520<h4>asBoolean</h4>
521<pre>public&nbsp;boolean&nbsp;asBoolean(boolean&nbsp;defaultValue)</pre>
522<div class="block"><strong>Description copied from class:&nbsp;<code><a href="../../../../org/codehaus/jackson/JsonNode.html#asBoolean(boolean)">JsonNode</a></code></strong></div>
523<div class="block">Method that will try to convert value of this node to a Java <b>boolean</b>.
524 JSON booleans map naturally; integer numbers other than 0 map to true, and
525 0 maps to false
526 and Strings 'true' and 'false' map to corresponding values.
527<p>
528 If representation can not be converted to a boolean value (including structured types
529 like Objects and Arrays),
530 specified <b>defaultValue</b> will be returned; no exceptions are thrown.</div>
531<dl>
532<dt><strong>Overrides:</strong></dt>
533<dd><code><a href="../../../../org/codehaus/jackson/JsonNode.html#asBoolean(boolean)">asBoolean</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></code></dd>
534</dl>
535</li>
536</ul>
537<a name="serialize(org.codehaus.jackson.JsonGenerator, org.codehaus.jackson.map.SerializerProvider)">
538<!--   -->
539</a>
540<ul class="blockList">
541<li class="blockList">
542<h4>serialize</h4>
543<pre>public final&nbsp;void&nbsp;serialize(<a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a>&nbsp;jg,
544             <a href="../../../../org/codehaus/jackson/map/SerializerProvider.html" title="class in org.codehaus.jackson.map">SerializerProvider</a>&nbsp;provider)
545                     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>,
546                            <a href="../../../../org/codehaus/jackson/JsonProcessingException.html" title="class in org.codehaus.jackson">JsonProcessingException</a></pre>
547<div class="block"><strong>Description copied from class:&nbsp;<code><a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html#serialize(org.codehaus.jackson.JsonGenerator, org.codehaus.jackson.map.SerializerProvider)">BaseJsonNode</a></code></strong></div>
548<div class="block">Method called to serialize node instances using given generator.</div>
549<dl>
550<dt><strong>Specified by:</strong></dt>
551<dd><code><a href="../../../../org/codehaus/jackson/map/JsonSerializable.html#serialize(org.codehaus.jackson.JsonGenerator, org.codehaus.jackson.map.SerializerProvider)">serialize</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/codehaus/jackson/map/JsonSerializable.html" title="interface in org.codehaus.jackson.map">JsonSerializable</a></code></dd>
552<dt><strong>Specified by:</strong></dt>
553<dd><code><a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html#serialize(org.codehaus.jackson.JsonGenerator, org.codehaus.jackson.map.SerializerProvider)">serialize</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html" title="class in org.codehaus.jackson.node">BaseJsonNode</a></code></dd>
554<dt><span class="strong">Throws:</span></dt>
555<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>
556<dd><code><a href="../../../../org/codehaus/jackson/JsonProcessingException.html" title="class in org.codehaus.jackson">JsonProcessingException</a></code></dd></dl>
557</li>
558</ul>
559<a name="equals(java.lang.Object)">
560<!--   -->
561</a>
562<ul class="blockList">
563<li class="blockList">
564<h4>equals</h4>
565<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>
566<div class="block"><strong>Description copied from class:&nbsp;<code><a href="../../../../org/codehaus/jackson/JsonNode.html#equals(java.lang.Object)">JsonNode</a></code></strong></div>
567<div class="block">Equality for node objects is defined as full (deep) value
568 equality. This means that it is possible to compare complete
569 JSON trees for equality by comparing equality of root nodes.
570<p>
571 Note: marked as abstract to ensure all implementation
572 classes define it properly and not rely on definition
573 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>
574<dl>
575<dt><strong>Specified by:</strong></dt>
576<dd><code><a href="../../../../org/codehaus/jackson/JsonNode.html#equals(java.lang.Object)">equals</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></code></dd>
577</dl>
578</li>
579</ul>
580<a name="hashCode()">
581<!--   -->
582</a>
583<ul class="blockListLast">
584<li class="blockList">
585<h4>hashCode</h4>
586<pre>public&nbsp;int&nbsp;hashCode()</pre>
587<dl>
588<dt><strong>Overrides:</strong></dt>
589<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>
590</dl>
591</li>
592</ul>
593</li>
594</ul>
595</li>
596</ul>
597</div>
598</div>
599<!-- ========= END OF CLASS DATA ========= -->
600<!-- ======= START OF BOTTOM NAVBAR ====== -->
601<div class="bottomNav"><a name="navbar_bottom">
602<!--   -->
603</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
604<!--   -->
605</a>
606<ul class="navList" title="Navigation">
607<li><a href="../../../../overview-summary.html">Overview</a></li>
608<li><a href="package-summary.html">Package</a></li>
609<li class="navBarCell1Rev">Class</li>
610<li><a href="class-use/IntNode.html">Use</a></li>
611<li><a href="package-tree.html">Tree</a></li>
612<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
613<li><a href="../../../../index-all.html">Index</a></li>
614<li><a href="../../../../help-doc.html">Help</a></li>
615</ul>
616</div>
617<div class="subNav">
618<ul class="navList">
619<li><a href="../../../../org/codehaus/jackson/node/DoubleNode.html" title="class in org.codehaus.jackson.node"><span class="strong">Prev Class</span></a></li>
620<li><a href="../../../../org/codehaus/jackson/node/JsonNodeFactory.html" title="class in org.codehaus.jackson.node"><span class="strong">Next Class</span></a></li>
621</ul>
622<ul class="navList">
623<li><a href="../../../../index.html?org/codehaus/jackson/node/IntNode.html" target="_top">Frames</a></li>
624<li><a href="IntNode.html" target="_top">No Frames</a></li>
625</ul>
626<ul class="navList" id="allclasses_navbar_bottom">
627<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
628</ul>
629<div>
630<script type="text/javascript"><!--
631  allClassesLink = document.getElementById("allclasses_navbar_bottom");
632  if(window==top) {
633    allClassesLink.style.display = "block";
634  }
635  else {
636    allClassesLink.style.display = "none";
637  }
638  //-->
639</script>
640</div>
641<div>
642<ul class="subNavList">
643<li>Summary:&nbsp;</li>
644<li>Nested&nbsp;|&nbsp;</li>
645<li><a href="#fields_inherited_from_class_org.codehaus.jackson.JsonNode">Field</a>&nbsp;|&nbsp;</li>
646<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
647<li><a href="#method_summary">Method</a></li>
648</ul>
649<ul class="subNavList">
650<li>Detail:&nbsp;</li>
651<li>Field&nbsp;|&nbsp;</li>
652<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
653<li><a href="#method_detail">Method</a></li>
654</ul>
655</div>
656<a name="skip-navbar_bottom">
657<!--   -->
658</a></div>
659<!-- ======== END OF BOTTOM NAVBAR ======= -->
660</body>
661</html>
662