1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 2<!-- NewPage --> 3<html lang="en"> 4<head> 5<!-- Generated by javadoc (version 1.7.0_25) on Sat Nov 16 21:43:20 PST 2013 --> 6<meta http-equiv="Content-Type" content="text/html" charset="UTF-8"> 7<title>ArrayBuilders (jackson-databind 2.3.0 API)</title> 8<meta name="date" content="2013-11-16"> 9<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> 10</head> 11<body> 12<script type="text/javascript"><!-- 13 if (location.href.indexOf('is-external=true') == -1) { 14 parent.document.title="ArrayBuilders (jackson-databind 2.3.0 API)"; 15 } 16//--> 17</script> 18<noscript> 19<div>JavaScript is disabled on your browser.</div> 20</noscript> 21<!-- ========= START OF TOP NAVBAR ======= --> 22<div class="topNav"><a name="navbar_top"> 23<!-- --> 24</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> 25<!-- --> 26</a> 27<ul class="navList" title="Navigation"> 28<li><a href="../../../../../overview-summary.html">Overview</a></li> 29<li><a href="package-summary.html">Package</a></li> 30<li class="navBarCell1Rev">Class</li> 31<li><a href="class-use/ArrayBuilders.html">Use</a></li> 32<li><a href="package-tree.html">Tree</a></li> 33<li><a href="../../../../../deprecated-list.html">Deprecated</a></li> 34<li><a href="../../../../../index-all.html">Index</a></li> 35<li><a href="../../../../../help-doc.html">Help</a></li> 36</ul> 37</div> 38<div class="subNav"> 39<ul class="navList"> 40<li><a href="../../../../../com/fasterxml/jackson/databind/util/Annotations.html" title="interface in com.fasterxml.jackson.databind.util"><span class="strong">Prev Class</span></a></li> 41<li><a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.BooleanBuilder.html" title="class in com.fasterxml.jackson.databind.util"><span class="strong">Next Class</span></a></li> 42</ul> 43<ul class="navList"> 44<li><a href="../../../../../index.html?com/fasterxml/jackson/databind/util/ArrayBuilders.html" target="_top">Frames</a></li> 45<li><a href="ArrayBuilders.html" target="_top">No Frames</a></li> 46</ul> 47<ul class="navList" id="allclasses_navbar_top"> 48<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> 49</ul> 50<div> 51<script type="text/javascript"><!-- 52 allClassesLink = document.getElementById("allclasses_navbar_top"); 53 if(window==top) { 54 allClassesLink.style.display = "block"; 55 } 56 else { 57 allClassesLink.style.display = "none"; 58 } 59 //--> 60</script> 61</div> 62<div> 63<ul class="subNavList"> 64<li>Summary: </li> 65<li><a href="#nested_class_summary">Nested</a> | </li> 66<li>Field | </li> 67<li><a href="#constructor_summary">Constr</a> | </li> 68<li><a href="#method_summary">Method</a></li> 69</ul> 70<ul class="subNavList"> 71<li>Detail: </li> 72<li>Field | </li> 73<li><a href="#constructor_detail">Constr</a> | </li> 74<li><a href="#method_detail">Method</a></li> 75</ul> 76</div> 77<a name="skip-navbar_top"> 78<!-- --> 79</a></div> 80<!-- ========= END OF TOP NAVBAR ========= --> 81<!-- ======== START OF CLASS DATA ======== --> 82<div class="header"> 83<div class="subTitle">com.fasterxml.jackson.databind.util</div> 84<h2 title="Class ArrayBuilders" class="title">Class ArrayBuilders</h2> 85</div> 86<div class="contentContainer"> 87<ul class="inheritance"> 88<li><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> 89<li> 90<ul class="inheritance"> 91<li>com.fasterxml.jackson.databind.util.ArrayBuilders</li> 92</ul> 93</li> 94</ul> 95<div class="description"> 96<ul class="blockList"> 97<li class="blockList"> 98<hr> 99<br> 100<pre>public final class <span class="strong">ArrayBuilders</span> 101extends <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre> 102<div class="block">Helper class that contains set of distinct builders for different 103 arrays of primitive values. It also provides trivially simple 104 reuse scheme, which assumes that caller knows not to use instances 105 concurrently (which works ok with primitive arrays since they can 106 not contain other non-primitive types).</div> 107</li> 108</ul> 109</div> 110<div class="summary"> 111<ul class="blockList"> 112<li class="blockList"> 113<!-- ======== NESTED CLASS SUMMARY ======== --> 114<ul class="blockList"> 115<li class="blockList"><a name="nested_class_summary"> 116<!-- --> 117</a> 118<h3>Nested Class Summary</h3> 119<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation"> 120<caption><span>Nested Classes</span><span class="tabEnd"> </span></caption> 121<tr> 122<th class="colFirst" scope="col">Modifier and Type</th> 123<th class="colLast" scope="col">Class and Description</th> 124</tr> 125<tr class="altColor"> 126<td class="colFirst"><code>static class </code></td> 127<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.BooleanBuilder.html" title="class in com.fasterxml.jackson.databind.util">ArrayBuilders.BooleanBuilder</a></strong></code> </td> 128</tr> 129<tr class="rowColor"> 130<td class="colFirst"><code>static class </code></td> 131<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.ByteBuilder.html" title="class in com.fasterxml.jackson.databind.util">ArrayBuilders.ByteBuilder</a></strong></code> </td> 132</tr> 133<tr class="altColor"> 134<td class="colFirst"><code>static class </code></td> 135<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.DoubleBuilder.html" title="class in com.fasterxml.jackson.databind.util">ArrayBuilders.DoubleBuilder</a></strong></code> </td> 136</tr> 137<tr class="rowColor"> 138<td class="colFirst"><code>static class </code></td> 139<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.FloatBuilder.html" title="class in com.fasterxml.jackson.databind.util">ArrayBuilders.FloatBuilder</a></strong></code> </td> 140</tr> 141<tr class="altColor"> 142<td class="colFirst"><code>static class </code></td> 143<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.IntBuilder.html" title="class in com.fasterxml.jackson.databind.util">ArrayBuilders.IntBuilder</a></strong></code> </td> 144</tr> 145<tr class="rowColor"> 146<td class="colFirst"><code>static class </code></td> 147<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.LongBuilder.html" title="class in com.fasterxml.jackson.databind.util">ArrayBuilders.LongBuilder</a></strong></code> </td> 148</tr> 149<tr class="altColor"> 150<td class="colFirst"><code>static class </code></td> 151<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.ShortBuilder.html" title="class in com.fasterxml.jackson.databind.util">ArrayBuilders.ShortBuilder</a></strong></code> </td> 152</tr> 153</table> 154</li> 155</ul> 156<!-- ======== CONSTRUCTOR SUMMARY ======== --> 157<ul class="blockList"> 158<li class="blockList"><a name="constructor_summary"> 159<!-- --> 160</a> 161<h3>Constructor Summary</h3> 162<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> 163<caption><span>Constructors</span><span class="tabEnd"> </span></caption> 164<tr> 165<th class="colOne" scope="col">Constructor and Description</th> 166</tr> 167<tr class="altColor"> 168<td class="colOne"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.html#ArrayBuilders()">ArrayBuilders</a></strong>()</code> </td> 169</tr> 170</table> 171</li> 172</ul> 173<!-- ========== METHOD SUMMARY =========== --> 174<ul class="blockList"> 175<li class="blockList"><a name="method_summary"> 176<!-- --> 177</a> 178<h3>Method Summary</h3> 179<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> 180<caption><span>Methods</span><span class="tabEnd"> </span></caption> 181<tr> 182<th class="colFirst" scope="col">Modifier and Type</th> 183<th class="colLast" scope="col">Method and Description</th> 184</tr> 185<tr class="altColor"> 186<td class="colFirst"><code>static <T> <a href="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><T></code></td> 187<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.html#addToList(java.util.List, T)">addToList</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><T> list, 188 T element)</code> 189<div class="block">Helper method for adding specified element to a List, but also 190 considering case where the List may not have been yet constructed 191 (that is, null is passed instead).</div> 192</td> 193</tr> 194<tr class="rowColor"> 195<td class="colFirst"><code>static <T> <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><T></code></td> 196<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.html#arrayAsIterable(T[])">arrayAsIterable</a></strong>(T[] array)</code> </td> 197</tr> 198<tr class="altColor"> 199<td class="colFirst"><code>static <T> <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</a><T></code></td> 200<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.html#arrayAsIterator(T[])">arrayAsIterator</a></strong>(T[] array)</code> 201<div class="block">Helper method for exposing contents of arrays using a read-only iterator</div> 202</td> 203</tr> 204<tr class="rowColor"> 205<td class="colFirst"><code>static <T> <a href="http://docs.oracle.com/javase/6/docs/api/java/util/ArrayList.html?is-external=true" title="class or interface in java.util">ArrayList</a><T></code></td> 206<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.html#arrayToList(T[])">arrayToList</a></strong>(T[] elements)</code> </td> 207</tr> 208<tr class="altColor"> 209<td class="colFirst"><code>static <T> <a href="http://docs.oracle.com/javase/6/docs/api/java/util/HashSet.html?is-external=true" title="class or interface in java.util">HashSet</a><T></code></td> 210<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.html#arrayToSet(T[])">arrayToSet</a></strong>(T[] elements)</code> </td> 211</tr> 212<tr class="rowColor"> 213<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></td> 214<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.html#getArrayComparator(java.lang.Object)">getArrayComparator</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> defaultValue)</code> 215<div class="block">Helper method used for constructing simple value comparator used for 216 comparing arrays for content equality.</div> 217</td> 218</tr> 219<tr class="altColor"> 220<td class="colFirst"><code><a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.BooleanBuilder.html" title="class in com.fasterxml.jackson.databind.util">ArrayBuilders.BooleanBuilder</a></code></td> 221<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.html#getBooleanBuilder()">getBooleanBuilder</a></strong>()</code> </td> 222</tr> 223<tr class="rowColor"> 224<td class="colFirst"><code><a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.ByteBuilder.html" title="class in com.fasterxml.jackson.databind.util">ArrayBuilders.ByteBuilder</a></code></td> 225<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.html#getByteBuilder()">getByteBuilder</a></strong>()</code> </td> 226</tr> 227<tr class="altColor"> 228<td class="colFirst"><code><a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.DoubleBuilder.html" title="class in com.fasterxml.jackson.databind.util">ArrayBuilders.DoubleBuilder</a></code></td> 229<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.html#getDoubleBuilder()">getDoubleBuilder</a></strong>()</code> </td> 230</tr> 231<tr class="rowColor"> 232<td class="colFirst"><code><a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.FloatBuilder.html" title="class in com.fasterxml.jackson.databind.util">ArrayBuilders.FloatBuilder</a></code></td> 233<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.html#getFloatBuilder()">getFloatBuilder</a></strong>()</code> </td> 234</tr> 235<tr class="altColor"> 236<td class="colFirst"><code><a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.IntBuilder.html" title="class in com.fasterxml.jackson.databind.util">ArrayBuilders.IntBuilder</a></code></td> 237<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.html#getIntBuilder()">getIntBuilder</a></strong>()</code> </td> 238</tr> 239<tr class="rowColor"> 240<td class="colFirst"><code><a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.LongBuilder.html" title="class in com.fasterxml.jackson.databind.util">ArrayBuilders.LongBuilder</a></code></td> 241<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.html#getLongBuilder()">getLongBuilder</a></strong>()</code> </td> 242</tr> 243<tr class="altColor"> 244<td class="colFirst"><code><a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.ShortBuilder.html" title="class in com.fasterxml.jackson.databind.util">ArrayBuilders.ShortBuilder</a></code></td> 245<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.html#getShortBuilder()">getShortBuilder</a></strong>()</code> </td> 246</tr> 247<tr class="rowColor"> 248<td class="colFirst"><code>static <T> T[]</code></td> 249<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.html#insertInList(T[], T)">insertInList</a></strong>(T[] array, 250 T element)</code> 251<div class="block">Helper method for constructing a new array that contains specified 252 element followed by contents of the given array.</div> 253</td> 254</tr> 255<tr class="altColor"> 256<td class="colFirst"><code>static <T> T[]</code></td> 257<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.html#insertInListNoDup(T[], T)">insertInListNoDup</a></strong>(T[] array, 258 T element)</code> 259<div class="block">Helper method for constructing a new array that contains specified 260 element followed by contents of the given array but never contains 261 duplicates.</div> 262</td> 263</tr> 264<tr class="rowColor"> 265<td class="colFirst"><code>static <T> <a href="http://docs.oracle.com/javase/6/docs/api/java/util/HashSet.html?is-external=true" title="class or interface in java.util">HashSet</a><T></code></td> 266<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.html#setAndArray(java.util.Set, T[])">setAndArray</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a><T> set, 267 T[] elements)</code> </td> 268</tr> 269</table> 270<ul class="blockList"> 271<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> 272<!-- --> 273</a> 274<h3>Methods inherited from class java.lang.<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> 275<code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</a></code></li> 276</ul> 277</li> 278</ul> 279</li> 280</ul> 281</div> 282<div class="details"> 283<ul class="blockList"> 284<li class="blockList"> 285<!-- ========= CONSTRUCTOR DETAIL ======== --> 286<ul class="blockList"> 287<li class="blockList"><a name="constructor_detail"> 288<!-- --> 289</a> 290<h3>Constructor Detail</h3> 291<a name="ArrayBuilders()"> 292<!-- --> 293</a> 294<ul class="blockListLast"> 295<li class="blockList"> 296<h4>ArrayBuilders</h4> 297<pre>public ArrayBuilders()</pre> 298</li> 299</ul> 300</li> 301</ul> 302<!-- ============ METHOD DETAIL ========== --> 303<ul class="blockList"> 304<li class="blockList"><a name="method_detail"> 305<!-- --> 306</a> 307<h3>Method Detail</h3> 308<a name="getBooleanBuilder()"> 309<!-- --> 310</a> 311<ul class="blockList"> 312<li class="blockList"> 313<h4>getBooleanBuilder</h4> 314<pre>public <a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.BooleanBuilder.html" title="class in com.fasterxml.jackson.databind.util">ArrayBuilders.BooleanBuilder</a> getBooleanBuilder()</pre> 315</li> 316</ul> 317<a name="getByteBuilder()"> 318<!-- --> 319</a> 320<ul class="blockList"> 321<li class="blockList"> 322<h4>getByteBuilder</h4> 323<pre>public <a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.ByteBuilder.html" title="class in com.fasterxml.jackson.databind.util">ArrayBuilders.ByteBuilder</a> getByteBuilder()</pre> 324</li> 325</ul> 326<a name="getShortBuilder()"> 327<!-- --> 328</a> 329<ul class="blockList"> 330<li class="blockList"> 331<h4>getShortBuilder</h4> 332<pre>public <a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.ShortBuilder.html" title="class in com.fasterxml.jackson.databind.util">ArrayBuilders.ShortBuilder</a> getShortBuilder()</pre> 333</li> 334</ul> 335<a name="getIntBuilder()"> 336<!-- --> 337</a> 338<ul class="blockList"> 339<li class="blockList"> 340<h4>getIntBuilder</h4> 341<pre>public <a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.IntBuilder.html" title="class in com.fasterxml.jackson.databind.util">ArrayBuilders.IntBuilder</a> getIntBuilder()</pre> 342</li> 343</ul> 344<a name="getLongBuilder()"> 345<!-- --> 346</a> 347<ul class="blockList"> 348<li class="blockList"> 349<h4>getLongBuilder</h4> 350<pre>public <a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.LongBuilder.html" title="class in com.fasterxml.jackson.databind.util">ArrayBuilders.LongBuilder</a> getLongBuilder()</pre> 351</li> 352</ul> 353<a name="getFloatBuilder()"> 354<!-- --> 355</a> 356<ul class="blockList"> 357<li class="blockList"> 358<h4>getFloatBuilder</h4> 359<pre>public <a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.FloatBuilder.html" title="class in com.fasterxml.jackson.databind.util">ArrayBuilders.FloatBuilder</a> getFloatBuilder()</pre> 360</li> 361</ul> 362<a name="getDoubleBuilder()"> 363<!-- --> 364</a> 365<ul class="blockList"> 366<li class="blockList"> 367<h4>getDoubleBuilder</h4> 368<pre>public <a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.DoubleBuilder.html" title="class in com.fasterxml.jackson.databind.util">ArrayBuilders.DoubleBuilder</a> getDoubleBuilder()</pre> 369</li> 370</ul> 371<a name="getArrayComparator(java.lang.Object)"> 372<!-- --> 373</a> 374<ul class="blockList"> 375<li class="blockList"> 376<h4>getArrayComparator</h4> 377<pre>public static <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> getArrayComparator(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> defaultValue)</pre> 378<div class="block">Helper method used for constructing simple value comparator used for 379 comparing arrays for content equality. 380<p> 381 Note: current implementation is not optimized for speed; if performance 382 ever becomes an issue, it is possible to construct much more efficient 383 typed instances (one for Object[] and sub-types; one per primitive type).</div> 384<dl><dt><span class="strong">Since:</span></dt> 385 <dd>2.2 Moved from earlier <code>Comparators</code> class</dd></dl> 386</li> 387</ul> 388<a name="arrayToSet(java.lang.Object[])"> 389<!-- --> 390</a><a name="arrayToSet(T[])"> 391<!-- --> 392</a> 393<ul class="blockList"> 394<li class="blockList"> 395<h4>arrayToSet</h4> 396<pre>public static <T> <a href="http://docs.oracle.com/javase/6/docs/api/java/util/HashSet.html?is-external=true" title="class or interface in java.util">HashSet</a><T> arrayToSet(T[] elements)</pre> 397</li> 398</ul> 399<a name="arrayToList(java.lang.Object[])"> 400<!-- --> 401</a><a name="arrayToList(T[])"> 402<!-- --> 403</a> 404<ul class="blockList"> 405<li class="blockList"> 406<h4>arrayToList</h4> 407<pre>public static <T> <a href="http://docs.oracle.com/javase/6/docs/api/java/util/ArrayList.html?is-external=true" title="class or interface in java.util">ArrayList</a><T> arrayToList(T[] elements)</pre> 408</li> 409</ul> 410<a name="setAndArray(java.util.Set,java.lang.Object[])"> 411<!-- --> 412</a><a name="setAndArray(java.util.Set, T[])"> 413<!-- --> 414</a> 415<ul class="blockList"> 416<li class="blockList"> 417<h4>setAndArray</h4> 418<pre>public static <T> <a href="http://docs.oracle.com/javase/6/docs/api/java/util/HashSet.html?is-external=true" title="class or interface in java.util">HashSet</a><T> setAndArray(<a href="http://docs.oracle.com/javase/6/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a><T> set, 419 T[] elements)</pre> 420</li> 421</ul> 422<a name="addToList(java.util.List,java.lang.Object)"> 423<!-- --> 424</a><a name="addToList(java.util.List, T)"> 425<!-- --> 426</a> 427<ul class="blockList"> 428<li class="blockList"> 429<h4>addToList</h4> 430<pre>public static <T> <a href="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><T> addToList(<a href="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><T> list, 431 T element)</pre> 432<div class="block">Helper method for adding specified element to a List, but also 433 considering case where the List may not have been yet constructed 434 (that is, null is passed instead).</div> 435<dl><dt><span class="strong">Parameters:</span></dt><dd><code>list</code> - List to add to; may be null to indicate that a new 436 List is to be constructed</dd><dd><code>element</code> - Element to add to list</dd> 437<dt><span class="strong">Returns:</span></dt><dd>List in which element was added; either <code>list</code> 438 (if it was not null), or a newly constructed List.</dd></dl> 439</li> 440</ul> 441<a name="insertInList(java.lang.Object[],java.lang.Object)"> 442<!-- --> 443</a><a name="insertInList(T[], T)"> 444<!-- --> 445</a> 446<ul class="blockList"> 447<li class="blockList"> 448<h4>insertInList</h4> 449<pre>public static <T> T[] insertInList(T[] array, 450 T element)</pre> 451<div class="block">Helper method for constructing a new array that contains specified 452 element followed by contents of the given array. No checking is done 453 to see if element being inserted is duplicate.</div> 454</li> 455</ul> 456<a name="insertInListNoDup(java.lang.Object[],java.lang.Object)"> 457<!-- --> 458</a><a name="insertInListNoDup(T[], T)"> 459<!-- --> 460</a> 461<ul class="blockList"> 462<li class="blockList"> 463<h4>insertInListNoDup</h4> 464<pre>public static <T> T[] insertInListNoDup(T[] array, 465 T element)</pre> 466<div class="block">Helper method for constructing a new array that contains specified 467 element followed by contents of the given array but never contains 468 duplicates. 469 If element already existed, one of two things happens: if the element 470 was already the first one in array, array is returned as is; but 471 if not, a new copy is created in which element has moved as the head.</div> 472</li> 473</ul> 474<a name="arrayAsIterator(java.lang.Object[])"> 475<!-- --> 476</a><a name="arrayAsIterator(T[])"> 477<!-- --> 478</a> 479<ul class="blockList"> 480<li class="blockList"> 481<h4>arrayAsIterator</h4> 482<pre>public static <T> <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</a><T> arrayAsIterator(T[] array)</pre> 483<div class="block">Helper method for exposing contents of arrays using a read-only iterator</div> 484</li> 485</ul> 486<a name="arrayAsIterable(java.lang.Object[])"> 487<!-- --> 488</a><a name="arrayAsIterable(T[])"> 489<!-- --> 490</a> 491<ul class="blockListLast"> 492<li class="blockList"> 493<h4>arrayAsIterable</h4> 494<pre>public static <T> <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><T> arrayAsIterable(T[] array)</pre> 495</li> 496</ul> 497</li> 498</ul> 499</li> 500</ul> 501</div> 502</div> 503<!-- ========= END OF CLASS DATA ========= --> 504<!-- ======= START OF BOTTOM NAVBAR ====== --> 505<div class="bottomNav"><a name="navbar_bottom"> 506<!-- --> 507</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> 508<!-- --> 509</a> 510<ul class="navList" title="Navigation"> 511<li><a href="../../../../../overview-summary.html">Overview</a></li> 512<li><a href="package-summary.html">Package</a></li> 513<li class="navBarCell1Rev">Class</li> 514<li><a href="class-use/ArrayBuilders.html">Use</a></li> 515<li><a href="package-tree.html">Tree</a></li> 516<li><a href="../../../../../deprecated-list.html">Deprecated</a></li> 517<li><a href="../../../../../index-all.html">Index</a></li> 518<li><a href="../../../../../help-doc.html">Help</a></li> 519</ul> 520</div> 521<div class="subNav"> 522<ul class="navList"> 523<li><a href="../../../../../com/fasterxml/jackson/databind/util/Annotations.html" title="interface in com.fasterxml.jackson.databind.util"><span class="strong">Prev Class</span></a></li> 524<li><a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.BooleanBuilder.html" title="class in com.fasterxml.jackson.databind.util"><span class="strong">Next Class</span></a></li> 525</ul> 526<ul class="navList"> 527<li><a href="../../../../../index.html?com/fasterxml/jackson/databind/util/ArrayBuilders.html" target="_top">Frames</a></li> 528<li><a href="ArrayBuilders.html" target="_top">No Frames</a></li> 529</ul> 530<ul class="navList" id="allclasses_navbar_bottom"> 531<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> 532</ul> 533<div> 534<script type="text/javascript"><!-- 535 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 536 if(window==top) { 537 allClassesLink.style.display = "block"; 538 } 539 else { 540 allClassesLink.style.display = "none"; 541 } 542 //--> 543</script> 544</div> 545<div> 546<ul class="subNavList"> 547<li>Summary: </li> 548<li><a href="#nested_class_summary">Nested</a> | </li> 549<li>Field | </li> 550<li><a href="#constructor_summary">Constr</a> | </li> 551<li><a href="#method_summary">Method</a></li> 552</ul> 553<ul class="subNavList"> 554<li>Detail: </li> 555<li>Field | </li> 556<li><a href="#constructor_detail">Constr</a> | </li> 557<li><a href="#method_detail">Method</a></li> 558</ul> 559</div> 560<a name="skip-navbar_bottom"> 561<!-- --> 562</a></div> 563<!-- ======== END OF BOTTOM NAVBAR ======= --> 564<p class="legalCopy"><small>Copyright © 2012-2013 <a href="http://fasterxml.com/">FasterXML</a>. All Rights Reserved.</small></p> 565</body> 566</html> 567