1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 2<!-- NewPage --> 3<html lang="en"> 4<head> 5<!-- Generated by javadoc (1.8.0_162) on Tue Nov 05 19:39:06 PST 2019 --> 6<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 7<title>JsonNode (jackson-databind 2.10.0 API)</title> 8<meta name="date" content="2019-11-05"> 9<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> 10<script type="text/javascript" src="../../../../script.js"></script> 11</head> 12<body> 13<script type="text/javascript"><!-- 14 try { 15 if (location.href.indexOf('is-external=true') == -1) { 16 parent.document.title="JsonNode (jackson-databind 2.10.0 API)"; 17 } 18 } 19 catch(err) { 20 } 21//--> 22var methods = {"i0":6,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":6,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":6,"i22":10,"i23":10,"i24":10,"i25":6,"i26":10,"i27":10,"i28":6,"i29":10,"i30":6,"i31":6,"i32":6,"i33":10,"i34":6,"i35":10,"i36":6,"i37":10,"i38":6,"i39":10,"i40":6,"i41":10,"i42":10,"i43":10,"i44":10,"i45":10,"i46":10,"i47":10,"i48":10,"i49":10,"i50":10,"i51":10,"i52":10,"i53":10,"i54":10,"i55":10,"i56":10,"i57":10,"i58":10,"i59":10,"i60":10,"i61":10,"i62":10,"i63":10,"i64":10,"i65":10,"i66":10,"i67":10,"i68":10,"i69":10,"i70":6,"i71":6,"i72":10,"i73":10,"i74":10,"i75":10,"i76":10,"i77":10,"i78":10,"i79":10,"i80":10,"i81":10,"i82":6,"i83":10,"i84":10}; 23var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"],8:["t4","Concrete Methods"]}; 24var altColor = "altColor"; 25var rowColor = "rowColor"; 26var tableTab = "tableTab"; 27var activeTableTab = "activeTableTab"; 28</script> 29<noscript> 30<div>JavaScript is disabled on your browser.</div> 31</noscript> 32<!-- ========= START OF TOP NAVBAR ======= --> 33<div class="topNav"><a name="navbar.top"> 34<!-- --> 35</a> 36<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> 37<a name="navbar.top.firstrow"> 38<!-- --> 39</a> 40<ul class="navList" title="Navigation"> 41<li><a href="../../../../overview-summary.html">Overview</a></li> 42<li><a href="package-summary.html">Package</a></li> 43<li class="navBarCell1Rev">Class</li> 44<li><a href="class-use/JsonNode.html">Use</a></li> 45<li><a href="package-tree.html">Tree</a></li> 46<li><a href="../../../../deprecated-list.html">Deprecated</a></li> 47<li><a href="../../../../index-all.html">Index</a></li> 48<li><a href="../../../../help-doc.html">Help</a></li> 49</ul> 50</div> 51<div class="subNav"> 52<ul class="navList"> 53<li><a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.Reference.html" title="class in com.fasterxml.jackson.databind"><span class="typeNameLink">Prev Class</span></a></li> 54<li><a href="../../../../com/fasterxml/jackson/databind/JsonSerializable.html" title="interface in com.fasterxml.jackson.databind"><span class="typeNameLink">Next Class</span></a></li> 55</ul> 56<ul class="navList"> 57<li><a href="../../../../index.html?com/fasterxml/jackson/databind/JsonNode.html" target="_top">Frames</a></li> 58<li><a href="JsonNode.html" target="_top">No Frames</a></li> 59</ul> 60<ul class="navList" id="allclasses_navbar_top"> 61<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> 62</ul> 63<div> 64<script type="text/javascript"><!-- 65 allClassesLink = document.getElementById("allclasses_navbar_top"); 66 if(window==top) { 67 allClassesLink.style.display = "block"; 68 } 69 else { 70 allClassesLink.style.display = "none"; 71 } 72 //--> 73</script> 74</div> 75<div> 76<ul class="subNavList"> 77<li>Summary: </li> 78<li>Nested | </li> 79<li>Field | </li> 80<li><a href="#constructor.summary">Constr</a> | </li> 81<li><a href="#method.summary">Method</a></li> 82</ul> 83<ul class="subNavList"> 84<li>Detail: </li> 85<li>Field | </li> 86<li><a href="#constructor.detail">Constr</a> | </li> 87<li><a href="#method.detail">Method</a></li> 88</ul> 89</div> 90<a name="skip.navbar.top"> 91<!-- --> 92</a></div> 93<!-- ========= END OF TOP NAVBAR ========= --> 94<!-- ======== START OF CLASS DATA ======== --> 95<div class="header"> 96<div class="subTitle">com.fasterxml.jackson.databind</div> 97<h2 title="Class JsonNode" class="title">Class JsonNode</h2> 98</div> 99<div class="contentContainer"> 100<ul class="inheritance"> 101<li><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> 102<li> 103<ul class="inheritance"> 104<li><a href="../../../../com/fasterxml/jackson/databind/JsonSerializable.Base.html" title="class in com.fasterxml.jackson.databind">com.fasterxml.jackson.databind.JsonSerializable.Base</a></li> 105<li> 106<ul class="inheritance"> 107<li>com.fasterxml.jackson.databind.JsonNode</li> 108</ul> 109</li> 110</ul> 111</li> 112</ul> 113<div class="description"> 114<ul class="blockList"> 115<li class="blockList"> 116<dl> 117<dt>All Implemented Interfaces:</dt> 118<dd><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a>, <a href="../../../../com/fasterxml/jackson/databind/JsonSerializable.html" title="interface in com.fasterxml.jackson.databind">JsonSerializable</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>></dd> 119</dl> 120<dl> 121<dt>Direct Known Subclasses:</dt> 122<dd><a href="../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html" title="class in com.fasterxml.jackson.databind.node">BaseJsonNode</a></dd> 123</dl> 124<hr> 125<br> 126<pre>public abstract class <span class="typeNameLabel">JsonNode</span> 127extends <a href="../../../../com/fasterxml/jackson/databind/JsonSerializable.Base.html" title="class in com.fasterxml.jackson.databind">JsonSerializable.Base</a> 128implements <a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>></pre> 129<div class="block">Base class for all JSON nodes, which form the basis of JSON 130 Tree Model that Jackson implements. 131 One way to think of these nodes is to consider them 132 similar to DOM nodes in XML DOM trees. 133<p> 134 As a general design rule, most accessors ("getters") are included 135 in this base class, to allow for traversing structure without 136 type casts. Most mutators, however, need to be accessed through 137 specific sub-classes (such as <code>ObjectNode</code> 138 and <code>ArrayNode</code>). 139 This seems sensible because proper type 140 information is generally available when building or modifying 141 trees, but less often when reading a tree (newly built from 142 parsed JSON content). 143<p> 144 Actual concrete sub-classes can be found from package 145 <a href="../../../../com/fasterxml/jackson/databind/node/package-summary.html"><code>com.fasterxml.jackson.databind.node</code></a>. 146<p> 147 Note that it is possible to "read" from nodes, using 148 method <a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true#traverse-com.fasterxml.jackson.core.ObjectCodec-" title="class or interface in com.fasterxml.jackson.core"><code>TreeNode.traverse(ObjectCodec)</code></a>, which will result in 149 a <a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonParser.html?is-external=true" title="class or interface in com.fasterxml.jackson.core"><code>JsonParser</code></a> being constructed. This can be used for (relatively) 150 efficient conversations between different representations; and it is what 151 core databind uses for methods like <a href="../../../../com/fasterxml/jackson/databind/ObjectMapper.html#treeToValue-com.fasterxml.jackson.core.TreeNode-java.lang.Class-"><code>ObjectMapper.treeToValue(TreeNode, Class)</code></a> 152 and <a href="../../../../com/fasterxml/jackson/databind/ObjectMapper.html#treeAsTokens-com.fasterxml.jackson.core.TreeNode-"><code>ObjectMapper.treeAsTokens(TreeNode)</code></a></div> 153</li> 154</ul> 155</div> 156<div class="summary"> 157<ul class="blockList"> 158<li class="blockList"> 159<!-- ======== NESTED CLASS SUMMARY ======== --> 160<ul class="blockList"> 161<li class="blockList"><a name="nested.class.summary"> 162<!-- --> 163</a> 164<h3>Nested Class Summary</h3> 165<ul class="blockList"> 166<li class="blockList"><a name="nested.classes.inherited.from.class.com.fasterxml.jackson.databind.JsonSerializable"> 167<!-- --> 168</a> 169<h3>Nested classes/interfaces inherited from interface com.fasterxml.jackson.databind.<a href="../../../../com/fasterxml/jackson/databind/JsonSerializable.html" title="interface in com.fasterxml.jackson.databind">JsonSerializable</a></h3> 170<code><a href="../../../../com/fasterxml/jackson/databind/JsonSerializable.Base.html" title="class in com.fasterxml.jackson.databind">JsonSerializable.Base</a></code></li> 171</ul> 172</li> 173</ul> 174<!-- ======== CONSTRUCTOR SUMMARY ======== --> 175<ul class="blockList"> 176<li class="blockList"><a name="constructor.summary"> 177<!-- --> 178</a> 179<h3>Constructor Summary</h3> 180<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> 181<caption><span>Constructors</span><span class="tabEnd"> </span></caption> 182<tr> 183<th class="colFirst" scope="col">Modifier</th> 184<th class="colLast" scope="col">Constructor and Description</th> 185</tr> 186<tr class="altColor"> 187<td class="colFirst"><code>protected </code></td> 188<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#JsonNode--">JsonNode</a></span>()</code> </td> 189</tr> 190</table> 191</li> 192</ul> 193<!-- ========== METHOD SUMMARY =========== --> 194<ul class="blockList"> 195<li class="blockList"><a name="method.summary"> 196<!-- --> 197</a> 198<h3>Method Summary</h3> 199<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> 200<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption> 201<tr> 202<th class="colFirst" scope="col">Modifier and Type</th> 203<th class="colLast" scope="col">Method and Description</th> 204</tr> 205<tr id="i0" class="altColor"> 206<td class="colFirst"><code>protected abstract <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></td> 207<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#Z:Z_at-com.fasterxml.jackson.core.JsonPointer-">_at</a></span>(<a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonPointer.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonPointer</a> ptr)</code> </td> 208</tr> 209<tr id="i1" class="rowColor"> 210<td class="colFirst"><code>protected <T> T</code></td> 211<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#Z:Z_reportRequiredViolation-java.lang.String-java.lang.Object...-">_reportRequiredViolation</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> msgTemplate, 212 <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>... args)</code> 213<div class="block">Helper method that throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang"><code>IllegalArgumentException</code></a> as a result of 214 violating "required-constraint" for this node (for <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#required-java.lang.String-"><code>required(java.lang.String)</code></a> or related 215 methods).</div> 216</td> 217</tr> 218<tr id="i2" class="altColor"> 219<td class="colFirst"><code>protected <T extends <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>><br>T</code></td> 220<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#Z:Z_this--">_this</a></span>()</code> </td> 221</tr> 222<tr id="i3" class="rowColor"> 223<td class="colFirst"><code>boolean</code></td> 224<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#asBoolean--">asBoolean</a></span>()</code> 225<div class="block">Method that will try to convert value of this node to a Java <b>boolean</b>.</div> 226</td> 227</tr> 228<tr id="i4" class="altColor"> 229<td class="colFirst"><code>boolean</code></td> 230<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#asBoolean-boolean-">asBoolean</a></span>(boolean defaultValue)</code> 231<div class="block">Method that will try to convert value of this node to a Java <b>boolean</b>.</div> 232</td> 233</tr> 234<tr id="i5" class="rowColor"> 235<td class="colFirst"><code>double</code></td> 236<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#asDouble--">asDouble</a></span>()</code> 237<div class="block">Method that will try to convert value of this node to a Java <b>double</b>.</div> 238</td> 239</tr> 240<tr id="i6" class="altColor"> 241<td class="colFirst"><code>double</code></td> 242<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#asDouble-double-">asDouble</a></span>(double defaultValue)</code> 243<div class="block">Method that will try to convert value of this node to a Java <b>double</b>.</div> 244</td> 245</tr> 246<tr id="i7" class="rowColor"> 247<td class="colFirst"><code>int</code></td> 248<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#asInt--">asInt</a></span>()</code> 249<div class="block">Method that will try to convert value of this node to a Java <b>int</b>.</div> 250</td> 251</tr> 252<tr id="i8" class="altColor"> 253<td class="colFirst"><code>int</code></td> 254<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#asInt-int-">asInt</a></span>(int defaultValue)</code> 255<div class="block">Method that will try to convert value of this node to a Java <b>int</b>.</div> 256</td> 257</tr> 258<tr id="i9" class="rowColor"> 259<td class="colFirst"><code>long</code></td> 260<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#asLong--">asLong</a></span>()</code> 261<div class="block">Method that will try to convert value of this node to a Java <b>long</b>.</div> 262</td> 263</tr> 264<tr id="i10" class="altColor"> 265<td class="colFirst"><code>long</code></td> 266<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#asLong-long-">asLong</a></span>(long defaultValue)</code> 267<div class="block">Method that will try to convert value of this node to a Java <b>long</b>.</div> 268</td> 269</tr> 270<tr id="i11" class="rowColor"> 271<td class="colFirst"><code>abstract <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> 272<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#asText--">asText</a></span>()</code> 273<div class="block">Method that will return a valid String representation of 274 the container value, if the node is a value node 275 (method <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isValueNode--"><code>isValueNode()</code></a> returns true), 276 otherwise empty String.</div> 277</td> 278</tr> 279<tr id="i12" class="altColor"> 280<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> 281<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#asText-java.lang.String-">asText</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> defaultValue)</code> 282<div class="block">Method similar to <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#asText--"><code>asText()</code></a>, except that it will return 283 <code>defaultValue</code> in cases where null value would be returned; 284 either for missing nodes (trying to access missing property, or element 285 at invalid item for array) or explicit nulls.</div> 286</td> 287</tr> 288<tr id="i13" class="rowColor"> 289<td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></td> 290<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#at-com.fasterxml.jackson.core.JsonPointer-">at</a></span>(<a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonPointer.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonPointer</a> ptr)</code> 291<div class="block">Method for locating node specified by given JSON pointer instances.</div> 292</td> 293</tr> 294<tr id="i14" class="altColor"> 295<td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></td> 296<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#at-java.lang.String-">at</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> jsonPtrExpr)</code> 297<div class="block">Convenience method that is functionally equivalent to:</div> 298</td> 299</tr> 300<tr id="i15" class="rowColor"> 301<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigInteger.html?is-external=true" title="class or interface in java.math">BigInteger</a></code></td> 302<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#bigIntegerValue--">bigIntegerValue</a></span>()</code> 303<div class="block">Returns integer value for this node (as <a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math"><code>BigDecimal</code></a>), <b>if and only if</b> 304 this node is numeric (<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>isNumber()</code></a> returns true).</div> 305</td> 306</tr> 307<tr id="i16" class="altColor"> 308<td class="colFirst"><code>byte[]</code></td> 309<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#binaryValue--">binaryValue</a></span>()</code> 310<div class="block">Method to use for accessing binary content of binary nodes (nodes 311 for which <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isBinary--"><code>isBinary()</code></a> returns true); or for Text Nodes 312 (ones for which <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#textValue--"><code>textValue()</code></a> returns non-null value), 313 to read decoded base64 data.</div> 314</td> 315</tr> 316<tr id="i17" class="rowColor"> 317<td class="colFirst"><code>boolean</code></td> 318<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#booleanValue--">booleanValue</a></span>()</code> 319<div class="block">Method to use for accessing JSON boolean values (value 320 literals 'true' and 'false').</div> 321</td> 322</tr> 323<tr id="i18" class="altColor"> 324<td class="colFirst"><code>boolean</code></td> 325<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#canConvertToInt--">canConvertToInt</a></span>()</code> 326<div class="block">Method that can be used to check whether this node is a numeric 327 node (<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>isNumber()</code></a> would return true) AND its value fits 328 within Java's 32-bit signed integer type, <code>int</code>.</div> 329</td> 330</tr> 331<tr id="i19" class="rowColor"> 332<td class="colFirst"><code>boolean</code></td> 333<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#canConvertToLong--">canConvertToLong</a></span>()</code> 334<div class="block">Method that can be used to check whether this node is a numeric 335 node (<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>isNumber()</code></a> would return true) AND its value fits 336 within Java's 64-bit signed integer type, <code>long</code>.</div> 337</td> 338</tr> 339<tr id="i20" class="altColor"> 340<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math">BigDecimal</a></code></td> 341<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#decimalValue--">decimalValue</a></span>()</code> 342<div class="block">Returns floating point value for this node (as <a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math"><code>BigDecimal</code></a>), <b>if and only if</b> 343 this node is numeric (<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>isNumber()</code></a> returns true).</div> 344</td> 345</tr> 346<tr id="i21" class="rowColor"> 347<td class="colFirst"><code>abstract <T extends <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>><br>T</code></td> 348<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#deepCopy--">deepCopy</a></span>()</code> 349<div class="block">Method that can be called to get a node that is guaranteed 350 not to allow changing of this node through mutators on 351 this node or any of its children.</div> 352</td> 353</tr> 354<tr id="i22" class="altColor"> 355<td class="colFirst"><code>double</code></td> 356<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#doubleValue--">doubleValue</a></span>()</code> 357<div class="block">Returns 64-bit floating point (double) value for this node, <b>if and only if</b> 358 this node is numeric (<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>isNumber()</code></a> returns true).</div> 359</td> 360</tr> 361<tr id="i23" class="rowColor"> 362<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</a><<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>></code></td> 363<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#elements--">elements</a></span>()</code> 364<div class="block">Method for accessing all value nodes of this Node, iff 365 this node is a JSON Array or Object node.</div> 366</td> 367</tr> 368<tr id="i24" class="altColor"> 369<td class="colFirst"><code>boolean</code></td> 370<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#equals-java.util.Comparator-com.fasterxml.jackson.databind.JsonNode-">equals</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Comparator.html?is-external=true" title="class or interface in java.util">Comparator</a><<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>> comparator, 371 <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a> other)</code> 372<div class="block">Entry method for invoking customizable comparison, using passed-in 373 <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Comparator.html?is-external=true" title="class or interface in java.util"><code>Comparator</code></a> object.</div> 374</td> 375</tr> 376<tr id="i25" class="rowColor"> 377<td class="colFirst"><code>abstract boolean</code></td> 378<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#equals-java.lang.Object-">equals</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> o)</code> 379<div class="block">Equality for node objects is defined as full (deep) value 380 equality.</div> 381</td> 382</tr> 383<tr id="i26" class="altColor"> 384<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>></code></td> 385<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#fieldNames--">fieldNames</a></span>()</code> </td> 386</tr> 387<tr id="i27" class="rowColor"> 388<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.Entry.html?is-external=true" title="class or interface in java.util">Map.Entry</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>>></code></td> 389<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#fields--">fields</a></span>()</code> </td> 390</tr> 391<tr id="i28" class="altColor"> 392<td class="colFirst"><code>abstract <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></td> 393<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#findParent-java.lang.String-">findParent</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</code> 394<div class="block">Method for finding a JSON Object that contains specified field, 395 within this node or its descendants.</div> 396</td> 397</tr> 398<tr id="i29" class="rowColor"> 399<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>></code></td> 400<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#findParents-java.lang.String-">findParents</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</code> 401<div class="block">Method for finding a JSON Object that contains specified field, 402 within this node or its descendants.</div> 403</td> 404</tr> 405<tr id="i30" class="altColor"> 406<td class="colFirst"><code>abstract <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>></code></td> 407<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#findParents-java.lang.String-java.util.List-">findParents</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName, 408 <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>> foundSoFar)</code> </td> 409</tr> 410<tr id="i31" class="rowColor"> 411<td class="colFirst"><code>abstract <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></td> 412<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#findPath-java.lang.String-">findPath</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</code> 413<div class="block">Method similar to <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#findValue-java.lang.String-"><code>findValue(java.lang.String)</code></a>, but that will return a 414 "missing node" instead of null if no field is found.</div> 415</td> 416</tr> 417<tr id="i32" class="altColor"> 418<td class="colFirst"><code>abstract <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></td> 419<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#findValue-java.lang.String-">findValue</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</code> 420<div class="block">Method for finding a JSON Object field with specified name in this 421 node or its child nodes, and returning value it has.</div> 422</td> 423</tr> 424<tr id="i33" class="rowColor"> 425<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>></code></td> 426<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#findValues-java.lang.String-">findValues</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</code> 427<div class="block">Method for finding JSON Object fields with specified name, and returning 428 found ones as a List.</div> 429</td> 430</tr> 431<tr id="i34" class="altColor"> 432<td class="colFirst"><code>abstract <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>></code></td> 433<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#findValues-java.lang.String-java.util.List-">findValues</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName, 434 <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>> foundSoFar)</code> </td> 435</tr> 436<tr id="i35" class="rowColor"> 437<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>></code></td> 438<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#findValuesAsText-java.lang.String-">findValuesAsText</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</code> 439<div class="block">Similar to <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#findValues-java.lang.String-"><code>findValues(java.lang.String)</code></a>, but will additionally convert 440 values into Strings, calling <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#asText--"><code>asText()</code></a>.</div> 441</td> 442</tr> 443<tr id="i36" class="altColor"> 444<td class="colFirst"><code>abstract <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>></code></td> 445<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#findValuesAsText-java.lang.String-java.util.List-">findValuesAsText</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName, 446 <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> foundSoFar)</code> </td> 447</tr> 448<tr id="i37" class="rowColor"> 449<td class="colFirst"><code>float</code></td> 450<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#floatValue--">floatValue</a></span>()</code> 451<div class="block">Returns 32-bit floating value for this node, <b>if and only if</b> 452 this node is numeric (<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>isNumber()</code></a> returns true).</div> 453</td> 454</tr> 455<tr id="i38" class="altColor"> 456<td class="colFirst"><code>abstract <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></td> 457<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#get-int-">get</a></span>(int index)</code> 458<div class="block">Method for accessing value of the specified element of 459 an array node.</div> 460</td> 461</tr> 462<tr id="i39" class="rowColor"> 463<td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></td> 464<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#get-java.lang.String-">get</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</code> 465<div class="block">Method for accessing value of the specified field of 466 an object node.</div> 467</td> 468</tr> 469<tr id="i40" class="altColor"> 470<td class="colFirst"><code>abstract <a href="../../../../com/fasterxml/jackson/databind/node/JsonNodeType.html" title="enum in com.fasterxml.jackson.databind.node">JsonNodeType</a></code></td> 471<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#getNodeType--">getNodeType</a></span>()</code> 472<div class="block">Return the type of this node</div> 473</td> 474</tr> 475<tr id="i41" class="rowColor"> 476<td class="colFirst"><code>boolean</code></td> 477<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#has-int-">has</a></span>(int index)</code> 478<div class="block">Method that allows checking whether this node is JSON Array node 479 and contains a value for specified index 480 If this is the case 481 (including case of specified indexing having null as value), returns true; 482 otherwise returns false.</div> 483</td> 484</tr> 485<tr id="i42" class="altColor"> 486<td class="colFirst"><code>boolean</code></td> 487<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#has-java.lang.String-">has</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</code> 488<div class="block">Method that allows checking whether this node is JSON Object node 489 and contains value for specified property.</div> 490</td> 491</tr> 492<tr id="i43" class="rowColor"> 493<td class="colFirst"><code>boolean</code></td> 494<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#hasNonNull-int-">hasNonNull</a></span>(int index)</code> 495<div class="block">Method that is similar to <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#has-int-"><code>has(int)</code></a>, but that will 496 return <code>false</code> for explicitly added nulls.</div> 497</td> 498</tr> 499<tr id="i44" class="altColor"> 500<td class="colFirst"><code>boolean</code></td> 501<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#hasNonNull-java.lang.String-">hasNonNull</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</code> 502<div class="block">Method that is similar to <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#has-java.lang.String-"><code>has(String)</code></a>, but that will 503 return <code>false</code> for explicitly added nulls.</div> 504</td> 505</tr> 506<tr id="i45" class="rowColor"> 507<td class="colFirst"><code>int</code></td> 508<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#intValue--">intValue</a></span>()</code> 509<div class="block">Returns integer value for this node, <b>if and only if</b> 510 this node is numeric (<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>isNumber()</code></a> returns true).</div> 511</td> 512</tr> 513<tr id="i46" class="altColor"> 514<td class="colFirst"><code>boolean</code></td> 515<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isArray--">isArray</a></span>()</code> </td> 516</tr> 517<tr id="i47" class="rowColor"> 518<td class="colFirst"><code>boolean</code></td> 519<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isBigDecimal--">isBigDecimal</a></span>()</code> </td> 520</tr> 521<tr id="i48" class="altColor"> 522<td class="colFirst"><code>boolean</code></td> 523<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isBigInteger--">isBigInteger</a></span>()</code> </td> 524</tr> 525<tr id="i49" class="rowColor"> 526<td class="colFirst"><code>boolean</code></td> 527<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isBinary--">isBinary</a></span>()</code> 528<div class="block">Method that can be used to check if this node represents 529 binary data (Base64 encoded).</div> 530</td> 531</tr> 532<tr id="i50" class="altColor"> 533<td class="colFirst"><code>boolean</code></td> 534<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isBoolean--">isBoolean</a></span>()</code> 535<div class="block">Method that can be used to check if this node was created from 536 JSON boolean value (literals "true" and "false").</div> 537</td> 538</tr> 539<tr id="i51" class="rowColor"> 540<td class="colFirst"><code>boolean</code></td> 541<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isContainerNode--">isContainerNode</a></span>()</code> </td> 542</tr> 543<tr id="i52" class="altColor"> 544<td class="colFirst"><code>boolean</code></td> 545<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isDouble--">isDouble</a></span>()</code> </td> 546</tr> 547<tr id="i53" class="rowColor"> 548<td class="colFirst"><code>boolean</code></td> 549<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isEmpty--">isEmpty</a></span>()</code> 550<div class="block">Convenience method that is functionally same as:</div> 551</td> 552</tr> 553<tr id="i54" class="altColor"> 554<td class="colFirst"><code>boolean</code></td> 555<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isFloat--">isFloat</a></span>()</code> </td> 556</tr> 557<tr id="i55" class="rowColor"> 558<td class="colFirst"><code>boolean</code></td> 559<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isFloatingPointNumber--">isFloatingPointNumber</a></span>()</code> </td> 560</tr> 561<tr id="i56" class="altColor"> 562<td class="colFirst"><code>boolean</code></td> 563<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isInt--">isInt</a></span>()</code> 564<div class="block">Method that can be used to check whether contained value 565 is a number represented as Java <code>int</code>.</div> 566</td> 567</tr> 568<tr id="i57" class="rowColor"> 569<td class="colFirst"><code>boolean</code></td> 570<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isIntegralNumber--">isIntegralNumber</a></span>()</code> </td> 571</tr> 572<tr id="i58" class="altColor"> 573<td class="colFirst"><code>boolean</code></td> 574<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isLong--">isLong</a></span>()</code> 575<div class="block">Method that can be used to check whether contained value 576 is a number represented as Java <code>long</code>.</div> 577</td> 578</tr> 579<tr id="i59" class="rowColor"> 580<td class="colFirst"><code>boolean</code></td> 581<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isMissingNode--">isMissingNode</a></span>()</code> </td> 582</tr> 583<tr id="i60" class="altColor"> 584<td class="colFirst"><code>boolean</code></td> 585<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNull--">isNull</a></span>()</code> 586<div class="block">Method that can be used to check if this node was created from 587 JSON literal null value.</div> 588</td> 589</tr> 590<tr id="i61" class="rowColor"> 591<td class="colFirst"><code>boolean</code></td> 592<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--">isNumber</a></span>()</code> </td> 593</tr> 594<tr id="i62" class="altColor"> 595<td class="colFirst"><code>boolean</code></td> 596<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isObject--">isObject</a></span>()</code> </td> 597</tr> 598<tr id="i63" class="rowColor"> 599<td class="colFirst"><code>boolean</code></td> 600<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isPojo--">isPojo</a></span>()</code> 601<div class="block">Method that can be used to check if the node is a wrapper 602 for a POJO ("Plain Old Java Object" aka "bean".</div> 603</td> 604</tr> 605<tr id="i64" class="altColor"> 606<td class="colFirst"><code>boolean</code></td> 607<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isShort--">isShort</a></span>()</code> 608<div class="block">Method that can be used to check whether contained value 609 is a number represented as Java <code>short</code>.</div> 610</td> 611</tr> 612<tr id="i65" class="rowColor"> 613<td class="colFirst"><code>boolean</code></td> 614<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isTextual--">isTextual</a></span>()</code> 615<div class="block">Method that checks whether this node represents basic JSON String 616 value.</div> 617</td> 618</tr> 619<tr id="i66" class="altColor"> 620<td class="colFirst"><code>boolean</code></td> 621<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isValueNode--">isValueNode</a></span>()</code> </td> 622</tr> 623<tr id="i67" class="rowColor"> 624<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</a><<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>></code></td> 625<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#iterator--">iterator</a></span>()</code> 626<div class="block">Same as calling <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#elements--"><code>elements()</code></a>; implemented so that 627 convenience "for-each" loop can be used for looping over elements 628 of JSON Array constructs.</div> 629</td> 630</tr> 631<tr id="i68" class="altColor"> 632<td class="colFirst"><code>long</code></td> 633<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#longValue--">longValue</a></span>()</code> 634<div class="block">Returns 64-bit long value for this node, <b>if and only if</b> 635 this node is numeric (<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>isNumber()</code></a> returns true).</div> 636</td> 637</tr> 638<tr id="i69" class="rowColor"> 639<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Number.html?is-external=true" title="class or interface in java.lang">Number</a></code></td> 640<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#numberValue--">numberValue</a></span>()</code> 641<div class="block">Returns numeric value for this node, <b>if and only if</b> 642 this node is numeric (<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>isNumber()</code></a> returns true); otherwise 643 returns null</div> 644</td> 645</tr> 646<tr id="i70" class="altColor"> 647<td class="colFirst"><code>abstract <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></td> 648<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#path-int-">path</a></span>(int index)</code> 649<div class="block">This method is similar to <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#get-int-"><code>get(int)</code></a>, except 650 that instead of returning null if no such element exists (due 651 to index being out of range, or this node not being an array), 652 a "missing node" (node that returns true for 653 <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isMissingNode--"><code>isMissingNode()</code></a>) will be returned.</div> 654</td> 655</tr> 656<tr id="i71" class="rowColor"> 657<td class="colFirst"><code>abstract <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></td> 658<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#path-java.lang.String-">path</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</code> 659<div class="block">This method is similar to <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#get-java.lang.String-"><code>get(String)</code></a>, except 660 that instead of returning null if no such value exists (due 661 to this node not being an object, or object not having value 662 for the specified field), 663 a "missing node" (node that returns true for 664 <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isMissingNode--"><code>isMissingNode()</code></a>) will be returned.</div> 665</td> 666</tr> 667<tr id="i72" class="altColor"> 668<td class="colFirst"><code><T extends <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>><br>T</code></td> 669<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#require--">require</a></span>()</code> 670<div class="block">Method that may be called to verify that <code>this</code> node is NOT so-called 671 "missing node": that is, one for which <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isMissingNode--"><code>isMissingNode()</code></a> returns <code>true</code>.</div> 672</td> 673</tr> 674<tr id="i73" class="rowColor"> 675<td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></td> 676<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#required-int-">required</a></span>(int index)</code> 677<div class="block">Method is functionally equivalent to 678<code>path(index).required() 679</code> 680 and can be used to check that this node is an <code>ArrayNode</code> (that is, represents 681 JSON Array value) and has value for specified <code>index</code> 682 (but note that value may be explicit JSON null value).</div> 683</td> 684</tr> 685<tr id="i74" class="altColor"> 686<td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></td> 687<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#required-java.lang.String-">required</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</code> 688<div class="block">Method is functionally equivalent to 689<code>path(fieldName).required() 690</code> 691 and can be used to check that this node is an <code>ObjectNode</code> (that is, represents 692 JSON Object value) and has value for specified property with key <code>fieldName</code> 693 (but note that value may be explicit JSON null value).</div> 694</td> 695</tr> 696<tr id="i75" class="rowColor"> 697<td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></td> 698<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#requiredAt-com.fasterxml.jackson.core.JsonPointer-">requiredAt</a></span>(<a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonPointer.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonPointer</a> path)</code> 699<div class="block">Method is functionally equivalent to 700<code>at(path).required() 701</code> 702 and can be used to check that there is an actual value node at specified <a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonPointer.html?is-external=true" title="class or interface in com.fasterxml.jackson.core"><code>JsonPointer</code></a> 703 starting from <code>this</code> node 704 (but note that value may be explicit JSON null value).</div> 705</td> 706</tr> 707<tr id="i76" class="altColor"> 708<td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></td> 709<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#requiredAt-java.lang.String-">requiredAt</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> pathExpr)</code> 710<div class="block">Method is functionally equivalent to 711<code>at(pathExpr).required() 712</code> 713 and can be used to check that there is an actual value node at specified <a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonPointer.html?is-external=true" title="class or interface in com.fasterxml.jackson.core"><code>JsonPointer</code></a> 714 starting from <code>this</code> node 715 (but note that value may be explicit JSON null value).</div> 716</td> 717</tr> 718<tr id="i77" class="rowColor"> 719<td class="colFirst"><code><T extends <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>><br>T</code></td> 720<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#requireNonNull--">requireNonNull</a></span>()</code> 721<div class="block">Method that may be called to verify that <code>this</code> node is neither so-called 722 "missing node" (that is, one for which <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isMissingNode--"><code>isMissingNode()</code></a> returns <code>true</code>) 723 nor "null node" (one for which <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNull--"><code>isNull()</code></a> returns <code>true</code>).</div> 724</td> 725</tr> 726<tr id="i78" class="altColor"> 727<td class="colFirst"><code>short</code></td> 728<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#shortValue--">shortValue</a></span>()</code> 729<div class="block">Returns 16-bit short value for this node, <b>if and only if</b> 730 this node is numeric (<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>isNumber()</code></a> returns true).</div> 731</td> 732</tr> 733<tr id="i79" class="rowColor"> 734<td class="colFirst"><code>int</code></td> 735<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#size--">size</a></span>()</code> </td> 736</tr> 737<tr id="i80" class="altColor"> 738<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> 739<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#textValue--">textValue</a></span>()</code> 740<div class="block">Method to use for accessing String values.</div> 741</td> 742</tr> 743<tr id="i81" class="rowColor"> 744<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> 745<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#toPrettyString--">toPrettyString</a></span>()</code> 746<div class="block">Alternative to <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#toString--"><code>toString()</code></a> that will serialize this node using 747 Jackson default pretty-printer.</div> 748</td> 749</tr> 750<tr id="i82" class="altColor"> 751<td class="colFirst"><code>abstract <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> 752<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#toString--">toString</a></span>()</code> 753<div class="block">Method that will produce (as of Jackson 2.10) valid JSON using 754 default settings of databind, as String.</div> 755</td> 756</tr> 757<tr id="i83" class="rowColor"> 758<td class="colFirst"><code><T extends <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>><br>T</code></td> 759<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#with-java.lang.String-">with</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> propertyName)</code> 760<div class="block">Method that can be called on Object nodes, to access a property 761 that has Object value; or if no such property exists, to create, 762 add and return such Object node.</div> 763</td> 764</tr> 765<tr id="i84" class="altColor"> 766<td class="colFirst"><code><T extends <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>><br>T</code></td> 767<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#withArray-java.lang.String-">withArray</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> propertyName)</code> 768<div class="block">Method that can be called on Object nodes, to access a property 769 that has <code>Array</code> value; or if no such property exists, to create, 770 add and return such Array node.</div> 771</td> 772</tr> 773</table> 774<ul class="blockList"> 775<li class="blockList"><a name="methods.inherited.from.class.com.fasterxml.jackson.databind.JsonSerializable.Base"> 776<!-- --> 777</a> 778<h3>Methods inherited from class com.fasterxml.jackson.databind.<a href="../../../../com/fasterxml/jackson/databind/JsonSerializable.Base.html" title="class in com.fasterxml.jackson.databind">JsonSerializable.Base</a></h3> 779<code><a href="../../../../com/fasterxml/jackson/databind/JsonSerializable.Base.html#isEmpty-com.fasterxml.jackson.databind.SerializerProvider-">isEmpty</a></code></li> 780</ul> 781<ul class="blockList"> 782<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> 783<!-- --> 784</a> 785<h3>Methods inherited from class java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> 786<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li> 787</ul> 788<ul class="blockList"> 789<li class="blockList"><a name="methods.inherited.from.class.com.fasterxml.jackson.core.TreeNode"> 790<!-- --> 791</a> 792<h3>Methods inherited from interface com.fasterxml.jackson.core.<a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a></h3> 793<code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true#asToken--" title="class or interface in com.fasterxml.jackson.core">asToken</a>, <a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true#numberType--" title="class or interface in com.fasterxml.jackson.core">numberType</a>, <a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true#traverse--" title="class or interface in com.fasterxml.jackson.core">traverse</a>, <a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true#traverse-com.fasterxml.jackson.core.ObjectCodec-" title="class or interface in com.fasterxml.jackson.core">traverse</a></code></li> 794</ul> 795<ul class="blockList"> 796<li class="blockList"><a name="methods.inherited.from.class.java.lang.Iterable"> 797<!-- --> 798</a> 799<h3>Methods inherited from interface java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a></h3> 800<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true#forEach-java.util.function.Consumer-" title="class or interface in java.lang">forEach</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true#spliterator--" title="class or interface in java.lang">spliterator</a></code></li> 801</ul> 802<ul class="blockList"> 803<li class="blockList"><a name="methods.inherited.from.class.com.fasterxml.jackson.databind.JsonSerializable"> 804<!-- --> 805</a> 806<h3>Methods inherited from interface com.fasterxml.jackson.databind.<a href="../../../../com/fasterxml/jackson/databind/JsonSerializable.html" title="interface in com.fasterxml.jackson.databind">JsonSerializable</a></h3> 807<code><a href="../../../../com/fasterxml/jackson/databind/JsonSerializable.html#serialize-com.fasterxml.jackson.core.JsonGenerator-com.fasterxml.jackson.databind.SerializerProvider-">serialize</a>, <a href="../../../../com/fasterxml/jackson/databind/JsonSerializable.html#serializeWithType-com.fasterxml.jackson.core.JsonGenerator-com.fasterxml.jackson.databind.SerializerProvider-com.fasterxml.jackson.databind.jsontype.TypeSerializer-">serializeWithType</a></code></li> 808</ul> 809</li> 810</ul> 811</li> 812</ul> 813</div> 814<div class="details"> 815<ul class="blockList"> 816<li class="blockList"> 817<!-- ========= CONSTRUCTOR DETAIL ======== --> 818<ul class="blockList"> 819<li class="blockList"><a name="constructor.detail"> 820<!-- --> 821</a> 822<h3>Constructor Detail</h3> 823<a name="JsonNode--"> 824<!-- --> 825</a> 826<ul class="blockListLast"> 827<li class="blockList"> 828<h4>JsonNode</h4> 829<pre>protected JsonNode()</pre> 830</li> 831</ul> 832</li> 833</ul> 834<!-- ============ METHOD DETAIL ========== --> 835<ul class="blockList"> 836<li class="blockList"><a name="method.detail"> 837<!-- --> 838</a> 839<h3>Method Detail</h3> 840<a name="deepCopy--"> 841<!-- --> 842</a> 843<ul class="blockList"> 844<li class="blockList"> 845<h4>deepCopy</h4> 846<pre>public abstract <T extends <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>> T deepCopy()</pre> 847<div class="block">Method that can be called to get a node that is guaranteed 848 not to allow changing of this node through mutators on 849 this node or any of its children. 850 This means it can either make a copy of this node (and all 851 mutable children and grand children nodes), or node itself 852 if it is immutable. 853<p> 854 Note: return type is guaranteed to have same type as the 855 node method is called on; which is why method is declared 856 with local generic type.</div> 857<dl> 858<dt><span class="returnLabel">Returns:</span></dt> 859<dd>Node that is either a copy of this node (and all non-leaf 860 children); or, for immutable leaf nodes, node itself.</dd> 861<dt><span class="simpleTagLabel">Since:</span></dt> 862<dd>2.0</dd> 863</dl> 864</li> 865</ul> 866<a name="size--"> 867<!-- --> 868</a> 869<ul class="blockList"> 870<li class="blockList"> 871<h4>size</h4> 872<pre>public int size()</pre> 873<dl> 874<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 875<dd><code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true#size--" title="class or interface in com.fasterxml.jackson.core">size</a></code> in interface <code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a></code></dd> 876</dl> 877</li> 878</ul> 879<a name="isEmpty--"> 880<!-- --> 881</a> 882<ul class="blockList"> 883<li class="blockList"> 884<h4>isEmpty</h4> 885<pre>public boolean isEmpty()</pre> 886<div class="block">Convenience method that is functionally same as: 887<pre> 888 size() == 0 889</pre> 890 for all node types.</div> 891<dl> 892<dt><span class="simpleTagLabel">Since:</span></dt> 893<dd>2.10</dd> 894</dl> 895</li> 896</ul> 897<a name="isValueNode--"> 898<!-- --> 899</a> 900<ul class="blockList"> 901<li class="blockList"> 902<h4>isValueNode</h4> 903<pre>public final boolean isValueNode()</pre> 904<dl> 905<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 906<dd><code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true#isValueNode--" title="class or interface in com.fasterxml.jackson.core">isValueNode</a></code> in interface <code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a></code></dd> 907</dl> 908</li> 909</ul> 910<a name="isContainerNode--"> 911<!-- --> 912</a> 913<ul class="blockList"> 914<li class="blockList"> 915<h4>isContainerNode</h4> 916<pre>public final boolean isContainerNode()</pre> 917<dl> 918<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 919<dd><code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true#isContainerNode--" title="class or interface in com.fasterxml.jackson.core">isContainerNode</a></code> in interface <code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a></code></dd> 920</dl> 921</li> 922</ul> 923<a name="isMissingNode--"> 924<!-- --> 925</a> 926<ul class="blockList"> 927<li class="blockList"> 928<h4>isMissingNode</h4> 929<pre>public boolean isMissingNode()</pre> 930<dl> 931<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 932<dd><code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true#isMissingNode--" title="class or interface in com.fasterxml.jackson.core">isMissingNode</a></code> in interface <code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a></code></dd> 933</dl> 934</li> 935</ul> 936<a name="isArray--"> 937<!-- --> 938</a> 939<ul class="blockList"> 940<li class="blockList"> 941<h4>isArray</h4> 942<pre>public boolean isArray()</pre> 943<dl> 944<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 945<dd><code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true#isArray--" title="class or interface in com.fasterxml.jackson.core">isArray</a></code> in interface <code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a></code></dd> 946</dl> 947</li> 948</ul> 949<a name="isObject--"> 950<!-- --> 951</a> 952<ul class="blockList"> 953<li class="blockList"> 954<h4>isObject</h4> 955<pre>public boolean isObject()</pre> 956<dl> 957<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 958<dd><code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true#isObject--" title="class or interface in com.fasterxml.jackson.core">isObject</a></code> in interface <code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a></code></dd> 959</dl> 960</li> 961</ul> 962<a name="get-int-"> 963<!-- --> 964</a> 965<ul class="blockList"> 966<li class="blockList"> 967<h4>get</h4> 968<pre>public abstract <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a> get(int index)</pre> 969<div class="block">Method for accessing value of the specified element of 970 an array node. For other nodes, null is always returned. 971<p> 972 For array nodes, index specifies 973 exact location within array and allows for efficient iteration 974 over child elements (underlying storage is guaranteed to 975 be efficiently indexable, i.e. has random-access to elements). 976 If index is less than 0, or equal-or-greater than 977 <code>node.size()</code>, null is returned; no exception is 978 thrown for any index. 979<p> 980 NOTE: if the element value has been explicitly set as <code>null</code> 981 (which is different from removal!), 982 a <a href="../../../../com/fasterxml/jackson/databind/node/NullNode.html" title="class in com.fasterxml.jackson.databind.node"><code>NullNode</code></a> will be returned, 983 not null.</div> 984<dl> 985<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 986<dd><code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true#get-int-" title="class or interface in com.fasterxml.jackson.core">get</a></code> in interface <code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a></code></dd> 987<dt><span class="returnLabel">Returns:</span></dt> 988<dd>Node that represent value of the specified element, 989 if this node is an array and has specified element. 990 Null otherwise.</dd> 991</dl> 992</li> 993</ul> 994<a name="get-java.lang.String-"> 995<!-- --> 996</a> 997<ul class="blockList"> 998<li class="blockList"> 999<h4>get</h4> 1000<pre>public <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a> get(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</pre> 1001<div class="block">Method for accessing value of the specified field of 1002 an object node. If this node is not an object (or it 1003 does not have a value for specified field name), or 1004 if there is no field with such name, null is returned. 1005<p> 1006 NOTE: if the property value has been explicitly set as <code>null</code> 1007 (which is different from removal!), 1008 a <a href="../../../../com/fasterxml/jackson/databind/node/NullNode.html" title="class in com.fasterxml.jackson.databind.node"><code>NullNode</code></a> will be returned, 1009 not null.</div> 1010<dl> 1011<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 1012<dd><code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true#get-java.lang.String-" title="class or interface in com.fasterxml.jackson.core">get</a></code> in interface <code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a></code></dd> 1013<dt><span class="returnLabel">Returns:</span></dt> 1014<dd>Node that represent value of the specified field, 1015 if this node is an object and has value for the specified 1016 field. Null otherwise.</dd> 1017</dl> 1018</li> 1019</ul> 1020<a name="path-java.lang.String-"> 1021<!-- --> 1022</a> 1023<ul class="blockList"> 1024<li class="blockList"> 1025<h4>path</h4> 1026<pre>public abstract <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a> path(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</pre> 1027<div class="block">This method is similar to <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#get-java.lang.String-"><code>get(String)</code></a>, except 1028 that instead of returning null if no such value exists (due 1029 to this node not being an object, or object not having value 1030 for the specified field), 1031 a "missing node" (node that returns true for 1032 <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isMissingNode--"><code>isMissingNode()</code></a>) will be returned. This allows for 1033 convenient and safe chained access via path calls.</div> 1034<dl> 1035<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 1036<dd><code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true#path-java.lang.String-" title="class or interface in com.fasterxml.jackson.core">path</a></code> in interface <code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a></code></dd> 1037</dl> 1038</li> 1039</ul> 1040<a name="path-int-"> 1041<!-- --> 1042</a> 1043<ul class="blockList"> 1044<li class="blockList"> 1045<h4>path</h4> 1046<pre>public abstract <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a> path(int index)</pre> 1047<div class="block">This method is similar to <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#get-int-"><code>get(int)</code></a>, except 1048 that instead of returning null if no such element exists (due 1049 to index being out of range, or this node not being an array), 1050 a "missing node" (node that returns true for 1051 <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isMissingNode--"><code>isMissingNode()</code></a>) will be returned. This allows for 1052 convenient and safe chained access via path calls.</div> 1053<dl> 1054<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 1055<dd><code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true#path-int-" title="class or interface in com.fasterxml.jackson.core">path</a></code> in interface <code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a></code></dd> 1056</dl> 1057</li> 1058</ul> 1059<a name="fieldNames--"> 1060<!-- --> 1061</a> 1062<ul class="blockList"> 1063<li class="blockList"> 1064<h4>fieldNames</h4> 1065<pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> fieldNames()</pre> 1066<dl> 1067<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 1068<dd><code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true#fieldNames--" title="class or interface in com.fasterxml.jackson.core">fieldNames</a></code> in interface <code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a></code></dd> 1069</dl> 1070</li> 1071</ul> 1072<a name="at-com.fasterxml.jackson.core.JsonPointer-"> 1073<!-- --> 1074</a> 1075<ul class="blockList"> 1076<li class="blockList"> 1077<h4>at</h4> 1078<pre>public final <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a> at(<a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonPointer.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonPointer</a> ptr)</pre> 1079<div class="block">Method for locating node specified by given JSON pointer instances. 1080 Method will never return null; if no matching node exists, 1081 will return a node for which <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isMissingNode--"><code>isMissingNode()</code></a> returns true.</div> 1082<dl> 1083<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 1084<dd><code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true#at-com.fasterxml.jackson.core.JsonPointer-" title="class or interface in com.fasterxml.jackson.core">at</a></code> in interface <code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a></code></dd> 1085<dt><span class="returnLabel">Returns:</span></dt> 1086<dd>Node that matches given JSON Pointer: if no match exists, 1087 will return a node for which <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isMissingNode--"><code>isMissingNode()</code></a> returns true.</dd> 1088<dt><span class="simpleTagLabel">Since:</span></dt> 1089<dd>2.3</dd> 1090</dl> 1091</li> 1092</ul> 1093<a name="at-java.lang.String-"> 1094<!-- --> 1095</a> 1096<ul class="blockList"> 1097<li class="blockList"> 1098<h4>at</h4> 1099<pre>public final <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a> at(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> jsonPtrExpr)</pre> 1100<div class="block">Convenience method that is functionally equivalent to: 1101<pre> 1102 return at(JsonPointer.valueOf(jsonPointerExpression)); 1103</pre> 1104<p> 1105 Note that if the same expression is used often, it is preferable to construct 1106 <a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonPointer.html?is-external=true" title="class or interface in com.fasterxml.jackson.core"><code>JsonPointer</code></a> instance once and reuse it: this method will not perform 1107 any caching of compiled expressions.</div> 1108<dl> 1109<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 1110<dd><code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true#at-java.lang.String-" title="class or interface in com.fasterxml.jackson.core">at</a></code> in interface <code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a></code></dd> 1111<dt><span class="paramLabel">Parameters:</span></dt> 1112<dd><code>jsonPtrExpr</code> - Expression to compile as a <a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonPointer.html?is-external=true" title="class or interface in com.fasterxml.jackson.core"><code>JsonPointer</code></a> 1113 instance</dd> 1114<dt><span class="returnLabel">Returns:</span></dt> 1115<dd>Node that matches given JSON Pointer: if no match exists, 1116 will return a node for which <a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true#isMissingNode--" title="class or interface in com.fasterxml.jackson.core"><code>TreeNode.isMissingNode()</code></a> returns true.</dd> 1117<dt><span class="simpleTagLabel">Since:</span></dt> 1118<dd>2.3</dd> 1119</dl> 1120</li> 1121</ul> 1122<a name="Z:Z_at-com.fasterxml.jackson.core.JsonPointer-"> 1123<!-- --> 1124</a> 1125<ul class="blockList"> 1126<li class="blockList"> 1127<h4>_at</h4> 1128<pre>protected abstract <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a> _at(<a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonPointer.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonPointer</a> ptr)</pre> 1129</li> 1130</ul> 1131<a name="getNodeType--"> 1132<!-- --> 1133</a> 1134<ul class="blockList"> 1135<li class="blockList"> 1136<h4>getNodeType</h4> 1137<pre>public abstract <a href="../../../../com/fasterxml/jackson/databind/node/JsonNodeType.html" title="enum in com.fasterxml.jackson.databind.node">JsonNodeType</a> getNodeType()</pre> 1138<div class="block">Return the type of this node</div> 1139<dl> 1140<dt><span class="returnLabel">Returns:</span></dt> 1141<dd>the node type as a <a href="../../../../com/fasterxml/jackson/databind/node/JsonNodeType.html" title="enum in com.fasterxml.jackson.databind.node"><code>JsonNodeType</code></a> enum value</dd> 1142<dt><span class="simpleTagLabel">Since:</span></dt> 1143<dd>2.2</dd> 1144</dl> 1145</li> 1146</ul> 1147<a name="isPojo--"> 1148<!-- --> 1149</a> 1150<ul class="blockList"> 1151<li class="blockList"> 1152<h4>isPojo</h4> 1153<pre>public final boolean isPojo()</pre> 1154<div class="block">Method that can be used to check if the node is a wrapper 1155 for a POJO ("Plain Old Java Object" aka "bean". 1156 Returns true only for 1157 instances of <code>POJONode</code>.</div> 1158<dl> 1159<dt><span class="returnLabel">Returns:</span></dt> 1160<dd>True if this node wraps a POJO</dd> 1161</dl> 1162</li> 1163</ul> 1164<a name="isNumber--"> 1165<!-- --> 1166</a> 1167<ul class="blockList"> 1168<li class="blockList"> 1169<h4>isNumber</h4> 1170<pre>public final boolean isNumber()</pre> 1171<dl> 1172<dt><span class="returnLabel">Returns:</span></dt> 1173<dd>True if this node represents a numeric JSON value</dd> 1174</dl> 1175</li> 1176</ul> 1177<a name="isIntegralNumber--"> 1178<!-- --> 1179</a> 1180<ul class="blockList"> 1181<li class="blockList"> 1182<h4>isIntegralNumber</h4> 1183<pre>public boolean isIntegralNumber()</pre> 1184<dl> 1185<dt><span class="returnLabel">Returns:</span></dt> 1186<dd>True if this node represents an integral (integer) 1187 numeric JSON value</dd> 1188</dl> 1189</li> 1190</ul> 1191<a name="isFloatingPointNumber--"> 1192<!-- --> 1193</a> 1194<ul class="blockList"> 1195<li class="blockList"> 1196<h4>isFloatingPointNumber</h4> 1197<pre>public boolean isFloatingPointNumber()</pre> 1198<dl> 1199<dt><span class="returnLabel">Returns:</span></dt> 1200<dd>True if this node represents a non-integral 1201 numeric JSON value</dd> 1202</dl> 1203</li> 1204</ul> 1205<a name="isShort--"> 1206<!-- --> 1207</a> 1208<ul class="blockList"> 1209<li class="blockList"> 1210<h4>isShort</h4> 1211<pre>public boolean isShort()</pre> 1212<div class="block">Method that can be used to check whether contained value 1213 is a number represented as Java <code>short</code>. 1214 Note, however, that even if this method returns false, it 1215 is possible that conversion would be possible from other numeric 1216 types -- to check if this is possible, use 1217 <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#canConvertToInt--"><code>canConvertToInt()</code></a> instead.</div> 1218<dl> 1219<dt><span class="returnLabel">Returns:</span></dt> 1220<dd>True if the value contained by this node is stored as Java short</dd> 1221</dl> 1222</li> 1223</ul> 1224<a name="isInt--"> 1225<!-- --> 1226</a> 1227<ul class="blockList"> 1228<li class="blockList"> 1229<h4>isInt</h4> 1230<pre>public boolean isInt()</pre> 1231<div class="block">Method that can be used to check whether contained value 1232 is a number represented as Java <code>int</code>. 1233 Note, however, that even if this method returns false, it 1234 is possible that conversion would be possible from other numeric 1235 types -- to check if this is possible, use 1236 <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#canConvertToInt--"><code>canConvertToInt()</code></a> instead.</div> 1237<dl> 1238<dt><span class="returnLabel">Returns:</span></dt> 1239<dd>True if the value contained by this node is stored as Java int</dd> 1240</dl> 1241</li> 1242</ul> 1243<a name="isLong--"> 1244<!-- --> 1245</a> 1246<ul class="blockList"> 1247<li class="blockList"> 1248<h4>isLong</h4> 1249<pre>public boolean isLong()</pre> 1250<div class="block">Method that can be used to check whether contained value 1251 is a number represented as Java <code>long</code>. 1252 Note, however, that even if this method returns false, it 1253 is possible that conversion would be possible from other numeric 1254 types -- to check if this is possible, use 1255 <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#canConvertToLong--"><code>canConvertToLong()</code></a> instead.</div> 1256<dl> 1257<dt><span class="returnLabel">Returns:</span></dt> 1258<dd>True if the value contained by this node is stored as Java <code>long</code></dd> 1259</dl> 1260</li> 1261</ul> 1262<a name="isFloat--"> 1263<!-- --> 1264</a> 1265<ul class="blockList"> 1266<li class="blockList"> 1267<h4>isFloat</h4> 1268<pre>public boolean isFloat()</pre> 1269<dl> 1270<dt><span class="simpleTagLabel">Since:</span></dt> 1271<dd>2.2</dd> 1272</dl> 1273</li> 1274</ul> 1275<a name="isDouble--"> 1276<!-- --> 1277</a> 1278<ul class="blockList"> 1279<li class="blockList"> 1280<h4>isDouble</h4> 1281<pre>public boolean isDouble()</pre> 1282</li> 1283</ul> 1284<a name="isBigDecimal--"> 1285<!-- --> 1286</a> 1287<ul class="blockList"> 1288<li class="blockList"> 1289<h4>isBigDecimal</h4> 1290<pre>public boolean isBigDecimal()</pre> 1291</li> 1292</ul> 1293<a name="isBigInteger--"> 1294<!-- --> 1295</a> 1296<ul class="blockList"> 1297<li class="blockList"> 1298<h4>isBigInteger</h4> 1299<pre>public boolean isBigInteger()</pre> 1300</li> 1301</ul> 1302<a name="isTextual--"> 1303<!-- --> 1304</a> 1305<ul class="blockList"> 1306<li class="blockList"> 1307<h4>isTextual</h4> 1308<pre>public final boolean isTextual()</pre> 1309<div class="block">Method that checks whether this node represents basic JSON String 1310 value.</div> 1311</li> 1312</ul> 1313<a name="isBoolean--"> 1314<!-- --> 1315</a> 1316<ul class="blockList"> 1317<li class="blockList"> 1318<h4>isBoolean</h4> 1319<pre>public final boolean isBoolean()</pre> 1320<div class="block">Method that can be used to check if this node was created from 1321 JSON boolean value (literals "true" and "false").</div> 1322</li> 1323</ul> 1324<a name="isNull--"> 1325<!-- --> 1326</a> 1327<ul class="blockList"> 1328<li class="blockList"> 1329<h4>isNull</h4> 1330<pre>public final boolean isNull()</pre> 1331<div class="block">Method that can be used to check if this node was created from 1332 JSON literal null value.</div> 1333</li> 1334</ul> 1335<a name="isBinary--"> 1336<!-- --> 1337</a> 1338<ul class="blockList"> 1339<li class="blockList"> 1340<h4>isBinary</h4> 1341<pre>public final boolean isBinary()</pre> 1342<div class="block">Method that can be used to check if this node represents 1343 binary data (Base64 encoded). Although this will be externally 1344 written as JSON String value, <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isTextual--"><code>isTextual()</code></a> will 1345 return false if this method returns true.</div> 1346<dl> 1347<dt><span class="returnLabel">Returns:</span></dt> 1348<dd>True if this node represents base64 encoded binary data</dd> 1349</dl> 1350</li> 1351</ul> 1352<a name="canConvertToInt--"> 1353<!-- --> 1354</a> 1355<ul class="blockList"> 1356<li class="blockList"> 1357<h4>canConvertToInt</h4> 1358<pre>public boolean canConvertToInt()</pre> 1359<div class="block">Method that can be used to check whether this node is a numeric 1360 node (<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>isNumber()</code></a> would return true) AND its value fits 1361 within Java's 32-bit signed integer type, <code>int</code>. 1362 Note that floating-point numbers are convertible if the integral 1363 part fits without overflow (as per standard Java coercion rules) 1364<p> 1365 NOTE: this method does not consider possible value type conversion 1366 from JSON String into Number; so even if this method returns false, 1367 it is possible that <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#asInt--"><code>asInt()</code></a> could still succeed 1368 if node is a JSON String representing integral number, or boolean.</div> 1369<dl> 1370<dt><span class="simpleTagLabel">Since:</span></dt> 1371<dd>2.0</dd> 1372</dl> 1373</li> 1374</ul> 1375<a name="canConvertToLong--"> 1376<!-- --> 1377</a> 1378<ul class="blockList"> 1379<li class="blockList"> 1380<h4>canConvertToLong</h4> 1381<pre>public boolean canConvertToLong()</pre> 1382<div class="block">Method that can be used to check whether this node is a numeric 1383 node (<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>isNumber()</code></a> would return true) AND its value fits 1384 within Java's 64-bit signed integer type, <code>long</code>. 1385 Note that floating-point numbers are convertible if the integral 1386 part fits without overflow (as per standard Java coercion rules) 1387<p> 1388 NOTE: this method does not consider possible value type conversion 1389 from JSON String into Number; so even if this method returns false, 1390 it is possible that <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#asLong--"><code>asLong()</code></a> could still succeed 1391 if node is a JSON String representing integral number, or boolean.</div> 1392<dl> 1393<dt><span class="simpleTagLabel">Since:</span></dt> 1394<dd>2.0</dd> 1395</dl> 1396</li> 1397</ul> 1398<a name="textValue--"> 1399<!-- --> 1400</a> 1401<ul class="blockList"> 1402<li class="blockList"> 1403<h4>textValue</h4> 1404<pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> textValue()</pre> 1405<div class="block">Method to use for accessing String values. 1406 Does <b>NOT</b> do any conversions for non-String value nodes; 1407 for non-String values (ones for which <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isTextual--"><code>isTextual()</code></a> returns 1408 false) null will be returned. 1409 For String values, null is never returned (but empty Strings may be)</div> 1410<dl> 1411<dt><span class="returnLabel">Returns:</span></dt> 1412<dd>Textual value this node contains, iff it is a textual 1413 JSON node (comes from JSON String value entry)</dd> 1414</dl> 1415</li> 1416</ul> 1417<a name="binaryValue--"> 1418<!-- --> 1419</a> 1420<ul class="blockList"> 1421<li class="blockList"> 1422<h4>binaryValue</h4> 1423<pre>public byte[] binaryValue() 1424 throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> 1425<div class="block">Method to use for accessing binary content of binary nodes (nodes 1426 for which <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isBinary--"><code>isBinary()</code></a> returns true); or for Text Nodes 1427 (ones for which <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#textValue--"><code>textValue()</code></a> returns non-null value), 1428 to read decoded base64 data. 1429 For other types of nodes, returns null.</div> 1430<dl> 1431<dt><span class="returnLabel">Returns:</span></dt> 1432<dd>Binary data this node contains, iff it is a binary 1433 node; null otherwise</dd> 1434<dt><span class="throwsLabel">Throws:</span></dt> 1435<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> 1436</dl> 1437</li> 1438</ul> 1439<a name="booleanValue--"> 1440<!-- --> 1441</a> 1442<ul class="blockList"> 1443<li class="blockList"> 1444<h4>booleanValue</h4> 1445<pre>public boolean booleanValue()</pre> 1446<div class="block">Method to use for accessing JSON boolean values (value 1447 literals 'true' and 'false'). 1448 For other types, always returns false.</div> 1449<dl> 1450<dt><span class="returnLabel">Returns:</span></dt> 1451<dd>Textual value this node contains, iff it is a textual 1452 json node (comes from JSON String value entry)</dd> 1453</dl> 1454</li> 1455</ul> 1456<a name="numberValue--"> 1457<!-- --> 1458</a> 1459<ul class="blockList"> 1460<li class="blockList"> 1461<h4>numberValue</h4> 1462<pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Number.html?is-external=true" title="class or interface in java.lang">Number</a> numberValue()</pre> 1463<div class="block">Returns numeric value for this node, <b>if and only if</b> 1464 this node is numeric (<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>isNumber()</code></a> returns true); otherwise 1465 returns null</div> 1466<dl> 1467<dt><span class="returnLabel">Returns:</span></dt> 1468<dd>Number value this node contains, if any (null for non-number 1469 nodes).</dd> 1470</dl> 1471</li> 1472</ul> 1473<a name="shortValue--"> 1474<!-- --> 1475</a> 1476<ul class="blockList"> 1477<li class="blockList"> 1478<h4>shortValue</h4> 1479<pre>public short shortValue()</pre> 1480<div class="block">Returns 16-bit short value for this node, <b>if and only if</b> 1481 this node is numeric (<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>isNumber()</code></a> returns true). For other 1482 types returns 0. 1483 For floating-point numbers, value is truncated using default 1484 Java coercion, similar to how cast from double to short operates.</div> 1485<dl> 1486<dt><span class="returnLabel">Returns:</span></dt> 1487<dd>Short value this node contains, if any; 0 for non-number 1488 nodes.</dd> 1489</dl> 1490</li> 1491</ul> 1492<a name="intValue--"> 1493<!-- --> 1494</a> 1495<ul class="blockList"> 1496<li class="blockList"> 1497<h4>intValue</h4> 1498<pre>public int intValue()</pre> 1499<div class="block">Returns integer value for this node, <b>if and only if</b> 1500 this node is numeric (<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>isNumber()</code></a> returns true). For other 1501 types returns 0. 1502 For floating-point numbers, value is truncated using default 1503 Java coercion, similar to how cast from double to int operates.</div> 1504<dl> 1505<dt><span class="returnLabel">Returns:</span></dt> 1506<dd>Integer value this node contains, if any; 0 for non-number 1507 nodes.</dd> 1508</dl> 1509</li> 1510</ul> 1511<a name="longValue--"> 1512<!-- --> 1513</a> 1514<ul class="blockList"> 1515<li class="blockList"> 1516<h4>longValue</h4> 1517<pre>public long longValue()</pre> 1518<div class="block">Returns 64-bit long value for this node, <b>if and only if</b> 1519 this node is numeric (<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>isNumber()</code></a> returns true). For other 1520 types returns 0. 1521 For floating-point numbers, value is truncated using default 1522 Java coercion, similar to how cast from double to long operates.</div> 1523<dl> 1524<dt><span class="returnLabel">Returns:</span></dt> 1525<dd>Long value this node contains, if any; 0 for non-number 1526 nodes.</dd> 1527</dl> 1528</li> 1529</ul> 1530<a name="floatValue--"> 1531<!-- --> 1532</a> 1533<ul class="blockList"> 1534<li class="blockList"> 1535<h4>floatValue</h4> 1536<pre>public float floatValue()</pre> 1537<div class="block">Returns 32-bit floating value for this node, <b>if and only if</b> 1538 this node is numeric (<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>isNumber()</code></a> returns true). For other 1539 types returns 0.0. 1540 For integer values, conversion is done using coercion; this means 1541 that an overflow is possible for `long` values</div> 1542<dl> 1543<dt><span class="returnLabel">Returns:</span></dt> 1544<dd>32-bit float value this node contains, if any; 0.0 for non-number nodes.</dd> 1545<dt><span class="simpleTagLabel">Since:</span></dt> 1546<dd>2.2</dd> 1547</dl> 1548</li> 1549</ul> 1550<a name="doubleValue--"> 1551<!-- --> 1552</a> 1553<ul class="blockList"> 1554<li class="blockList"> 1555<h4>doubleValue</h4> 1556<pre>public double doubleValue()</pre> 1557<div class="block">Returns 64-bit floating point (double) value for this node, <b>if and only if</b> 1558 this node is numeric (<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>isNumber()</code></a> returns true). For other 1559 types returns 0.0. 1560 For integer values, conversion is done using coercion; this may result 1561 in overflows with <a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigInteger.html?is-external=true" title="class or interface in java.math"><code>BigInteger</code></a> values.</div> 1562<dl> 1563<dt><span class="returnLabel">Returns:</span></dt> 1564<dd>64-bit double value this node contains, if any; 0.0 for non-number nodes.</dd> 1565<dt><span class="simpleTagLabel">Since:</span></dt> 1566<dd>2.2</dd> 1567</dl> 1568</li> 1569</ul> 1570<a name="decimalValue--"> 1571<!-- --> 1572</a> 1573<ul class="blockList"> 1574<li class="blockList"> 1575<h4>decimalValue</h4> 1576<pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math">BigDecimal</a> decimalValue()</pre> 1577<div class="block">Returns floating point value for this node (as <a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math"><code>BigDecimal</code></a>), <b>if and only if</b> 1578 this node is numeric (<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>isNumber()</code></a> returns true). For other 1579 types returns <code>BigDecimal.ZERO</code>.</div> 1580<dl> 1581<dt><span class="returnLabel">Returns:</span></dt> 1582<dd><a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math"><code>BigDecimal</code></a> value this node contains, if numeric node; <code>BigDecimal.ZERO</code> for non-number nodes.</dd> 1583</dl> 1584</li> 1585</ul> 1586<a name="bigIntegerValue--"> 1587<!-- --> 1588</a> 1589<ul class="blockList"> 1590<li class="blockList"> 1591<h4>bigIntegerValue</h4> 1592<pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigInteger.html?is-external=true" title="class or interface in java.math">BigInteger</a> bigIntegerValue()</pre> 1593<div class="block">Returns integer value for this node (as <a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math"><code>BigDecimal</code></a>), <b>if and only if</b> 1594 this node is numeric (<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>isNumber()</code></a> returns true). For other 1595 types returns <code>BigInteger.ZERO</code>.</div> 1596<dl> 1597<dt><span class="returnLabel">Returns:</span></dt> 1598<dd><a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigInteger.html?is-external=true" title="class or interface in java.math"><code>BigInteger</code></a> value this node contains, if numeric node; <code>BigInteger.ZERO</code> for non-number nodes.</dd> 1599</dl> 1600</li> 1601</ul> 1602<a name="asText--"> 1603<!-- --> 1604</a> 1605<ul class="blockList"> 1606<li class="blockList"> 1607<h4>asText</h4> 1608<pre>public abstract <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> asText()</pre> 1609<div class="block">Method that will return a valid String representation of 1610 the container value, if the node is a value node 1611 (method <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isValueNode--"><code>isValueNode()</code></a> returns true), 1612 otherwise empty String.</div> 1613</li> 1614</ul> 1615<a name="asText-java.lang.String-"> 1616<!-- --> 1617</a> 1618<ul class="blockList"> 1619<li class="blockList"> 1620<h4>asText</h4> 1621<pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> asText(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> defaultValue)</pre> 1622<div class="block">Method similar to <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#asText--"><code>asText()</code></a>, except that it will return 1623 <code>defaultValue</code> in cases where null value would be returned; 1624 either for missing nodes (trying to access missing property, or element 1625 at invalid item for array) or explicit nulls.</div> 1626<dl> 1627<dt><span class="simpleTagLabel">Since:</span></dt> 1628<dd>2.4</dd> 1629</dl> 1630</li> 1631</ul> 1632<a name="asInt--"> 1633<!-- --> 1634</a> 1635<ul class="blockList"> 1636<li class="blockList"> 1637<h4>asInt</h4> 1638<pre>public int asInt()</pre> 1639<div class="block">Method that will try to convert value of this node to a Java <b>int</b>. 1640 Numbers are coerced using default Java rules; booleans convert to 0 (false) 1641 and 1 (true), and Strings are parsed using default Java language integer 1642 parsing rules. 1643<p> 1644 If representation cannot be converted to an int (including structured types 1645 like Objects and Arrays), 1646 default value of <b>0</b> will be returned; no exceptions are thrown.</div> 1647</li> 1648</ul> 1649<a name="asInt-int-"> 1650<!-- --> 1651</a> 1652<ul class="blockList"> 1653<li class="blockList"> 1654<h4>asInt</h4> 1655<pre>public int asInt(int defaultValue)</pre> 1656<div class="block">Method that will try to convert value of this node to a Java <b>int</b>. 1657 Numbers are coerced using default Java rules; booleans convert to 0 (false) 1658 and 1 (true), and Strings are parsed using default Java language integer 1659 parsing rules. 1660<p> 1661 If representation cannot be converted to an int (including structured types 1662 like Objects and Arrays), 1663 specified <b>defaultValue</b> will be returned; no exceptions are thrown.</div> 1664</li> 1665</ul> 1666<a name="asLong--"> 1667<!-- --> 1668</a> 1669<ul class="blockList"> 1670<li class="blockList"> 1671<h4>asLong</h4> 1672<pre>public long asLong()</pre> 1673<div class="block">Method that will try to convert value of this node to a Java <b>long</b>. 1674 Numbers are coerced using default Java rules; booleans convert to 0 (false) 1675 and 1 (true), and Strings are parsed using default Java language integer 1676 parsing rules. 1677<p> 1678 If representation cannot be converted to an long (including structured types 1679 like Objects and Arrays), 1680 default value of <b>0</b> will be returned; no exceptions are thrown.</div> 1681</li> 1682</ul> 1683<a name="asLong-long-"> 1684<!-- --> 1685</a> 1686<ul class="blockList"> 1687<li class="blockList"> 1688<h4>asLong</h4> 1689<pre>public long asLong(long defaultValue)</pre> 1690<div class="block">Method that will try to convert value of this node to a Java <b>long</b>. 1691 Numbers are coerced using default Java rules; booleans convert to 0 (false) 1692 and 1 (true), and Strings are parsed using default Java language integer 1693 parsing rules. 1694<p> 1695 If representation cannot be converted to an long (including structured types 1696 like Objects and Arrays), 1697 specified <b>defaultValue</b> will be returned; no exceptions are thrown.</div> 1698</li> 1699</ul> 1700<a name="asDouble--"> 1701<!-- --> 1702</a> 1703<ul class="blockList"> 1704<li class="blockList"> 1705<h4>asDouble</h4> 1706<pre>public double asDouble()</pre> 1707<div class="block">Method that will try to convert value of this node to a Java <b>double</b>. 1708 Numbers are coerced using default Java rules; booleans convert to 0.0 (false) 1709 and 1.0 (true), and Strings are parsed using default Java language integer 1710 parsing rules. 1711<p> 1712 If representation cannot be converted to an int (including structured types 1713 like Objects and Arrays), 1714 default value of <b>0.0</b> will be returned; no exceptions are thrown.</div> 1715</li> 1716</ul> 1717<a name="asDouble-double-"> 1718<!-- --> 1719</a> 1720<ul class="blockList"> 1721<li class="blockList"> 1722<h4>asDouble</h4> 1723<pre>public double asDouble(double defaultValue)</pre> 1724<div class="block">Method that will try to convert value of this node to a Java <b>double</b>. 1725 Numbers are coerced using default Java rules; booleans convert to 0.0 (false) 1726 and 1.0 (true), and Strings are parsed using default Java language integer 1727 parsing rules. 1728<p> 1729 If representation cannot be converted to an int (including structured types 1730 like Objects and Arrays), 1731 specified <b>defaultValue</b> will be returned; no exceptions are thrown.</div> 1732</li> 1733</ul> 1734<a name="asBoolean--"> 1735<!-- --> 1736</a> 1737<ul class="blockList"> 1738<li class="blockList"> 1739<h4>asBoolean</h4> 1740<pre>public boolean asBoolean()</pre> 1741<div class="block">Method that will try to convert value of this node to a Java <b>boolean</b>. 1742 JSON booleans map naturally; integer numbers other than 0 map to true, and 1743 0 maps to false 1744 and Strings 'true' and 'false' map to corresponding values. 1745<p> 1746 If representation cannot be converted to a boolean value (including structured types 1747 like Objects and Arrays), 1748 default value of <b>false</b> will be returned; no exceptions are thrown.</div> 1749</li> 1750</ul> 1751<a name="asBoolean-boolean-"> 1752<!-- --> 1753</a> 1754<ul class="blockList"> 1755<li class="blockList"> 1756<h4>asBoolean</h4> 1757<pre>public boolean asBoolean(boolean defaultValue)</pre> 1758<div class="block">Method that will try to convert value of this node to a Java <b>boolean</b>. 1759 JSON booleans map naturally; integer numbers other than 0 map to true, and 1760 0 maps to false 1761 and Strings 'true' and 'false' map to corresponding values. 1762<p> 1763 If representation cannot be converted to a boolean value (including structured types 1764 like Objects and Arrays), 1765 specified <b>defaultValue</b> will be returned; no exceptions are thrown.</div> 1766</li> 1767</ul> 1768<a name="require--"> 1769<!-- --> 1770</a> 1771<ul class="blockList"> 1772<li class="blockList"> 1773<h4>require</h4> 1774<pre>public <T extends <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>> T require() 1775 throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></pre> 1776<div class="block">Method that may be called to verify that <code>this</code> node is NOT so-called 1777 "missing node": that is, one for which <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isMissingNode--"><code>isMissingNode()</code></a> returns <code>true</code>. 1778 If not missing node, <code>this</code> is returned to allow chaining; otherwise 1779 <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang"><code>IllegalArgumentException</code></a> is thrown.</div> 1780<dl> 1781<dt><span class="returnLabel">Returns:</span></dt> 1782<dd><code>this</code> node to allow chaining</dd> 1783<dt><span class="throwsLabel">Throws:</span></dt> 1784<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if this node is "missing node"</dd> 1785<dt><span class="simpleTagLabel">Since:</span></dt> 1786<dd>2.10</dd> 1787</dl> 1788</li> 1789</ul> 1790<a name="requireNonNull--"> 1791<!-- --> 1792</a> 1793<ul class="blockList"> 1794<li class="blockList"> 1795<h4>requireNonNull</h4> 1796<pre>public <T extends <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>> T requireNonNull() 1797 throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></pre> 1798<div class="block">Method that may be called to verify that <code>this</code> node is neither so-called 1799 "missing node" (that is, one for which <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isMissingNode--"><code>isMissingNode()</code></a> returns <code>true</code>) 1800 nor "null node" (one for which <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNull--"><code>isNull()</code></a> returns <code>true</code>). 1801 If non-null non-missing node, <code>this</code> is returned to allow chaining; otherwise 1802 <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang"><code>IllegalArgumentException</code></a> is thrown.</div> 1803<dl> 1804<dt><span class="returnLabel">Returns:</span></dt> 1805<dd><code>this</code> node to allow chaining</dd> 1806<dt><span class="throwsLabel">Throws:</span></dt> 1807<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if this node is either "missing node" or "null node"</dd> 1808<dt><span class="simpleTagLabel">Since:</span></dt> 1809<dd>2.10</dd> 1810</dl> 1811</li> 1812</ul> 1813<a name="required-java.lang.String-"> 1814<!-- --> 1815</a> 1816<ul class="blockList"> 1817<li class="blockList"> 1818<h4>required</h4> 1819<pre>public <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a> required(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName) 1820 throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></pre> 1821<div class="block">Method is functionally equivalent to 1822<code>path(fieldName).required() 1823</code> 1824 and can be used to check that this node is an <code>ObjectNode</code> (that is, represents 1825 JSON Object value) and has value for specified property with key <code>fieldName</code> 1826 (but note that value may be explicit JSON null value). 1827 If this node is Object Node and has value for specified property, <code>this</code> is returned 1828 to allow chaining; otherwise <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang"><code>IllegalArgumentException</code></a> is thrown.</div> 1829<dl> 1830<dt><span class="returnLabel">Returns:</span></dt> 1831<dd><code>this</code> node to allow chaining</dd> 1832<dt><span class="throwsLabel">Throws:</span></dt> 1833<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if this node is not an Object node or if it does not 1834 have value for specified property</dd> 1835<dt><span class="simpleTagLabel">Since:</span></dt> 1836<dd>2.10</dd> 1837</dl> 1838</li> 1839</ul> 1840<a name="required-int-"> 1841<!-- --> 1842</a> 1843<ul class="blockList"> 1844<li class="blockList"> 1845<h4>required</h4> 1846<pre>public <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a> required(int index) 1847 throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></pre> 1848<div class="block">Method is functionally equivalent to 1849<code>path(index).required() 1850</code> 1851 and can be used to check that this node is an <code>ArrayNode</code> (that is, represents 1852 JSON Array value) and has value for specified <code>index</code> 1853 (but note that value may be explicit JSON null value). 1854 If this node is Array Node and has value for specified index, <code>this</code> is returned 1855 to allow chaining; otherwise <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang"><code>IllegalArgumentException</code></a> is thrown.</div> 1856<dl> 1857<dt><span class="returnLabel">Returns:</span></dt> 1858<dd><code>this</code> node to allow chaining</dd> 1859<dt><span class="throwsLabel">Throws:</span></dt> 1860<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if this node is not an Array node or if it does not 1861 have value for specified index</dd> 1862<dt><span class="simpleTagLabel">Since:</span></dt> 1863<dd>2.10</dd> 1864</dl> 1865</li> 1866</ul> 1867<a name="requiredAt-java.lang.String-"> 1868<!-- --> 1869</a> 1870<ul class="blockList"> 1871<li class="blockList"> 1872<h4>requiredAt</h4> 1873<pre>public <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a> requiredAt(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> pathExpr) 1874 throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></pre> 1875<div class="block">Method is functionally equivalent to 1876<code>at(pathExpr).required() 1877</code> 1878 and can be used to check that there is an actual value node at specified <a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonPointer.html?is-external=true" title="class or interface in com.fasterxml.jackson.core"><code>JsonPointer</code></a> 1879 starting from <code>this</code> node 1880 (but note that value may be explicit JSON null value). 1881 If such value node exists <code>this</code> is returned 1882 to allow chaining; otherwise <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang"><code>IllegalArgumentException</code></a> is thrown.</div> 1883<dl> 1884<dt><span class="returnLabel">Returns:</span></dt> 1885<dd><code>this</code> node to allow chaining</dd> 1886<dt><span class="throwsLabel">Throws:</span></dt> 1887<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if no value node exists at given <code>JSON Pointer</code> path</dd> 1888<dt><span class="simpleTagLabel">Since:</span></dt> 1889<dd>2.10</dd> 1890</dl> 1891</li> 1892</ul> 1893<a name="requiredAt-com.fasterxml.jackson.core.JsonPointer-"> 1894<!-- --> 1895</a> 1896<ul class="blockList"> 1897<li class="blockList"> 1898<h4>requiredAt</h4> 1899<pre>public final <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a> requiredAt(<a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonPointer.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonPointer</a> path) 1900 throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></pre> 1901<div class="block">Method is functionally equivalent to 1902<code>at(path).required() 1903</code> 1904 and can be used to check that there is an actual value node at specified <a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonPointer.html?is-external=true" title="class or interface in com.fasterxml.jackson.core"><code>JsonPointer</code></a> 1905 starting from <code>this</code> node 1906 (but note that value may be explicit JSON null value). 1907 If such value node exists <code>this</code> is returned 1908 to allow chaining; otherwise <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang"><code>IllegalArgumentException</code></a> is thrown.</div> 1909<dl> 1910<dt><span class="returnLabel">Returns:</span></dt> 1911<dd><code>this</code> node to allow chaining</dd> 1912<dt><span class="throwsLabel">Throws:</span></dt> 1913<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if no value node exists at given <code>JSON Pointer</code> path</dd> 1914<dt><span class="simpleTagLabel">Since:</span></dt> 1915<dd>2.10</dd> 1916</dl> 1917</li> 1918</ul> 1919<a name="has-java.lang.String-"> 1920<!-- --> 1921</a> 1922<ul class="blockList"> 1923<li class="blockList"> 1924<h4>has</h4> 1925<pre>public boolean has(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</pre> 1926<div class="block">Method that allows checking whether this node is JSON Object node 1927 and contains value for specified property. If this is the case 1928 (including properties with explicit null values), returns true; 1929 otherwise returns false. 1930<p> 1931 This method is equivalent to: 1932<pre> 1933 node.get(fieldName) != null 1934</pre> 1935 (since return value of get() is node, not value node contains) 1936<p> 1937 NOTE: when explicit <code>null</code> values are added, this 1938 method will return <code>true</code> for such properties.</div> 1939<dl> 1940<dt><span class="paramLabel">Parameters:</span></dt> 1941<dd><code>fieldName</code> - Name of element to check</dd> 1942<dt><span class="returnLabel">Returns:</span></dt> 1943<dd>True if this node is a JSON Object node, and has a property 1944 entry with specified name (with any value, including null value)</dd> 1945</dl> 1946</li> 1947</ul> 1948<a name="has-int-"> 1949<!-- --> 1950</a> 1951<ul class="blockList"> 1952<li class="blockList"> 1953<h4>has</h4> 1954<pre>public boolean has(int index)</pre> 1955<div class="block">Method that allows checking whether this node is JSON Array node 1956 and contains a value for specified index 1957 If this is the case 1958 (including case of specified indexing having null as value), returns true; 1959 otherwise returns false. 1960<p> 1961 Note: array element indexes are 0-based. 1962<p> 1963 This method is equivalent to: 1964<pre> 1965 node.get(index) != null 1966</pre> 1967<p> 1968 NOTE: this method will return <code>true</code> for explicitly added 1969 null values.</div> 1970<dl> 1971<dt><span class="paramLabel">Parameters:</span></dt> 1972<dd><code>index</code> - Index to check</dd> 1973<dt><span class="returnLabel">Returns:</span></dt> 1974<dd>True if this node is a JSON Object node, and has a property 1975 entry with specified name (with any value, including null value)</dd> 1976</dl> 1977</li> 1978</ul> 1979<a name="hasNonNull-java.lang.String-"> 1980<!-- --> 1981</a> 1982<ul class="blockList"> 1983<li class="blockList"> 1984<h4>hasNonNull</h4> 1985<pre>public boolean hasNonNull(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</pre> 1986<div class="block">Method that is similar to <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#has-java.lang.String-"><code>has(String)</code></a>, but that will 1987 return <code>false</code> for explicitly added nulls. 1988<p> 1989 This method is functionally equivalent to: 1990<pre> 1991 node.get(fieldName) != null && !node.get(fieldName).isNull() 1992</pre></div> 1993<dl> 1994<dt><span class="simpleTagLabel">Since:</span></dt> 1995<dd>2.1</dd> 1996</dl> 1997</li> 1998</ul> 1999<a name="hasNonNull-int-"> 2000<!-- --> 2001</a> 2002<ul class="blockList"> 2003<li class="blockList"> 2004<h4>hasNonNull</h4> 2005<pre>public boolean hasNonNull(int index)</pre> 2006<div class="block">Method that is similar to <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#has-int-"><code>has(int)</code></a>, but that will 2007 return <code>false</code> for explicitly added nulls. 2008<p> 2009 This method is equivalent to: 2010<pre> 2011 node.get(index) != null && !node.get(index).isNull() 2012</pre></div> 2013<dl> 2014<dt><span class="simpleTagLabel">Since:</span></dt> 2015<dd>2.1</dd> 2016</dl> 2017</li> 2018</ul> 2019<a name="iterator--"> 2020<!-- --> 2021</a> 2022<ul class="blockList"> 2023<li class="blockList"> 2024<h4>iterator</h4> 2025<pre>public final <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</a><<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>> iterator()</pre> 2026<div class="block">Same as calling <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#elements--"><code>elements()</code></a>; implemented so that 2027 convenience "for-each" loop can be used for looping over elements 2028 of JSON Array constructs.</div> 2029<dl> 2030<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> 2031<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true#iterator--" title="class or interface in java.lang">iterator</a></code> in interface <code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>></code></dd> 2032</dl> 2033</li> 2034</ul> 2035<a name="elements--"> 2036<!-- --> 2037</a> 2038<ul class="blockList"> 2039<li class="blockList"> 2040<h4>elements</h4> 2041<pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</a><<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>> elements()</pre> 2042<div class="block">Method for accessing all value nodes of this Node, iff 2043 this node is a JSON Array or Object node. In case of Object node, 2044 field names (keys) are not included, only values. 2045 For other types of nodes, returns empty iterator.</div> 2046</li> 2047</ul> 2048<a name="fields--"> 2049<!-- --> 2050</a> 2051<ul class="blockList"> 2052<li class="blockList"> 2053<h4>fields</h4> 2054<pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.Entry.html?is-external=true" title="class or interface in java.util">Map.Entry</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>>> fields()</pre> 2055<dl> 2056<dt><span class="returnLabel">Returns:</span></dt> 2057<dd>Iterator that can be used to traverse all key/value pairs for 2058 object nodes; empty iterator (no contents) for other types</dd> 2059</dl> 2060</li> 2061</ul> 2062<a name="findValue-java.lang.String-"> 2063<!-- --> 2064</a> 2065<ul class="blockList"> 2066<li class="blockList"> 2067<h4>findValue</h4> 2068<pre>public abstract <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a> findValue(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</pre> 2069<div class="block">Method for finding a JSON Object field with specified name in this 2070 node or its child nodes, and returning value it has. 2071 If no matching field is found in this node or its descendants, returns null.</div> 2072<dl> 2073<dt><span class="paramLabel">Parameters:</span></dt> 2074<dd><code>fieldName</code> - Name of field to look for</dd> 2075<dt><span class="returnLabel">Returns:</span></dt> 2076<dd>Value of first matching node found, if any; null if none</dd> 2077</dl> 2078</li> 2079</ul> 2080<a name="findValues-java.lang.String-"> 2081<!-- --> 2082</a> 2083<ul class="blockList"> 2084<li class="blockList"> 2085<h4>findValues</h4> 2086<pre>public final <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>> findValues(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</pre> 2087<div class="block">Method for finding JSON Object fields with specified name, and returning 2088 found ones as a List. Note that sub-tree search ends if a field is found, 2089 so possible children of result nodes are <b>not</b> included. 2090 If no matching fields are found in this node or its descendants, returns 2091 an empty List.</div> 2092<dl> 2093<dt><span class="paramLabel">Parameters:</span></dt> 2094<dd><code>fieldName</code> - Name of field to look for</dd> 2095</dl> 2096</li> 2097</ul> 2098<a name="findValuesAsText-java.lang.String-"> 2099<!-- --> 2100</a> 2101<ul class="blockList"> 2102<li class="blockList"> 2103<h4>findValuesAsText</h4> 2104<pre>public final <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> findValuesAsText(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</pre> 2105<div class="block">Similar to <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#findValues-java.lang.String-"><code>findValues(java.lang.String)</code></a>, but will additionally convert 2106 values into Strings, calling <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#asText--"><code>asText()</code></a>.</div> 2107</li> 2108</ul> 2109<a name="findPath-java.lang.String-"> 2110<!-- --> 2111</a> 2112<ul class="blockList"> 2113<li class="blockList"> 2114<h4>findPath</h4> 2115<pre>public abstract <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a> findPath(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</pre> 2116<div class="block">Method similar to <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#findValue-java.lang.String-"><code>findValue(java.lang.String)</code></a>, but that will return a 2117 "missing node" instead of null if no field is found. Missing node 2118 is a specific kind of node for which <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isMissingNode--"><code>isMissingNode()</code></a> 2119 returns true; and all value access methods return empty or 2120 missing value.</div> 2121<dl> 2122<dt><span class="paramLabel">Parameters:</span></dt> 2123<dd><code>fieldName</code> - Name of field to look for</dd> 2124<dt><span class="returnLabel">Returns:</span></dt> 2125<dd>Value of first matching node found; or if not found, a 2126 "missing node" (non-null instance that has no value)</dd> 2127</dl> 2128</li> 2129</ul> 2130<a name="findParent-java.lang.String-"> 2131<!-- --> 2132</a> 2133<ul class="blockList"> 2134<li class="blockList"> 2135<h4>findParent</h4> 2136<pre>public abstract <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a> findParent(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</pre> 2137<div class="block">Method for finding a JSON Object that contains specified field, 2138 within this node or its descendants. 2139 If no matching field is found in this node or its descendants, returns null.</div> 2140<dl> 2141<dt><span class="paramLabel">Parameters:</span></dt> 2142<dd><code>fieldName</code> - Name of field to look for</dd> 2143<dt><span class="returnLabel">Returns:</span></dt> 2144<dd>Value of first matching node found, if any; null if none</dd> 2145</dl> 2146</li> 2147</ul> 2148<a name="findParents-java.lang.String-"> 2149<!-- --> 2150</a> 2151<ul class="blockList"> 2152<li class="blockList"> 2153<h4>findParents</h4> 2154<pre>public final <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>> findParents(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</pre> 2155<div class="block">Method for finding a JSON Object that contains specified field, 2156 within this node or its descendants. 2157 If no matching field is found in this node or its descendants, returns null.</div> 2158<dl> 2159<dt><span class="paramLabel">Parameters:</span></dt> 2160<dd><code>fieldName</code> - Name of field to look for</dd> 2161<dt><span class="returnLabel">Returns:</span></dt> 2162<dd>Value of first matching node found, if any; null if none</dd> 2163</dl> 2164</li> 2165</ul> 2166<a name="findValues-java.lang.String-java.util.List-"> 2167<!-- --> 2168</a> 2169<ul class="blockList"> 2170<li class="blockList"> 2171<h4>findValues</h4> 2172<pre>public abstract <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>> findValues(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName, 2173 <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>> foundSoFar)</pre> 2174</li> 2175</ul> 2176<a name="findValuesAsText-java.lang.String-java.util.List-"> 2177<!-- --> 2178</a> 2179<ul class="blockList"> 2180<li class="blockList"> 2181<h4>findValuesAsText</h4> 2182<pre>public abstract <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> findValuesAsText(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName, 2183 <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> foundSoFar)</pre> 2184</li> 2185</ul> 2186<a name="findParents-java.lang.String-java.util.List-"> 2187<!-- --> 2188</a> 2189<ul class="blockList"> 2190<li class="blockList"> 2191<h4>findParents</h4> 2192<pre>public abstract <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>> findParents(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName, 2193 <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>> foundSoFar)</pre> 2194</li> 2195</ul> 2196<a name="with-java.lang.String-"> 2197<!-- --> 2198</a> 2199<ul class="blockList"> 2200<li class="blockList"> 2201<h4>with</h4> 2202<pre>public <T extends <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>> T with(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> propertyName)</pre> 2203<div class="block">Method that can be called on Object nodes, to access a property 2204 that has Object value; or if no such property exists, to create, 2205 add and return such Object node. 2206 If the node method is called on is not Object node, 2207 or if property exists and has value that is not Object node, 2208 <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/UnsupportedOperationException.html?is-external=true" title="class or interface in java.lang"><code>UnsupportedOperationException</code></a> is thrown 2209<p> 2210 NOTE: since 2.10 has had co-variant return type</div> 2211</li> 2212</ul> 2213<a name="withArray-java.lang.String-"> 2214<!-- --> 2215</a> 2216<ul class="blockList"> 2217<li class="blockList"> 2218<h4>withArray</h4> 2219<pre>public <T extends <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>> T withArray(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> propertyName)</pre> 2220<div class="block">Method that can be called on Object nodes, to access a property 2221 that has <code>Array</code> value; or if no such property exists, to create, 2222 add and return such Array node. 2223 If the node method is called on is not Object node, 2224 or if property exists and has value that is not Array node, 2225 <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/UnsupportedOperationException.html?is-external=true" title="class or interface in java.lang"><code>UnsupportedOperationException</code></a> is thrown 2226<p> 2227 NOTE: since 2.10 has had co-variant return type</div> 2228</li> 2229</ul> 2230<a name="equals-java.util.Comparator-com.fasterxml.jackson.databind.JsonNode-"> 2231<!-- --> 2232</a> 2233<ul class="blockList"> 2234<li class="blockList"> 2235<h4>equals</h4> 2236<pre>public boolean equals(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Comparator.html?is-external=true" title="class or interface in java.util">Comparator</a><<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>> comparator, 2237 <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a> other)</pre> 2238<div class="block">Entry method for invoking customizable comparison, using passed-in 2239 <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Comparator.html?is-external=true" title="class or interface in java.util"><code>Comparator</code></a> object. Nodes will handle traversal of structured 2240 types (arrays, objects), but defer to comparator for scalar value 2241 comparisons. If a "natural" <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Comparator.html?is-external=true" title="class or interface in java.util"><code>Comparator</code></a> is passed -- one that 2242 simply calls <code>equals()</code> on one of arguments, passing the other 2243 -- implementation is the same as directly calling <code>equals()</code> 2244 on node. 2245<p> 2246 Default implementation simply delegates to passed in <code>comparator</code>, 2247 with <code>this</code> as the first argument, and <code>other</code> as 2248 the second argument.</div> 2249<dl> 2250<dt><span class="paramLabel">Parameters:</span></dt> 2251<dd><code>comparator</code> - Object called to compare two scalar <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind"><code>JsonNode</code></a> 2252 instances, and return either 0 (are equals) or non-zero (not equal)</dd> 2253<dt><span class="simpleTagLabel">Since:</span></dt> 2254<dd>2.6</dd> 2255</dl> 2256</li> 2257</ul> 2258<a name="toString--"> 2259<!-- --> 2260</a> 2261<ul class="blockList"> 2262<li class="blockList"> 2263<h4>toString</h4> 2264<pre>public abstract <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> toString()</pre> 2265<div class="block">Method that will produce (as of Jackson 2.10) valid JSON using 2266 default settings of databind, as String. 2267 If you want other kinds of JSON output (or output formatted using one of 2268 other Jackson-supported data formats) make sure to use 2269 <a href="../../../../com/fasterxml/jackson/databind/ObjectMapper.html" title="class in com.fasterxml.jackson.databind"><code>ObjectMapper</code></a> or <a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind"><code>ObjectWriter</code></a> to serialize an 2270 instance, for example: 2271<pre> 2272 String json = objectMapper.writeValueAsString(rootNode); 2273</pre> 2274<p> 2275 Note: method defined as abstract to ensure all implementation 2276 classes explicitly implement method, instead of relying 2277 on <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang"><code>Object.toString()</code></a> definition.</div> 2278<dl> 2279<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> 2280<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a></code> in class <code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd> 2281</dl> 2282</li> 2283</ul> 2284<a name="toPrettyString--"> 2285<!-- --> 2286</a> 2287<ul class="blockList"> 2288<li class="blockList"> 2289<h4>toPrettyString</h4> 2290<pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> toPrettyString()</pre> 2291<div class="block">Alternative to <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#toString--"><code>toString()</code></a> that will serialize this node using 2292 Jackson default pretty-printer.</div> 2293<dl> 2294<dt><span class="simpleTagLabel">Since:</span></dt> 2295<dd>2.10</dd> 2296</dl> 2297</li> 2298</ul> 2299<a name="equals-java.lang.Object-"> 2300<!-- --> 2301</a> 2302<ul class="blockList"> 2303<li class="blockList"> 2304<h4>equals</h4> 2305<pre>public abstract boolean equals(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> o)</pre> 2306<div class="block">Equality for node objects is defined as full (deep) value 2307 equality. This means that it is possible to compare complete 2308 JSON trees for equality by comparing equality of root nodes. 2309<p> 2310 Note: marked as abstract to ensure all implementation 2311 classes define it properly and not rely on definition 2312 from <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang"><code>Object</code></a>.</div> 2313<dl> 2314<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> 2315<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a></code> in class <code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd> 2316</dl> 2317</li> 2318</ul> 2319<a name="Z:Z_this--"> 2320<!-- --> 2321</a> 2322<ul class="blockList"> 2323<li class="blockList"> 2324<h4>_this</h4> 2325<pre>protected <T extends <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>> T _this()</pre> 2326</li> 2327</ul> 2328<a name="Z:Z_reportRequiredViolation-java.lang.String-java.lang.Object...-"> 2329<!-- --> 2330</a> 2331<ul class="blockListLast"> 2332<li class="blockList"> 2333<h4>_reportRequiredViolation</h4> 2334<pre>protected <T> T _reportRequiredViolation(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> msgTemplate, 2335 <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>... args)</pre> 2336<div class="block">Helper method that throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang"><code>IllegalArgumentException</code></a> as a result of 2337 violating "required-constraint" for this node (for <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#required-java.lang.String-"><code>required(java.lang.String)</code></a> or related 2338 methods).</div> 2339</li> 2340</ul> 2341</li> 2342</ul> 2343</li> 2344</ul> 2345</div> 2346</div> 2347<!-- ========= END OF CLASS DATA ========= --> 2348<!-- ======= START OF BOTTOM NAVBAR ====== --> 2349<div class="bottomNav"><a name="navbar.bottom"> 2350<!-- --> 2351</a> 2352<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> 2353<a name="navbar.bottom.firstrow"> 2354<!-- --> 2355</a> 2356<ul class="navList" title="Navigation"> 2357<li><a href="../../../../overview-summary.html">Overview</a></li> 2358<li><a href="package-summary.html">Package</a></li> 2359<li class="navBarCell1Rev">Class</li> 2360<li><a href="class-use/JsonNode.html">Use</a></li> 2361<li><a href="package-tree.html">Tree</a></li> 2362<li><a href="../../../../deprecated-list.html">Deprecated</a></li> 2363<li><a href="../../../../index-all.html">Index</a></li> 2364<li><a href="../../../../help-doc.html">Help</a></li> 2365</ul> 2366</div> 2367<div class="subNav"> 2368<ul class="navList"> 2369<li><a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.Reference.html" title="class in com.fasterxml.jackson.databind"><span class="typeNameLink">Prev Class</span></a></li> 2370<li><a href="../../../../com/fasterxml/jackson/databind/JsonSerializable.html" title="interface in com.fasterxml.jackson.databind"><span class="typeNameLink">Next Class</span></a></li> 2371</ul> 2372<ul class="navList"> 2373<li><a href="../../../../index.html?com/fasterxml/jackson/databind/JsonNode.html" target="_top">Frames</a></li> 2374<li><a href="JsonNode.html" target="_top">No Frames</a></li> 2375</ul> 2376<ul class="navList" id="allclasses_navbar_bottom"> 2377<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> 2378</ul> 2379<div> 2380<script type="text/javascript"><!-- 2381 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 2382 if(window==top) { 2383 allClassesLink.style.display = "block"; 2384 } 2385 else { 2386 allClassesLink.style.display = "none"; 2387 } 2388 //--> 2389</script> 2390</div> 2391<div> 2392<ul class="subNavList"> 2393<li>Summary: </li> 2394<li>Nested | </li> 2395<li>Field | </li> 2396<li><a href="#constructor.summary">Constr</a> | </li> 2397<li><a href="#method.summary">Method</a></li> 2398</ul> 2399<ul class="subNavList"> 2400<li>Detail: </li> 2401<li>Field | </li> 2402<li><a href="#constructor.detail">Constr</a> | </li> 2403<li><a href="#method.detail">Method</a></li> 2404</ul> 2405</div> 2406<a name="skip.navbar.bottom"> 2407<!-- --> 2408</a></div> 2409<!-- ======== END OF BOTTOM NAVBAR ======= --> 2410<p class="legalCopy"><small>Copyright © 2008–2019 <a href="http://fasterxml.com/">FasterXML</a>. All rights reserved.</small></p> 2411</body> 2412</html> 2413