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>NumericNode (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="NumericNode (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/NumericNode.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/NullNode.html" title="class in org.codehaus.jackson.node"><span class="strong">Prev Class</span></a></li> 40<li><a href="../../../../org/codehaus/jackson/node/ObjectNode.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/NumericNode.html" target="_top">Frames</a></li> 44<li><a href="NumericNode.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: </li> 64<li>Nested | </li> 65<li><a href="#fields_inherited_from_class_org.codehaus.jackson.JsonNode">Field</a> | </li> 66<li><a href="#constructor_summary">Constr</a> | </li> 67<li><a href="#method_summary">Method</a></li> 68</ul> 69<ul class="subNavList"> 70<li>Detail: </li> 71<li>Field | </li> 72<li><a href="#constructor_detail">Constr</a> | </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 NumericNode" class="title">Class NumericNode</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>org.codehaus.jackson.node.NumericNode</li> 100</ul> 101</li> 102</ul> 103</li> 104</ul> 105</li> 106</ul> 107</li> 108</ul> 109<div class="description"> 110<ul class="blockList"> 111<li class="blockList"> 112<dl> 113<dt>All Implemented Interfaces:</dt> 114<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><<a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a>>, <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> 115</dl> 116<dl> 117<dt>Direct Known Subclasses:</dt> 118<dd><a href="../../../../org/codehaus/jackson/node/BigIntegerNode.html" title="class in org.codehaus.jackson.node">BigIntegerNode</a>, <a href="../../../../org/codehaus/jackson/node/DecimalNode.html" title="class in org.codehaus.jackson.node">DecimalNode</a>, <a href="../../../../org/codehaus/jackson/node/DoubleNode.html" title="class in org.codehaus.jackson.node">DoubleNode</a>, <a href="../../../../org/codehaus/jackson/node/IntNode.html" title="class in org.codehaus.jackson.node">IntNode</a>, <a href="../../../../org/codehaus/jackson/node/LongNode.html" title="class in org.codehaus.jackson.node">LongNode</a></dd> 119</dl> 120<hr> 121<br> 122<pre>public abstract class <span class="strong">NumericNode</span> 123extends <a href="../../../../org/codehaus/jackson/node/ValueNode.html" title="class in org.codehaus.jackson.node">ValueNode</a></pre> 124<div class="block">Intermediate value node used for numeric nodes.</div> 125</li> 126</ul> 127</div> 128<div class="summary"> 129<ul class="blockList"> 130<li class="blockList"> 131<!-- =========== FIELD SUMMARY =========== --> 132<ul class="blockList"> 133<li class="blockList"><a name="field_summary"> 134<!-- --> 135</a> 136<h3>Field Summary</h3> 137<ul class="blockList"> 138<li class="blockList"><a name="fields_inherited_from_class_org.codehaus.jackson.JsonNode"> 139<!-- --> 140</a> 141<h3>Fields inherited from class org.codehaus.jackson.<a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></h3> 142<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> 143</ul> 144</li> 145</ul> 146<!-- ======== CONSTRUCTOR SUMMARY ======== --> 147<ul class="blockList"> 148<li class="blockList"><a name="constructor_summary"> 149<!-- --> 150</a> 151<h3>Constructor Summary</h3> 152<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> 153<caption><span>Constructors</span><span class="tabEnd"> </span></caption> 154<tr> 155<th class="colFirst" scope="col">Modifier</th> 156<th class="colLast" scope="col">Constructor and Description</th> 157</tr> 158<tr class="altColor"> 159<td class="colFirst"><code>protected </code></td> 160<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/NumericNode.html#NumericNode()">NumericNode</a></strong>()</code> </td> 161</tr> 162</table> 163</li> 164</ul> 165<!-- ========== METHOD SUMMARY =========== --> 166<ul class="blockList"> 167<li class="blockList"><a name="method_summary"> 168<!-- --> 169</a> 170<h3>Method Summary</h3> 171<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> 172<caption><span>Methods</span><span class="tabEnd"> </span></caption> 173<tr> 174<th class="colFirst" scope="col">Modifier and Type</th> 175<th class="colLast" scope="col">Method and Description</th> 176</tr> 177<tr class="altColor"> 178<td class="colFirst"><code>double</code></td> 179<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/NumericNode.html#asDouble()">asDouble</a></strong>()</code> 180<div class="block">Method that will try to convert value of this node to a Java <b>double</b>.</div> 181</td> 182</tr> 183<tr class="rowColor"> 184<td class="colFirst"><code>double</code></td> 185<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/NumericNode.html#asDouble(double)">asDouble</a></strong>(double defaultValue)</code> 186<div class="block">Method that will try to convert value of this node to a Java <b>double</b>.</div> 187</td> 188</tr> 189<tr class="altColor"> 190<td class="colFirst"><code>int</code></td> 191<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/NumericNode.html#asInt()">asInt</a></strong>()</code> 192<div class="block">Method that will try to convert value of this node to a Java <b>int</b>.</div> 193</td> 194</tr> 195<tr class="rowColor"> 196<td class="colFirst"><code>int</code></td> 197<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/NumericNode.html#asInt(int)">asInt</a></strong>(int defaultValue)</code> 198<div class="block">Method that will try to convert value of this node to a Java <b>int</b>.</div> 199</td> 200</tr> 201<tr class="altColor"> 202<td class="colFirst"><code>long</code></td> 203<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/NumericNode.html#asLong()">asLong</a></strong>()</code> 204<div class="block">Method that will try to convert value of this node to a Java <b>long</b>.</div> 205</td> 206</tr> 207<tr class="rowColor"> 208<td class="colFirst"><code>long</code></td> 209<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/NumericNode.html#asLong(long)">asLong</a></strong>(long defaultValue)</code> 210<div class="block">Method that will try to convert value of this node to a Java <b>long</b>.</div> 211</td> 212</tr> 213<tr class="altColor"> 214<td class="colFirst"><code>abstract <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> 215<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/NumericNode.html#asText()">asText</a></strong>()</code> 216<div class="block">Method that will return valid String representation of 217 the container value, if the node is a value node 218 (method <a href="../../../../org/codehaus/jackson/JsonNode.html#isValueNode()"><code>JsonNode.isValueNode()</code></a> returns true), otherwise 219 empty String.</div> 220</td> 221</tr> 222<tr class="rowColor"> 223<td class="colFirst"><code>abstract <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> 224<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/NumericNode.html#getBigIntegerValue()">getBigIntegerValue</a></strong>()</code> </td> 225</tr> 226<tr class="altColor"> 227<td class="colFirst"><code>abstract <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> 228<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/NumericNode.html#getDecimalValue()">getDecimalValue</a></strong>()</code> </td> 229</tr> 230<tr class="rowColor"> 231<td class="colFirst"><code>abstract double</code></td> 232<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/NumericNode.html#getDoubleValue()">getDoubleValue</a></strong>()</code> </td> 233</tr> 234<tr class="altColor"> 235<td class="colFirst"><code>abstract int</code></td> 236<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/NumericNode.html#getIntValue()">getIntValue</a></strong>()</code> 237<div class="block">Returns integer value for this node, <b>if and only if</b> 238 this node is numeric (<a href="../../../../org/codehaus/jackson/JsonNode.html#isNumber()"><code>JsonNode.isNumber()</code></a> returns true).</div> 239</td> 240</tr> 241<tr class="rowColor"> 242<td class="colFirst"><code>abstract long</code></td> 243<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/NumericNode.html#getLongValue()">getLongValue</a></strong>()</code> </td> 244</tr> 245<tr class="altColor"> 246<td class="colFirst"><code>abstract <a href="../../../../org/codehaus/jackson/JsonParser.NumberType.html" title="enum in org.codehaus.jackson">JsonParser.NumberType</a></code></td> 247<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/NumericNode.html#getNumberType()">getNumberType</a></strong>()</code> 248<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>), 249 returns native type that node uses to store the numeric 250 value.</div> 251</td> 252</tr> 253<tr class="rowColor"> 254<td class="colFirst"><code>abstract <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> 255<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/NumericNode.html#getNumberValue()">getNumberValue</a></strong>()</code> 256<div class="block">Returns numeric value for this node, <b>if and only if</b> 257 this node is numeric (<a href="../../../../org/codehaus/jackson/JsonNode.html#isNumber()"><code>JsonNode.isNumber()</code></a> returns true); otherwise 258 returns null</div> 259</td> 260</tr> 261<tr class="altColor"> 262<td class="colFirst"><code>boolean</code></td> 263<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/NumericNode.html#isNumber()">isNumber</a></strong>()</code> </td> 264</tr> 265</table> 266<ul class="blockList"> 267<li class="blockList"><a name="methods_inherited_from_class_org.codehaus.jackson.node.ValueNode"> 268<!-- --> 269</a> 270<h3>Methods inherited from class org.codehaus.jackson.node.<a href="../../../../org/codehaus/jackson/node/ValueNode.html" title="class in org.codehaus.jackson.node">ValueNode</a></h3> 271<code><a href="../../../../org/codehaus/jackson/node/ValueNode.html#asToken()">asToken</a>, <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> 272</ul> 273<ul class="blockList"> 274<li class="blockList"><a name="methods_inherited_from_class_org.codehaus.jackson.node.BaseJsonNode"> 275<!-- --> 276</a> 277<h3>Methods inherited from class org.codehaus.jackson.node.<a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html" title="class in org.codehaus.jackson.node">BaseJsonNode</a></h3> 278<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#serialize(org.codehaus.jackson.JsonGenerator, org.codehaus.jackson.map.SerializerProvider)">serialize</a>, <a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html#traverse()">traverse</a></code></li> 279</ul> 280<ul class="blockList"> 281<li class="blockList"><a name="methods_inherited_from_class_org.codehaus.jackson.JsonNode"> 282<!-- --> 283</a> 284<h3>Methods inherited from class org.codehaus.jackson.<a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></h3> 285<code><a href="../../../../org/codehaus/jackson/JsonNode.html#asBoolean()">asBoolean</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#asBoolean(boolean)">asBoolean</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#equals(java.lang.Object)">equals</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#isInt()">isInt</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#isIntegralNumber()">isIntegralNumber</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> 286</ul> 287<ul class="blockList"> 288<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> 289<!-- --> 290</a> 291<h3>Methods inherited from class 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> 292<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#hashCode()" title="class or interface in java.lang">hashCode</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> 293</ul> 294</li> 295</ul> 296</li> 297</ul> 298</div> 299<div class="details"> 300<ul class="blockList"> 301<li class="blockList"> 302<!-- ========= CONSTRUCTOR DETAIL ======== --> 303<ul class="blockList"> 304<li class="blockList"><a name="constructor_detail"> 305<!-- --> 306</a> 307<h3>Constructor Detail</h3> 308<a name="NumericNode()"> 309<!-- --> 310</a> 311<ul class="blockListLast"> 312<li class="blockList"> 313<h4>NumericNode</h4> 314<pre>protected NumericNode()</pre> 315</li> 316</ul> 317</li> 318</ul> 319<!-- ============ METHOD DETAIL ========== --> 320<ul class="blockList"> 321<li class="blockList"><a name="method_detail"> 322<!-- --> 323</a> 324<h3>Method Detail</h3> 325<a name="isNumber()"> 326<!-- --> 327</a> 328<ul class="blockList"> 329<li class="blockList"> 330<h4>isNumber</h4> 331<pre>public final boolean isNumber()</pre> 332<dl> 333<dt><strong>Overrides:</strong></dt> 334<dd><code><a href="../../../../org/codehaus/jackson/JsonNode.html#isNumber()">isNumber</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></code></dd> 335<dt><span class="strong">Returns:</span></dt><dd>True if this node represents a numeric Json 336 value</dd></dl> 337</li> 338</ul> 339<a name="getNumberType()"> 340<!-- --> 341</a> 342<ul class="blockList"> 343<li class="blockList"> 344<h4>getNumberType</h4> 345<pre>public abstract <a href="../../../../org/codehaus/jackson/JsonParser.NumberType.html" title="enum in org.codehaus.jackson">JsonParser.NumberType</a> getNumberType()</pre> 346<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonNode.html#getNumberType()">JsonNode</a></code></strong></div> 347<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>), 348 returns native type that node uses to store the numeric 349 value.</div> 350<dl> 351<dt><strong>Overrides:</strong></dt> 352<dd><code><a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html#getNumberType()">getNumberType</a></code> in class <code><a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html" title="class in org.codehaus.jackson.node">BaseJsonNode</a></code></dd> 353</dl> 354</li> 355</ul> 356<a name="getNumberValue()"> 357<!-- --> 358</a> 359<ul class="blockList"> 360<li class="blockList"> 361<h4>getNumberValue</h4> 362<pre>public abstract <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> getNumberValue()</pre> 363<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonNode.html#getNumberValue()">JsonNode</a></code></strong></div> 364<div class="block">Returns numeric value for this node, <b>if and only if</b> 365 this node is numeric (<a href="../../../../org/codehaus/jackson/JsonNode.html#isNumber()"><code>JsonNode.isNumber()</code></a> returns true); otherwise 366 returns null</div> 367<dl> 368<dt><strong>Overrides:</strong></dt> 369<dd><code><a href="../../../../org/codehaus/jackson/JsonNode.html#getNumberValue()">getNumberValue</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></code></dd> 370<dt><span class="strong">Returns:</span></dt><dd>Number value this node contains, if any (null for non-number 371 nodes).</dd></dl> 372</li> 373</ul> 374<a name="getIntValue()"> 375<!-- --> 376</a> 377<ul class="blockList"> 378<li class="blockList"> 379<h4>getIntValue</h4> 380<pre>public abstract int getIntValue()</pre> 381<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonNode.html#getIntValue()">JsonNode</a></code></strong></div> 382<div class="block">Returns integer value for this node, <b>if and only if</b> 383 this node is numeric (<a href="../../../../org/codehaus/jackson/JsonNode.html#isNumber()"><code>JsonNode.isNumber()</code></a> returns true). For other 384 types returns 0. 385 For floating-point numbers, value is truncated using default 386 Java coercion, similar to how cast from double to int operates.</div> 387<dl> 388<dt><strong>Overrides:</strong></dt> 389<dd><code><a href="../../../../org/codehaus/jackson/JsonNode.html#getIntValue()">getIntValue</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></code></dd> 390<dt><span class="strong">Returns:</span></dt><dd>Integer value this node contains, if any; 0 for non-number 391 nodes.</dd></dl> 392</li> 393</ul> 394<a name="getLongValue()"> 395<!-- --> 396</a> 397<ul class="blockList"> 398<li class="blockList"> 399<h4>getLongValue</h4> 400<pre>public abstract long getLongValue()</pre> 401<dl> 402<dt><strong>Overrides:</strong></dt> 403<dd><code><a href="../../../../org/codehaus/jackson/JsonNode.html#getLongValue()">getLongValue</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></code></dd> 404</dl> 405</li> 406</ul> 407<a name="getDoubleValue()"> 408<!-- --> 409</a> 410<ul class="blockList"> 411<li class="blockList"> 412<h4>getDoubleValue</h4> 413<pre>public abstract double getDoubleValue()</pre> 414<dl> 415<dt><strong>Overrides:</strong></dt> 416<dd><code><a href="../../../../org/codehaus/jackson/JsonNode.html#getDoubleValue()">getDoubleValue</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></code></dd> 417</dl> 418</li> 419</ul> 420<a name="getDecimalValue()"> 421<!-- --> 422</a> 423<ul class="blockList"> 424<li class="blockList"> 425<h4>getDecimalValue</h4> 426<pre>public abstract <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> getDecimalValue()</pre> 427<dl> 428<dt><strong>Overrides:</strong></dt> 429<dd><code><a href="../../../../org/codehaus/jackson/JsonNode.html#getDecimalValue()">getDecimalValue</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></code></dd> 430</dl> 431</li> 432</ul> 433<a name="getBigIntegerValue()"> 434<!-- --> 435</a> 436<ul class="blockList"> 437<li class="blockList"> 438<h4>getBigIntegerValue</h4> 439<pre>public abstract <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> getBigIntegerValue()</pre> 440<dl> 441<dt><strong>Overrides:</strong></dt> 442<dd><code><a href="../../../../org/codehaus/jackson/JsonNode.html#getBigIntegerValue()">getBigIntegerValue</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></code></dd> 443</dl> 444</li> 445</ul> 446<a name="asText()"> 447<!-- --> 448</a> 449<ul class="blockList"> 450<li class="blockList"> 451<h4>asText</h4> 452<pre>public abstract <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> asText()</pre> 453<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonNode.html#asText()">JsonNode</a></code></strong></div> 454<div class="block">Method that will return valid String representation of 455 the container value, if the node is a value node 456 (method <a href="../../../../org/codehaus/jackson/JsonNode.html#isValueNode()"><code>JsonNode.isValueNode()</code></a> returns true), otherwise 457 empty String.</div> 458<dl> 459<dt><strong>Specified by:</strong></dt> 460<dd><code><a href="../../../../org/codehaus/jackson/JsonNode.html#asText()">asText</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></code></dd> 461</dl> 462</li> 463</ul> 464<a name="asInt()"> 465<!-- --> 466</a> 467<ul class="blockList"> 468<li class="blockList"> 469<h4>asInt</h4> 470<pre>public int asInt()</pre> 471<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonNode.html#asInt()">JsonNode</a></code></strong></div> 472<div class="block">Method that will try to convert value of this node to a Java <b>int</b>. 473 Numbers are coerced using default Java rules; booleans convert to 0 (false) 474 and 1 (true), and Strings are parsed using default Java language integer 475 parsing rules. 476<p> 477 If representation can not be converted to an int (including structured types 478 like Objects and Arrays), 479 default value of <b>0</b> will be returned; no exceptions are thrown.</div> 480<dl> 481<dt><strong>Overrides:</strong></dt> 482<dd><code><a href="../../../../org/codehaus/jackson/JsonNode.html#asInt()">asInt</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></code></dd> 483</dl> 484</li> 485</ul> 486<a name="asInt(int)"> 487<!-- --> 488</a> 489<ul class="blockList"> 490<li class="blockList"> 491<h4>asInt</h4> 492<pre>public int asInt(int defaultValue)</pre> 493<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonNode.html#asInt(int)">JsonNode</a></code></strong></div> 494<div class="block">Method that will try to convert value of this node to a Java <b>int</b>. 495 Numbers are coerced using default Java rules; booleans convert to 0 (false) 496 and 1 (true), and Strings are parsed using default Java language integer 497 parsing rules. 498<p> 499 If representation can not be converted to an int (including structured types 500 like Objects and Arrays), 501 specified <b>defaultValue</b> will be returned; no exceptions are thrown.</div> 502<dl> 503<dt><strong>Overrides:</strong></dt> 504<dd><code><a href="../../../../org/codehaus/jackson/JsonNode.html#asInt(int)">asInt</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></code></dd> 505</dl> 506</li> 507</ul> 508<a name="asLong()"> 509<!-- --> 510</a> 511<ul class="blockList"> 512<li class="blockList"> 513<h4>asLong</h4> 514<pre>public long asLong()</pre> 515<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonNode.html#asLong()">JsonNode</a></code></strong></div> 516<div class="block">Method that will try to convert value of this node to a Java <b>long</b>. 517 Numbers are coerced using default Java rules; booleans convert to 0 (false) 518 and 1 (true), and Strings are parsed using default Java language integer 519 parsing rules. 520<p> 521 If representation can not be converted to an long (including structured types 522 like Objects and Arrays), 523 default value of <b>0</b> will be returned; no exceptions are thrown.</div> 524<dl> 525<dt><strong>Overrides:</strong></dt> 526<dd><code><a href="../../../../org/codehaus/jackson/JsonNode.html#asLong()">asLong</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></code></dd> 527</dl> 528</li> 529</ul> 530<a name="asLong(long)"> 531<!-- --> 532</a> 533<ul class="blockList"> 534<li class="blockList"> 535<h4>asLong</h4> 536<pre>public long asLong(long defaultValue)</pre> 537<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonNode.html#asLong(long)">JsonNode</a></code></strong></div> 538<div class="block">Method that will try to convert value of this node to a Java <b>long</b>. 539 Numbers are coerced using default Java rules; booleans convert to 0 (false) 540 and 1 (true), and Strings are parsed using default Java language integer 541 parsing rules. 542<p> 543 If representation can not be converted to an long (including structured types 544 like Objects and Arrays), 545 specified <b>defaultValue</b> will be returned; no exceptions are thrown.</div> 546<dl> 547<dt><strong>Overrides:</strong></dt> 548<dd><code><a href="../../../../org/codehaus/jackson/JsonNode.html#asLong(long)">asLong</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></code></dd> 549</dl> 550</li> 551</ul> 552<a name="asDouble()"> 553<!-- --> 554</a> 555<ul class="blockList"> 556<li class="blockList"> 557<h4>asDouble</h4> 558<pre>public double asDouble()</pre> 559<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonNode.html#asDouble()">JsonNode</a></code></strong></div> 560<div class="block">Method that will try to convert value of this node to a Java <b>double</b>. 561 Numbers are coerced using default Java rules; booleans convert to 0.0 (false) 562 and 1.0 (true), and Strings are parsed using default Java language integer 563 parsing rules. 564<p> 565 If representation can not be converted to an int (including structured types 566 like Objects and Arrays), 567 default value of <b>0.0</b> will be returned; no exceptions are thrown.</div> 568<dl> 569<dt><strong>Overrides:</strong></dt> 570<dd><code><a href="../../../../org/codehaus/jackson/JsonNode.html#asDouble()">asDouble</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></code></dd> 571</dl> 572</li> 573</ul> 574<a name="asDouble(double)"> 575<!-- --> 576</a> 577<ul class="blockListLast"> 578<li class="blockList"> 579<h4>asDouble</h4> 580<pre>public double asDouble(double defaultValue)</pre> 581<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonNode.html#asDouble(double)">JsonNode</a></code></strong></div> 582<div class="block">Method that will try to convert value of this node to a Java <b>double</b>. 583 Numbers are coerced using default Java rules; booleans convert to 0.0 (false) 584 and 1.0 (true), and Strings are parsed using default Java language integer 585 parsing rules. 586<p> 587 If representation can not be converted to an int (including structured types 588 like Objects and Arrays), 589 specified <b>defaultValue</b> will be returned; no exceptions are thrown.</div> 590<dl> 591<dt><strong>Overrides:</strong></dt> 592<dd><code><a href="../../../../org/codehaus/jackson/JsonNode.html#asDouble(double)">asDouble</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></code></dd> 593</dl> 594</li> 595</ul> 596</li> 597</ul> 598</li> 599</ul> 600</div> 601</div> 602<!-- ========= END OF CLASS DATA ========= --> 603<!-- ======= START OF BOTTOM NAVBAR ====== --> 604<div class="bottomNav"><a name="navbar_bottom"> 605<!-- --> 606</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> 607<!-- --> 608</a> 609<ul class="navList" title="Navigation"> 610<li><a href="../../../../overview-summary.html">Overview</a></li> 611<li><a href="package-summary.html">Package</a></li> 612<li class="navBarCell1Rev">Class</li> 613<li><a href="class-use/NumericNode.html">Use</a></li> 614<li><a href="package-tree.html">Tree</a></li> 615<li><a href="../../../../deprecated-list.html">Deprecated</a></li> 616<li><a href="../../../../index-all.html">Index</a></li> 617<li><a href="../../../../help-doc.html">Help</a></li> 618</ul> 619</div> 620<div class="subNav"> 621<ul class="navList"> 622<li><a href="../../../../org/codehaus/jackson/node/NullNode.html" title="class in org.codehaus.jackson.node"><span class="strong">Prev Class</span></a></li> 623<li><a href="../../../../org/codehaus/jackson/node/ObjectNode.html" title="class in org.codehaus.jackson.node"><span class="strong">Next Class</span></a></li> 624</ul> 625<ul class="navList"> 626<li><a href="../../../../index.html?org/codehaus/jackson/node/NumericNode.html" target="_top">Frames</a></li> 627<li><a href="NumericNode.html" target="_top">No Frames</a></li> 628</ul> 629<ul class="navList" id="allclasses_navbar_bottom"> 630<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> 631</ul> 632<div> 633<script type="text/javascript"><!-- 634 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 635 if(window==top) { 636 allClassesLink.style.display = "block"; 637 } 638 else { 639 allClassesLink.style.display = "none"; 640 } 641 //--> 642</script> 643</div> 644<div> 645<ul class="subNavList"> 646<li>Summary: </li> 647<li>Nested | </li> 648<li><a href="#fields_inherited_from_class_org.codehaus.jackson.JsonNode">Field</a> | </li> 649<li><a href="#constructor_summary">Constr</a> | </li> 650<li><a href="#method_summary">Method</a></li> 651</ul> 652<ul class="subNavList"> 653<li>Detail: </li> 654<li>Field | </li> 655<li><a href="#constructor_detail">Constr</a> | </li> 656<li><a href="#method_detail">Method</a></li> 657</ul> 658</div> 659<a name="skip-navbar_bottom"> 660<!-- --> 661</a></div> 662<!-- ======== END OF BOTTOM NAVBAR ======= --> 663</body> 664</html> 665