1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 2<!--NewPage--> 3<HTML> 4<HEAD> 5<!-- Generated by javadoc (build 1.6.0_29) on Mon Mar 26 19:07:18 PDT 2012 --> 6<META http-equiv="Content-Type" content="text/html; charset=UTF-8"> 7<TITLE> 8ArrayBuilders (jackson-databind 2.0.0 API) 9</TITLE> 10 11<META NAME="date" CONTENT="2012-03-26"> 12 13<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style"> 14 15<SCRIPT type="text/javascript"> 16function windowTitle() 17{ 18 if (location.href.indexOf('is-external=true') == -1) { 19 parent.document.title="ArrayBuilders (jackson-databind 2.0.0 API)"; 20 } 21} 22</SCRIPT> 23<NOSCRIPT> 24</NOSCRIPT> 25 26</HEAD> 27 28<BODY BGCOLOR="white" onload="windowTitle();"> 29<HR> 30 31 32<!-- ========= START OF TOP NAVBAR ======= --> 33<A NAME="navbar_top"><!-- --></A> 34<A HREF="#skip-navbar_top" title="Skip navigation links"></A> 35<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 36<TR> 37<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 38<A NAME="navbar_top_firstrow"><!-- --></A> 39<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 40 <TR ALIGN="center" VALIGN="top"> 41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> 42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 43 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> 44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ArrayBuilders.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> 45 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 46 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 47 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 48 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 49 </TR> 50</TABLE> 51</TD> 52<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 53</EM> 54</TD> 55</TR> 56 57<TR> 58<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 59 <A HREF="../../../../../com/fasterxml/jackson/databind/util/Annotations.html" title="interface in com.fasterxml.jackson.databind.util"><B>PREV CLASS</B></A> 60 <A HREF="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.BooleanBuilder.html" title="class in com.fasterxml.jackson.databind.util"><B>NEXT CLASS</B></A></FONT></TD> 61<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 62 <A HREF="../../../../../index.html?com/fasterxml/jackson/databind/util/ArrayBuilders.html" target="_top"><B>FRAMES</B></A> 63 <A HREF="ArrayBuilders.html" target="_top"><B>NO FRAMES</B></A> 64 <SCRIPT type="text/javascript"> 65 <!-- 66 if(window==top) { 67 document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); 68 } 69 //--> 70</SCRIPT> 71<NOSCRIPT> 72 <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> 73</NOSCRIPT> 74 75 76</FONT></TD> 77</TR> 78<TR> 79<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 80 SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> 81<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 82DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> 83</TR> 84</TABLE> 85<A NAME="skip-navbar_top"></A> 86<!-- ========= END OF TOP NAVBAR ========= --> 87 88<HR> 89<!-- ======== START OF CLASS DATA ======== --> 90<H2> 91<FONT SIZE="-1"> 92com.fasterxml.jackson.databind.util</FONT> 93<BR> 94Class ArrayBuilders</H2> 95<PRE> 96<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> 97 <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>com.fasterxml.jackson.databind.util.ArrayBuilders</B> 98</PRE> 99<HR> 100<DL> 101<DT><PRE>public final class <B>ArrayBuilders</B><DT>extends <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></DL> 102</PRE> 103 104<P> 105Helper class that contains set of distinct builders for different 106 arrays of primitive values. It also provides trivially simple 107 reuse scheme, which assumes that caller knows not to use instances 108 concurrently (which works ok with primitive arrays since they can 109 not contain other non-primitive types). 110<P> 111 112<P> 113<HR> 114 115<P> 116<!-- ======== NESTED CLASS SUMMARY ======== --> 117 118<A NAME="nested_class_summary"><!-- --></A> 119<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 120<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 121<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 122<B>Nested Class Summary</B></FONT></TH> 123</TR> 124<TR BGCOLOR="white" CLASS="TableRowColor"> 125<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 126<CODE>static class</CODE></FONT></TD> 127<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.BooleanBuilder.html" title="class in com.fasterxml.jackson.databind.util">ArrayBuilders.BooleanBuilder</A></B></CODE> 128 129<BR> 130 </TD> 131</TR> 132<TR BGCOLOR="white" CLASS="TableRowColor"> 133<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 134<CODE>static class</CODE></FONT></TD> 135<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.ByteBuilder.html" title="class in com.fasterxml.jackson.databind.util">ArrayBuilders.ByteBuilder</A></B></CODE> 136 137<BR> 138 </TD> 139</TR> 140<TR BGCOLOR="white" CLASS="TableRowColor"> 141<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 142<CODE>static class</CODE></FONT></TD> 143<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.DoubleBuilder.html" title="class in com.fasterxml.jackson.databind.util">ArrayBuilders.DoubleBuilder</A></B></CODE> 144 145<BR> 146 </TD> 147</TR> 148<TR BGCOLOR="white" CLASS="TableRowColor"> 149<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 150<CODE>static class</CODE></FONT></TD> 151<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.FloatBuilder.html" title="class in com.fasterxml.jackson.databind.util">ArrayBuilders.FloatBuilder</A></B></CODE> 152 153<BR> 154 </TD> 155</TR> 156<TR BGCOLOR="white" CLASS="TableRowColor"> 157<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 158<CODE>static class</CODE></FONT></TD> 159<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.IntBuilder.html" title="class in com.fasterxml.jackson.databind.util">ArrayBuilders.IntBuilder</A></B></CODE> 160 161<BR> 162 </TD> 163</TR> 164<TR BGCOLOR="white" CLASS="TableRowColor"> 165<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 166<CODE>static class</CODE></FONT></TD> 167<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.LongBuilder.html" title="class in com.fasterxml.jackson.databind.util">ArrayBuilders.LongBuilder</A></B></CODE> 168 169<BR> 170 </TD> 171</TR> 172<TR BGCOLOR="white" CLASS="TableRowColor"> 173<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 174<CODE>static class</CODE></FONT></TD> 175<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.ShortBuilder.html" title="class in com.fasterxml.jackson.databind.util">ArrayBuilders.ShortBuilder</A></B></CODE> 176 177<BR> 178 </TD> 179</TR> 180</TABLE> 181 182<!-- ======== CONSTRUCTOR SUMMARY ======== --> 183 184<A NAME="constructor_summary"><!-- --></A> 185<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 186<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 187<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 188<B>Constructor Summary</B></FONT></TH> 189</TR> 190<TR BGCOLOR="white" CLASS="TableRowColor"> 191<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.html#ArrayBuilders()">ArrayBuilders</A></B>()</CODE> 192 193<BR> 194 </TD> 195</TR> 196</TABLE> 197 198<!-- ========== METHOD SUMMARY =========== --> 199 200<A NAME="method_summary"><!-- --></A> 201<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 202<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 203<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 204<B>Method Summary</B></FONT></TH> 205</TR> 206<TR BGCOLOR="white" CLASS="TableRowColor"> 207<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 208<CODE>static 209<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 210<TR ALIGN="right" VALIGN=""> 211<TD NOWRAP><FONT SIZE="-1"> 212<CODE><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></FONT></TD> 213</TR> 214</TABLE> 215</CODE></FONT></TD> 216<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.html#addToList(java.util.List, T)">addToList</A></B>(<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, 217 T element)</CODE> 218 219<BR> 220 Helper method for adding specified element to a List, but also 221 considering case where the List may not have been yet constructed 222 (that is, null is passed instead).</TD> 223</TR> 224<TR BGCOLOR="white" CLASS="TableRowColor"> 225<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 226<CODE>static 227<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 228<TR ALIGN="right" VALIGN=""> 229<TD NOWRAP><FONT SIZE="-1"> 230<CODE><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></FONT></TD> 231</TR> 232</TABLE> 233</CODE></FONT></TD> 234<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.html#arrayAsIterable(T[])">arrayAsIterable</A></B>(T[] array)</CODE> 235 236<BR> 237 </TD> 238</TR> 239<TR BGCOLOR="white" CLASS="TableRowColor"> 240<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 241<CODE>static 242<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 243<TR ALIGN="right" VALIGN=""> 244<TD NOWRAP><FONT SIZE="-1"> 245<CODE><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></FONT></TD> 246</TR> 247</TABLE> 248</CODE></FONT></TD> 249<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.html#arrayAsIterator(T[])">arrayAsIterator</A></B>(T[] array)</CODE> 250 251<BR> 252 Helper method for exposing contents of arrays using a read-only iterator</TD> 253</TR> 254<TR BGCOLOR="white" CLASS="TableRowColor"> 255<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 256<CODE>static 257<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 258<TR ALIGN="right" VALIGN=""> 259<TD NOWRAP><FONT SIZE="-1"> 260<CODE><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></FONT></TD> 261</TR> 262</TABLE> 263</CODE></FONT></TD> 264<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.html#arrayToList(T[])">arrayToList</A></B>(T[] elements)</CODE> 265 266<BR> 267 </TD> 268</TR> 269<TR BGCOLOR="white" CLASS="TableRowColor"> 270<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 271<CODE>static 272<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 273<TR ALIGN="right" VALIGN=""> 274<TD NOWRAP><FONT SIZE="-1"> 275<CODE><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></FONT></TD> 276</TR> 277</TABLE> 278</CODE></FONT></TD> 279<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.html#arrayToSet(T[])">arrayToSet</A></B>(T[] elements)</CODE> 280 281<BR> 282 </TD> 283</TR> 284<TR BGCOLOR="white" CLASS="TableRowColor"> 285<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 286<CODE> <A HREF="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.BooleanBuilder.html" title="class in com.fasterxml.jackson.databind.util">ArrayBuilders.BooleanBuilder</A></CODE></FONT></TD> 287<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.html#getBooleanBuilder()">getBooleanBuilder</A></B>()</CODE> 288 289<BR> 290 </TD> 291</TR> 292<TR BGCOLOR="white" CLASS="TableRowColor"> 293<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 294<CODE> <A HREF="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.ByteBuilder.html" title="class in com.fasterxml.jackson.databind.util">ArrayBuilders.ByteBuilder</A></CODE></FONT></TD> 295<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.html#getByteBuilder()">getByteBuilder</A></B>()</CODE> 296 297<BR> 298 </TD> 299</TR> 300<TR BGCOLOR="white" CLASS="TableRowColor"> 301<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 302<CODE> <A HREF="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.DoubleBuilder.html" title="class in com.fasterxml.jackson.databind.util">ArrayBuilders.DoubleBuilder</A></CODE></FONT></TD> 303<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.html#getDoubleBuilder()">getDoubleBuilder</A></B>()</CODE> 304 305<BR> 306 </TD> 307</TR> 308<TR BGCOLOR="white" CLASS="TableRowColor"> 309<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 310<CODE> <A HREF="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.FloatBuilder.html" title="class in com.fasterxml.jackson.databind.util">ArrayBuilders.FloatBuilder</A></CODE></FONT></TD> 311<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.html#getFloatBuilder()">getFloatBuilder</A></B>()</CODE> 312 313<BR> 314 </TD> 315</TR> 316<TR BGCOLOR="white" CLASS="TableRowColor"> 317<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 318<CODE> <A HREF="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.IntBuilder.html" title="class in com.fasterxml.jackson.databind.util">ArrayBuilders.IntBuilder</A></CODE></FONT></TD> 319<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.html#getIntBuilder()">getIntBuilder</A></B>()</CODE> 320 321<BR> 322 </TD> 323</TR> 324<TR BGCOLOR="white" CLASS="TableRowColor"> 325<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 326<CODE> <A HREF="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.LongBuilder.html" title="class in com.fasterxml.jackson.databind.util">ArrayBuilders.LongBuilder</A></CODE></FONT></TD> 327<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.html#getLongBuilder()">getLongBuilder</A></B>()</CODE> 328 329<BR> 330 </TD> 331</TR> 332<TR BGCOLOR="white" CLASS="TableRowColor"> 333<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 334<CODE> <A HREF="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.ShortBuilder.html" title="class in com.fasterxml.jackson.databind.util">ArrayBuilders.ShortBuilder</A></CODE></FONT></TD> 335<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.html#getShortBuilder()">getShortBuilder</A></B>()</CODE> 336 337<BR> 338 </TD> 339</TR> 340<TR BGCOLOR="white" CLASS="TableRowColor"> 341<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 342<CODE>static 343<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 344<TR ALIGN="right" VALIGN=""> 345<TD NOWRAP><FONT SIZE="-1"> 346<CODE><T> T[]</CODE></FONT></TD> 347</TR> 348</TABLE> 349</CODE></FONT></TD> 350<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.html#insertInList(T[], T)">insertInList</A></B>(T[] array, 351 T element)</CODE> 352 353<BR> 354 Helper method for constructing a new array that contains specified 355 element followed by contents of the given array.</TD> 356</TR> 357<TR BGCOLOR="white" CLASS="TableRowColor"> 358<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 359<CODE>static 360<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 361<TR ALIGN="right" VALIGN=""> 362<TD NOWRAP><FONT SIZE="-1"> 363<CODE><T> T[]</CODE></FONT></TD> 364</TR> 365</TABLE> 366</CODE></FONT></TD> 367<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.html#insertInListNoDup(T[], T)">insertInListNoDup</A></B>(T[] array, 368 T element)</CODE> 369 370<BR> 371 Helper method for constructing a new array that contains specified 372 element followed by contents of the given array but never contains 373 duplicates.</TD> 374</TR> 375<TR BGCOLOR="white" CLASS="TableRowColor"> 376<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 377<CODE>static 378<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 379<TR ALIGN="right" VALIGN=""> 380<TD NOWRAP><FONT SIZE="-1"> 381<CODE><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></FONT></TD> 382</TR> 383</TABLE> 384</CODE></FONT></TD> 385<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.html#setAndArray(java.util.Set, T[])">setAndArray</A></B>(<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, 386 T[] elements)</CODE> 387 388<BR> 389 </TD> 390</TR> 391</TABLE> 392 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> 393<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 394<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 395<TH ALIGN="left"><B>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></B></TH> 396</TR> 397<TR BGCOLOR="white" CLASS="TableRowColor"> 398<TD><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></TD> 399</TR> 400</TABLE> 401 402<P> 403 404<!-- ========= CONSTRUCTOR DETAIL ======== --> 405 406<A NAME="constructor_detail"><!-- --></A> 407<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 408<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 409<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 410<B>Constructor Detail</B></FONT></TH> 411</TR> 412</TABLE> 413 414<A NAME="ArrayBuilders()"><!-- --></A><H3> 415ArrayBuilders</H3> 416<PRE> 417public <B>ArrayBuilders</B>()</PRE> 418<DL> 419</DL> 420 421<!-- ============ METHOD DETAIL ========== --> 422 423<A NAME="method_detail"><!-- --></A> 424<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 425<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 426<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 427<B>Method Detail</B></FONT></TH> 428</TR> 429</TABLE> 430 431<A NAME="getBooleanBuilder()"><!-- --></A><H3> 432getBooleanBuilder</H3> 433<PRE> 434public <A HREF="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.BooleanBuilder.html" title="class in com.fasterxml.jackson.databind.util">ArrayBuilders.BooleanBuilder</A> <B>getBooleanBuilder</B>()</PRE> 435<DL> 436<DD><DL> 437</DL> 438</DD> 439</DL> 440<HR> 441 442<A NAME="getByteBuilder()"><!-- --></A><H3> 443getByteBuilder</H3> 444<PRE> 445public <A HREF="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.ByteBuilder.html" title="class in com.fasterxml.jackson.databind.util">ArrayBuilders.ByteBuilder</A> <B>getByteBuilder</B>()</PRE> 446<DL> 447<DD><DL> 448</DL> 449</DD> 450</DL> 451<HR> 452 453<A NAME="getShortBuilder()"><!-- --></A><H3> 454getShortBuilder</H3> 455<PRE> 456public <A HREF="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.ShortBuilder.html" title="class in com.fasterxml.jackson.databind.util">ArrayBuilders.ShortBuilder</A> <B>getShortBuilder</B>()</PRE> 457<DL> 458<DD><DL> 459</DL> 460</DD> 461</DL> 462<HR> 463 464<A NAME="getIntBuilder()"><!-- --></A><H3> 465getIntBuilder</H3> 466<PRE> 467public <A HREF="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.IntBuilder.html" title="class in com.fasterxml.jackson.databind.util">ArrayBuilders.IntBuilder</A> <B>getIntBuilder</B>()</PRE> 468<DL> 469<DD><DL> 470</DL> 471</DD> 472</DL> 473<HR> 474 475<A NAME="getLongBuilder()"><!-- --></A><H3> 476getLongBuilder</H3> 477<PRE> 478public <A HREF="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.LongBuilder.html" title="class in com.fasterxml.jackson.databind.util">ArrayBuilders.LongBuilder</A> <B>getLongBuilder</B>()</PRE> 479<DL> 480<DD><DL> 481</DL> 482</DD> 483</DL> 484<HR> 485 486<A NAME="getFloatBuilder()"><!-- --></A><H3> 487getFloatBuilder</H3> 488<PRE> 489public <A HREF="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.FloatBuilder.html" title="class in com.fasterxml.jackson.databind.util">ArrayBuilders.FloatBuilder</A> <B>getFloatBuilder</B>()</PRE> 490<DL> 491<DD><DL> 492</DL> 493</DD> 494</DL> 495<HR> 496 497<A NAME="getDoubleBuilder()"><!-- --></A><H3> 498getDoubleBuilder</H3> 499<PRE> 500public <A HREF="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.DoubleBuilder.html" title="class in com.fasterxml.jackson.databind.util">ArrayBuilders.DoubleBuilder</A> <B>getDoubleBuilder</B>()</PRE> 501<DL> 502<DD><DL> 503</DL> 504</DD> 505</DL> 506<HR> 507 508<A NAME="arrayToSet(java.lang.Object[])"><!-- --></A><A NAME="arrayToSet(T[])"><!-- --></A><H3> 509arrayToSet</H3> 510<PRE> 511public 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> <B>arrayToSet</B>(T[] elements)</PRE> 512<DL> 513<DD><DL> 514</DL> 515</DD> 516</DL> 517<HR> 518 519<A NAME="arrayToList(java.lang.Object[])"><!-- --></A><A NAME="arrayToList(T[])"><!-- --></A><H3> 520arrayToList</H3> 521<PRE> 522public 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> <B>arrayToList</B>(T[] elements)</PRE> 523<DL> 524<DD><DL> 525</DL> 526</DD> 527</DL> 528<HR> 529 530<A NAME="setAndArray(java.util.Set,java.lang.Object[])"><!-- --></A><A NAME="setAndArray(java.util.Set, T[])"><!-- --></A><H3> 531setAndArray</H3> 532<PRE> 533public 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> <B>setAndArray</B>(<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, 534 T[] elements)</PRE> 535<DL> 536<DD><DL> 537</DL> 538</DD> 539</DL> 540<HR> 541 542<A NAME="addToList(java.util.List,java.lang.Object)"><!-- --></A><A NAME="addToList(java.util.List, T)"><!-- --></A><H3> 543addToList</H3> 544<PRE> 545public 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> <B>addToList</B>(<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, 546 T element)</PRE> 547<DL> 548<DD>Helper method for adding specified element to a List, but also 549 considering case where the List may not have been yet constructed 550 (that is, null is passed instead). 551<P> 552<DD><DL> 553<DT><B>Parameters:</B><DD><CODE>list</CODE> - List to add to; may be null to indicate that a new 554 List is to be constructed<DD><CODE>element</CODE> - Element to add to list 555<DT><B>Returns:</B><DD>List in which element was added; either <code>list</code> 556 (if it was not null), or a newly constructed List.</DL> 557</DD> 558</DL> 559<HR> 560 561<A NAME="insertInList(java.lang.Object[],java.lang.Object)"><!-- --></A><A NAME="insertInList(T[], T)"><!-- --></A><H3> 562insertInList</H3> 563<PRE> 564public static <T> T[] <B>insertInList</B>(T[] array, 565 T element)</PRE> 566<DL> 567<DD>Helper method for constructing a new array that contains specified 568 element followed by contents of the given array. No checking is done 569 to see if element being inserted is duplicate. 570<P> 571<DD><DL> 572</DL> 573</DD> 574</DL> 575<HR> 576 577<A NAME="insertInListNoDup(java.lang.Object[],java.lang.Object)"><!-- --></A><A NAME="insertInListNoDup(T[], T)"><!-- --></A><H3> 578insertInListNoDup</H3> 579<PRE> 580public static <T> T[] <B>insertInListNoDup</B>(T[] array, 581 T element)</PRE> 582<DL> 583<DD>Helper method for constructing a new array that contains specified 584 element followed by contents of the given array but never contains 585 duplicates. 586 If element already existed, one of two things happens: if the element 587 was already the first one in array, array is returned as is; but 588 if not, a new copy is created in which element has moved as the head. 589<P> 590<DD><DL> 591</DL> 592</DD> 593</DL> 594<HR> 595 596<A NAME="arrayAsIterator(java.lang.Object[])"><!-- --></A><A NAME="arrayAsIterator(T[])"><!-- --></A><H3> 597arrayAsIterator</H3> 598<PRE> 599public 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> <B>arrayAsIterator</B>(T[] array)</PRE> 600<DL> 601<DD>Helper method for exposing contents of arrays using a read-only iterator 602<P> 603<DD><DL> 604</DL> 605</DD> 606</DL> 607<HR> 608 609<A NAME="arrayAsIterable(java.lang.Object[])"><!-- --></A><A NAME="arrayAsIterable(T[])"><!-- --></A><H3> 610arrayAsIterable</H3> 611<PRE> 612public 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> <B>arrayAsIterable</B>(T[] array)</PRE> 613<DL> 614<DD><DL> 615</DL> 616</DD> 617</DL> 618<!-- ========= END OF CLASS DATA ========= --> 619<HR> 620 621 622<!-- ======= START OF BOTTOM NAVBAR ====== --> 623<A NAME="navbar_bottom"><!-- --></A> 624<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> 625<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 626<TR> 627<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 628<A NAME="navbar_bottom_firstrow"><!-- --></A> 629<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 630 <TR ALIGN="center" VALIGN="top"> 631 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> 632 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 633 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> 634 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ArrayBuilders.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> 635 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 636 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 637 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 638 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 639 </TR> 640</TABLE> 641</TD> 642<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 643</EM> 644</TD> 645</TR> 646 647<TR> 648<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 649 <A HREF="../../../../../com/fasterxml/jackson/databind/util/Annotations.html" title="interface in com.fasterxml.jackson.databind.util"><B>PREV CLASS</B></A> 650 <A HREF="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.BooleanBuilder.html" title="class in com.fasterxml.jackson.databind.util"><B>NEXT CLASS</B></A></FONT></TD> 651<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 652 <A HREF="../../../../../index.html?com/fasterxml/jackson/databind/util/ArrayBuilders.html" target="_top"><B>FRAMES</B></A> 653 <A HREF="ArrayBuilders.html" target="_top"><B>NO FRAMES</B></A> 654 <SCRIPT type="text/javascript"> 655 <!-- 656 if(window==top) { 657 document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); 658 } 659 //--> 660</SCRIPT> 661<NOSCRIPT> 662 <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> 663</NOSCRIPT> 664 665 666</FONT></TD> 667</TR> 668<TR> 669<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 670 SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> 671<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 672DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> 673</TR> 674</TABLE> 675<A NAME="skip-navbar_bottom"></A> 676<!-- ======== END OF BOTTOM NAVBAR ======= --> 677 678<HR> 679Copyright © 2012 <a href="http://fasterxml.com">fasterxml.com</a>. All Rights Reserved. 680</BODY> 681</HTML> 682