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>LongNode (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="LongNode (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/LongNode.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/JsonNodeFactory.html" title="class in org.codehaus.jackson.node"><span class="strong">Prev Class</span></a></li> 40<li><a href="../../../../org/codehaus/jackson/node/MissingNode.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/LongNode.html" target="_top">Frames</a></li> 44<li><a href="LongNode.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 LongNode" class="title">Class LongNode</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.LongNode</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><<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> 120</dl> 121<hr> 122<br> 123<pre>public final class <span class="strong">LongNode</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 64-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 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"> </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/LongNode.html#LongNode(long)">LongNode</a></strong>(long v)</code> </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"> </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/LongNode.html#asBoolean(boolean)">asBoolean</a></strong>(boolean 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/LongNode.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/LongNode.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/LongNode.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> 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/LongNode.html#getBigIntegerValue()">getBigIntegerValue</a></strong>()</code> </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/LongNode.html#getDecimalValue()">getDecimalValue</a></strong>()</code> </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/LongNode.html#getDoubleValue()">getDoubleValue</a></strong>()</code> </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/LongNode.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/LongNode.html#getLongValue()">getLongValue</a></strong>()</code> </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/LongNode.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/LongNode.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/LongNode.html#hashCode()">hashCode</a></strong>()</code> </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/LongNode.html#isIntegralNumber()">isIntegralNumber</a></strong>()</code> </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/LongNode.html#isLong()">isLong</a></strong>()</code> </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/LongNode.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> jg, 259 <a href="../../../../org/codehaus/jackson/map/SerializerProvider.html" title="class in org.codehaus.jackson.map">SerializerProvider</a> 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/LongNode.html" title="class in org.codehaus.jackson.node">LongNode</a></code></td> 265<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/LongNode.html#valueOf(long)">valueOf</a></strong>(long l)</code> </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 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 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 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 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#isInt()">isInt</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 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="LongNode(long)"> 318<!-- --> 319</a> 320<ul class="blockListLast"> 321<li class="blockList"> 322<h4>LongNode</h4> 323<pre>public LongNode(long 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(long)"> 335<!-- --> 336</a> 337<ul class="blockList"> 338<li class="blockList"> 339<h4>valueOf</h4> 340<pre>public static <a href="../../../../org/codehaus/jackson/node/LongNode.html" title="class in org.codehaus.jackson.node">LongNode</a> valueOf(long l)</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 <a href="../../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a> asToken()</pre> 350<div class="block"><strong>Description copied from class: <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> in class <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 <a href="../../../../org/codehaus/jackson/JsonParser.NumberType.html" title="enum in org.codehaus.jackson">JsonParser.NumberType</a> getNumberType()</pre> 369<div class="block"><strong>Description copied from class: <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> in class <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 boolean isIntegralNumber()</pre> 386<dl> 387<dt><strong>Overrides:</strong></dt> 388<dd><code><a href="../../../../org/codehaus/jackson/JsonNode.html#isIntegralNumber()">isIntegralNumber</a></code> in class <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="isLong()"> 394<!-- --> 395</a> 396<ul class="blockList"> 397<li class="blockList"> 398<h4>isLong</h4> 399<pre>public boolean isLong()</pre> 400<dl> 401<dt><strong>Overrides:</strong></dt> 402<dd><code><a href="../../../../org/codehaus/jackson/JsonNode.html#isLong()">isLong</a></code> in class <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 fits in Java long value space 405 (but not int value space, i.e. <a href="../../../../org/codehaus/jackson/JsonNode.html#isInt()"><code>JsonNode.isInt()</code></a> returns false)</dd></dl> 406</li> 407</ul> 408<a name="getNumberValue()"> 409<!-- --> 410</a> 411<ul class="blockList"> 412<li class="blockList"> 413<h4>getNumberValue</h4> 414<pre>public <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> 415<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonNode.html#getNumberValue()">JsonNode</a></code></strong></div> 416<div class="block">Returns numeric value for this node, <b>if and only if</b> 417 this node is numeric (<a href="../../../../org/codehaus/jackson/JsonNode.html#isNumber()"><code>JsonNode.isNumber()</code></a> returns true); otherwise 418 returns null</div> 419<dl> 420<dt><strong>Specified by:</strong></dt> 421<dd><code><a href="../../../../org/codehaus/jackson/node/NumericNode.html#getNumberValue()">getNumberValue</a></code> in class <code><a href="../../../../org/codehaus/jackson/node/NumericNode.html" title="class in org.codehaus.jackson.node">NumericNode</a></code></dd> 422<dt><span class="strong">Returns:</span></dt><dd>Number value this node contains, if any (null for non-number 423 nodes).</dd></dl> 424</li> 425</ul> 426<a name="getIntValue()"> 427<!-- --> 428</a> 429<ul class="blockList"> 430<li class="blockList"> 431<h4>getIntValue</h4> 432<pre>public int getIntValue()</pre> 433<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonNode.html#getIntValue()">JsonNode</a></code></strong></div> 434<div class="block">Returns integer value for this node, <b>if and only if</b> 435 this node is numeric (<a href="../../../../org/codehaus/jackson/JsonNode.html#isNumber()"><code>JsonNode.isNumber()</code></a> returns true). For other 436 types returns 0. 437 For floating-point numbers, value is truncated using default 438 Java coercion, similar to how cast from double to int operates.</div> 439<dl> 440<dt><strong>Specified by:</strong></dt> 441<dd><code><a href="../../../../org/codehaus/jackson/node/NumericNode.html#getIntValue()">getIntValue</a></code> in class <code><a href="../../../../org/codehaus/jackson/node/NumericNode.html" title="class in org.codehaus.jackson.node">NumericNode</a></code></dd> 442<dt><span class="strong">Returns:</span></dt><dd>Integer value this node contains, if any; 0 for non-number 443 nodes.</dd></dl> 444</li> 445</ul> 446<a name="getLongValue()"> 447<!-- --> 448</a> 449<ul class="blockList"> 450<li class="blockList"> 451<h4>getLongValue</h4> 452<pre>public long getLongValue()</pre> 453<dl> 454<dt><strong>Specified by:</strong></dt> 455<dd><code><a href="../../../../org/codehaus/jackson/node/NumericNode.html#getLongValue()">getLongValue</a></code> in class <code><a href="../../../../org/codehaus/jackson/node/NumericNode.html" title="class in org.codehaus.jackson.node">NumericNode</a></code></dd> 456</dl> 457</li> 458</ul> 459<a name="getDoubleValue()"> 460<!-- --> 461</a> 462<ul class="blockList"> 463<li class="blockList"> 464<h4>getDoubleValue</h4> 465<pre>public double getDoubleValue()</pre> 466<dl> 467<dt><strong>Specified by:</strong></dt> 468<dd><code><a href="../../../../org/codehaus/jackson/node/NumericNode.html#getDoubleValue()">getDoubleValue</a></code> in class <code><a href="../../../../org/codehaus/jackson/node/NumericNode.html" title="class in org.codehaus.jackson.node">NumericNode</a></code></dd> 469</dl> 470</li> 471</ul> 472<a name="getDecimalValue()"> 473<!-- --> 474</a> 475<ul class="blockList"> 476<li class="blockList"> 477<h4>getDecimalValue</h4> 478<pre>public <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> 479<dl> 480<dt><strong>Specified by:</strong></dt> 481<dd><code><a href="../../../../org/codehaus/jackson/node/NumericNode.html#getDecimalValue()">getDecimalValue</a></code> in class <code><a href="../../../../org/codehaus/jackson/node/NumericNode.html" title="class in org.codehaus.jackson.node">NumericNode</a></code></dd> 482</dl> 483</li> 484</ul> 485<a name="getBigIntegerValue()"> 486<!-- --> 487</a> 488<ul class="blockList"> 489<li class="blockList"> 490<h4>getBigIntegerValue</h4> 491<pre>public <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> 492<dl> 493<dt><strong>Specified by:</strong></dt> 494<dd><code><a href="../../../../org/codehaus/jackson/node/NumericNode.html#getBigIntegerValue()">getBigIntegerValue</a></code> in class <code><a href="../../../../org/codehaus/jackson/node/NumericNode.html" title="class in org.codehaus.jackson.node">NumericNode</a></code></dd> 495</dl> 496</li> 497</ul> 498<a name="asText()"> 499<!-- --> 500</a> 501<ul class="blockList"> 502<li class="blockList"> 503<h4>asText</h4> 504<pre>public <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> 505<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonNode.html#asText()">JsonNode</a></code></strong></div> 506<div class="block">Method that will return valid String representation of 507 the container value, if the node is a value node 508 (method <a href="../../../../org/codehaus/jackson/JsonNode.html#isValueNode()"><code>JsonNode.isValueNode()</code></a> returns true), otherwise 509 empty String.</div> 510<dl> 511<dt><strong>Specified by:</strong></dt> 512<dd><code><a href="../../../../org/codehaus/jackson/node/NumericNode.html#asText()">asText</a></code> in class <code><a href="../../../../org/codehaus/jackson/node/NumericNode.html" title="class in org.codehaus.jackson.node">NumericNode</a></code></dd> 513</dl> 514</li> 515</ul> 516<a name="asBoolean(boolean)"> 517<!-- --> 518</a> 519<ul class="blockList"> 520<li class="blockList"> 521<h4>asBoolean</h4> 522<pre>public boolean asBoolean(boolean defaultValue)</pre> 523<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonNode.html#asBoolean(boolean)">JsonNode</a></code></strong></div> 524<div class="block">Method that will try to convert value of this node to a Java <b>boolean</b>. 525 JSON booleans map naturally; integer numbers other than 0 map to true, and 526 0 maps to false 527 and Strings 'true' and 'false' map to corresponding values. 528<p> 529 If representation can not be converted to a boolean value (including structured types 530 like Objects and Arrays), 531 specified <b>defaultValue</b> will be returned; no exceptions are thrown.</div> 532<dl> 533<dt><strong>Overrides:</strong></dt> 534<dd><code><a href="../../../../org/codehaus/jackson/JsonNode.html#asBoolean(boolean)">asBoolean</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></code></dd> 535</dl> 536</li> 537</ul> 538<a name="serialize(org.codehaus.jackson.JsonGenerator, org.codehaus.jackson.map.SerializerProvider)"> 539<!-- --> 540</a> 541<ul class="blockList"> 542<li class="blockList"> 543<h4>serialize</h4> 544<pre>public final void serialize(<a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a> jg, 545 <a href="../../../../org/codehaus/jackson/map/SerializerProvider.html" title="class in org.codehaus.jackson.map">SerializerProvider</a> provider) 546 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>, 547 <a href="../../../../org/codehaus/jackson/JsonProcessingException.html" title="class in org.codehaus.jackson">JsonProcessingException</a></pre> 548<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html#serialize(org.codehaus.jackson.JsonGenerator, org.codehaus.jackson.map.SerializerProvider)">BaseJsonNode</a></code></strong></div> 549<div class="block">Method called to serialize node instances using given generator.</div> 550<dl> 551<dt><strong>Specified by:</strong></dt> 552<dd><code><a href="../../../../org/codehaus/jackson/map/JsonSerializable.html#serialize(org.codehaus.jackson.JsonGenerator, org.codehaus.jackson.map.SerializerProvider)">serialize</a></code> in interface <code><a href="../../../../org/codehaus/jackson/map/JsonSerializable.html" title="interface in org.codehaus.jackson.map">JsonSerializable</a></code></dd> 553<dt><strong>Specified by:</strong></dt> 554<dd><code><a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html#serialize(org.codehaus.jackson.JsonGenerator, org.codehaus.jackson.map.SerializerProvider)">serialize</a></code> in class <code><a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html" title="class in org.codehaus.jackson.node">BaseJsonNode</a></code></dd> 555<dt><span class="strong">Throws:</span></dt> 556<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> 557<dd><code><a href="../../../../org/codehaus/jackson/JsonProcessingException.html" title="class in org.codehaus.jackson">JsonProcessingException</a></code></dd></dl> 558</li> 559</ul> 560<a name="equals(java.lang.Object)"> 561<!-- --> 562</a> 563<ul class="blockList"> 564<li class="blockList"> 565<h4>equals</h4> 566<pre>public boolean 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> o)</pre> 567<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonNode.html#equals(java.lang.Object)">JsonNode</a></code></strong></div> 568<div class="block">Equality for node objects is defined as full (deep) value 569 equality. This means that it is possible to compare complete 570 JSON trees for equality by comparing equality of root nodes. 571<p> 572 Note: marked as abstract to ensure all implementation 573 classes define it properly and not rely on definition 574 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> 575<dl> 576<dt><strong>Specified by:</strong></dt> 577<dd><code><a href="../../../../org/codehaus/jackson/JsonNode.html#equals(java.lang.Object)">equals</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></code></dd> 578</dl> 579</li> 580</ul> 581<a name="hashCode()"> 582<!-- --> 583</a> 584<ul class="blockListLast"> 585<li class="blockList"> 586<h4>hashCode</h4> 587<pre>public int hashCode()</pre> 588<dl> 589<dt><strong>Overrides:</strong></dt> 590<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> in class <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> 591</dl> 592</li> 593</ul> 594</li> 595</ul> 596</li> 597</ul> 598</div> 599</div> 600<!-- ========= END OF CLASS DATA ========= --> 601<!-- ======= START OF BOTTOM NAVBAR ====== --> 602<div class="bottomNav"><a name="navbar_bottom"> 603<!-- --> 604</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> 605<!-- --> 606</a> 607<ul class="navList" title="Navigation"> 608<li><a href="../../../../overview-summary.html">Overview</a></li> 609<li><a href="package-summary.html">Package</a></li> 610<li class="navBarCell1Rev">Class</li> 611<li><a href="class-use/LongNode.html">Use</a></li> 612<li><a href="package-tree.html">Tree</a></li> 613<li><a href="../../../../deprecated-list.html">Deprecated</a></li> 614<li><a href="../../../../index-all.html">Index</a></li> 615<li><a href="../../../../help-doc.html">Help</a></li> 616</ul> 617</div> 618<div class="subNav"> 619<ul class="navList"> 620<li><a href="../../../../org/codehaus/jackson/node/JsonNodeFactory.html" title="class in org.codehaus.jackson.node"><span class="strong">Prev Class</span></a></li> 621<li><a href="../../../../org/codehaus/jackson/node/MissingNode.html" title="class in org.codehaus.jackson.node"><span class="strong">Next Class</span></a></li> 622</ul> 623<ul class="navList"> 624<li><a href="../../../../index.html?org/codehaus/jackson/node/LongNode.html" target="_top">Frames</a></li> 625<li><a href="LongNode.html" target="_top">No Frames</a></li> 626</ul> 627<ul class="navList" id="allclasses_navbar_bottom"> 628<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> 629</ul> 630<div> 631<script type="text/javascript"><!-- 632 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 633 if(window==top) { 634 allClassesLink.style.display = "block"; 635 } 636 else { 637 allClassesLink.style.display = "none"; 638 } 639 //--> 640</script> 641</div> 642<div> 643<ul class="subNavList"> 644<li>Summary: </li> 645<li>Nested | </li> 646<li><a href="#fields_inherited_from_class_org.codehaus.jackson.JsonNode">Field</a> | </li> 647<li><a href="#constructor_summary">Constr</a> | </li> 648<li><a href="#method_summary">Method</a></li> 649</ul> 650<ul class="subNavList"> 651<li>Detail: </li> 652<li>Field | </li> 653<li><a href="#constructor_detail">Constr</a> | </li> 654<li><a href="#method_detail">Method</a></li> 655</ul> 656</div> 657<a name="skip-navbar_bottom"> 658<!-- --> 659</a></div> 660<!-- ======== END OF BOTTOM NAVBAR ======= --> 661</body> 662</html> 663