• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 Sat Apr 25 17:14:48 PDT 2020 -->
6<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
7<title>ArrayBuilders (jackson-databind 2.11.0 API)</title>
8<meta name="date" content="2020-04-25">
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="ArrayBuilders (jackson-databind 2.11.0 API)";
17        }
18    }
19    catch(err) {
20    }
21//-->
22var methods = {"i0":9,"i1":9,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":9};
23var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance 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/ArrayBuilders.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/util/Annotations.html" title="interface in com.fasterxml.jackson.databind.util"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
54<li><a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.BooleanBuilder.html" title="class in com.fasterxml.jackson.databind.util"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
55</ul>
56<ul class="navList">
57<li><a href="../../../../../index.html?com/fasterxml/jackson/databind/util/ArrayBuilders.html" target="_top">Frames</a></li>
58<li><a href="ArrayBuilders.html" target="_top">No&nbsp;Frames</a></li>
59</ul>
60<ul class="navList" id="allclasses_navbar_top">
61<li><a href="../../../../../allclasses-noframe.html">All&nbsp;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:&nbsp;</li>
78<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
79<li>Field&nbsp;|&nbsp;</li>
80<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
81<li><a href="#method.summary">Method</a></li>
82</ul>
83<ul class="subNavList">
84<li>Detail:&nbsp;</li>
85<li>Field&nbsp;|&nbsp;</li>
86<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</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.util</div>
97<h2 title="Class ArrayBuilders" class="title">Class ArrayBuilders</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>com.fasterxml.jackson.databind.util.ArrayBuilders</li>
105</ul>
106</li>
107</ul>
108<div class="description">
109<ul class="blockList">
110<li class="blockList">
111<hr>
112<br>
113<pre>public final class <span class="typeNameLabel">ArrayBuilders</span>
114extends <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></pre>
115<div class="block">Helper class that contains set of distinct builders for different
116 arrays of primitive values. It also provides trivially simple
117 reuse scheme, which assumes that caller knows not to use instances
118 concurrently (which works ok with primitive arrays since they can
119 not contain other non-primitive types).
120 Also note that instances are not thread safe; the intent is that
121 a builder is constructed on per-call (deserialization) basis.</div>
122</li>
123</ul>
124</div>
125<div class="summary">
126<ul class="blockList">
127<li class="blockList">
128<!-- ======== NESTED CLASS SUMMARY ======== -->
129<ul class="blockList">
130<li class="blockList"><a name="nested.class.summary">
131<!--   -->
132</a>
133<h3>Nested Class Summary</h3>
134<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation">
135<caption><span>Nested Classes</span><span class="tabEnd">&nbsp;</span></caption>
136<tr>
137<th class="colFirst" scope="col">Modifier and Type</th>
138<th class="colLast" scope="col">Class and Description</th>
139</tr>
140<tr class="altColor">
141<td class="colFirst"><code>static class&nbsp;</code></td>
142<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.BooleanBuilder.html" title="class in com.fasterxml.jackson.databind.util">ArrayBuilders.BooleanBuilder</a></span></code>&nbsp;</td>
143</tr>
144<tr class="rowColor">
145<td class="colFirst"><code>static class&nbsp;</code></td>
146<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.ByteBuilder.html" title="class in com.fasterxml.jackson.databind.util">ArrayBuilders.ByteBuilder</a></span></code>&nbsp;</td>
147</tr>
148<tr class="altColor">
149<td class="colFirst"><code>static class&nbsp;</code></td>
150<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.DoubleBuilder.html" title="class in com.fasterxml.jackson.databind.util">ArrayBuilders.DoubleBuilder</a></span></code>&nbsp;</td>
151</tr>
152<tr class="rowColor">
153<td class="colFirst"><code>static class&nbsp;</code></td>
154<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.FloatBuilder.html" title="class in com.fasterxml.jackson.databind.util">ArrayBuilders.FloatBuilder</a></span></code>&nbsp;</td>
155</tr>
156<tr class="altColor">
157<td class="colFirst"><code>static class&nbsp;</code></td>
158<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.IntBuilder.html" title="class in com.fasterxml.jackson.databind.util">ArrayBuilders.IntBuilder</a></span></code>&nbsp;</td>
159</tr>
160<tr class="rowColor">
161<td class="colFirst"><code>static class&nbsp;</code></td>
162<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.LongBuilder.html" title="class in com.fasterxml.jackson.databind.util">ArrayBuilders.LongBuilder</a></span></code>&nbsp;</td>
163</tr>
164<tr class="altColor">
165<td class="colFirst"><code>static class&nbsp;</code></td>
166<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.ShortBuilder.html" title="class in com.fasterxml.jackson.databind.util">ArrayBuilders.ShortBuilder</a></span></code>&nbsp;</td>
167</tr>
168</table>
169</li>
170</ul>
171<!-- ======== CONSTRUCTOR SUMMARY ======== -->
172<ul class="blockList">
173<li class="blockList"><a name="constructor.summary">
174<!--   -->
175</a>
176<h3>Constructor Summary</h3>
177<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
178<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
179<tr>
180<th class="colOne" scope="col">Constructor and Description</th>
181</tr>
182<tr class="altColor">
183<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.html#ArrayBuilders--">ArrayBuilders</a></span>()</code>&nbsp;</td>
184</tr>
185</table>
186</li>
187</ul>
188<!-- ========== METHOD SUMMARY =========== -->
189<ul class="blockList">
190<li class="blockList"><a name="method.summary">
191<!--   -->
192</a>
193<h3>Method Summary</h3>
194<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
195<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
196<tr>
197<th class="colFirst" scope="col">Modifier and Type</th>
198<th class="colLast" scope="col">Method and Description</th>
199</tr>
200<tr id="i0" class="altColor">
201<td class="colFirst"><code>static &lt;T&gt;&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/HashSet.html?is-external=true" title="class or interface in java.util">HashSet</a>&lt;T&gt;</code></td>
202<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.html#arrayToSet-T:A-">arrayToSet</a></span>(T[]&nbsp;elements)</code>&nbsp;</td>
203</tr>
204<tr id="i1" class="rowColor">
205<td class="colFirst"><code>static <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></td>
206<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.html#getArrayComparator-java.lang.Object-">getArrayComparator</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>&nbsp;defaultValue)</code>
207<div class="block">Helper method used for constructing simple value comparator used for
208 comparing arrays for content equality.</div>
209</td>
210</tr>
211<tr id="i2" class="altColor">
212<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>
213<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.html#getBooleanBuilder--">getBooleanBuilder</a></span>()</code>&nbsp;</td>
214</tr>
215<tr id="i3" class="rowColor">
216<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>
217<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.html#getByteBuilder--">getByteBuilder</a></span>()</code>&nbsp;</td>
218</tr>
219<tr id="i4" class="altColor">
220<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>
221<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.html#getDoubleBuilder--">getDoubleBuilder</a></span>()</code>&nbsp;</td>
222</tr>
223<tr id="i5" class="rowColor">
224<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>
225<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.html#getFloatBuilder--">getFloatBuilder</a></span>()</code>&nbsp;</td>
226</tr>
227<tr id="i6" class="altColor">
228<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>
229<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.html#getIntBuilder--">getIntBuilder</a></span>()</code>&nbsp;</td>
230</tr>
231<tr id="i7" class="rowColor">
232<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>
233<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.html#getLongBuilder--">getLongBuilder</a></span>()</code>&nbsp;</td>
234</tr>
235<tr id="i8" class="altColor">
236<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>
237<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.html#getShortBuilder--">getShortBuilder</a></span>()</code>&nbsp;</td>
238</tr>
239<tr id="i9" class="rowColor">
240<td class="colFirst"><code>static &lt;T&gt;&nbsp;T[]</code></td>
241<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.html#insertInListNoDup-T:A-T-">insertInListNoDup</a></span>(T[]&nbsp;array,
242                 T&nbsp;element)</code>
243<div class="block">Helper method for constructing a new array that contains specified
244 element followed by contents of the given array but never contains
245 duplicates.</div>
246</td>
247</tr>
248</table>
249<ul class="blockList">
250<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
251<!--   -->
252</a>
253<h3>Methods inherited from class&nbsp;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>
254<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#equals-java.lang.Object-" title="class or interface in java.lang">equals</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#toString--" title="class or interface in java.lang">toString</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>
255</ul>
256</li>
257</ul>
258</li>
259</ul>
260</div>
261<div class="details">
262<ul class="blockList">
263<li class="blockList">
264<!-- ========= CONSTRUCTOR DETAIL ======== -->
265<ul class="blockList">
266<li class="blockList"><a name="constructor.detail">
267<!--   -->
268</a>
269<h3>Constructor Detail</h3>
270<a name="ArrayBuilders--">
271<!--   -->
272</a>
273<ul class="blockListLast">
274<li class="blockList">
275<h4>ArrayBuilders</h4>
276<pre>public&nbsp;ArrayBuilders()</pre>
277</li>
278</ul>
279</li>
280</ul>
281<!-- ============ METHOD DETAIL ========== -->
282<ul class="blockList">
283<li class="blockList"><a name="method.detail">
284<!--   -->
285</a>
286<h3>Method Detail</h3>
287<a name="getBooleanBuilder--">
288<!--   -->
289</a>
290<ul class="blockList">
291<li class="blockList">
292<h4>getBooleanBuilder</h4>
293<pre>public&nbsp;<a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.BooleanBuilder.html" title="class in com.fasterxml.jackson.databind.util">ArrayBuilders.BooleanBuilder</a>&nbsp;getBooleanBuilder()</pre>
294</li>
295</ul>
296<a name="getByteBuilder--">
297<!--   -->
298</a>
299<ul class="blockList">
300<li class="blockList">
301<h4>getByteBuilder</h4>
302<pre>public&nbsp;<a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.ByteBuilder.html" title="class in com.fasterxml.jackson.databind.util">ArrayBuilders.ByteBuilder</a>&nbsp;getByteBuilder()</pre>
303</li>
304</ul>
305<a name="getShortBuilder--">
306<!--   -->
307</a>
308<ul class="blockList">
309<li class="blockList">
310<h4>getShortBuilder</h4>
311<pre>public&nbsp;<a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.ShortBuilder.html" title="class in com.fasterxml.jackson.databind.util">ArrayBuilders.ShortBuilder</a>&nbsp;getShortBuilder()</pre>
312</li>
313</ul>
314<a name="getIntBuilder--">
315<!--   -->
316</a>
317<ul class="blockList">
318<li class="blockList">
319<h4>getIntBuilder</h4>
320<pre>public&nbsp;<a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.IntBuilder.html" title="class in com.fasterxml.jackson.databind.util">ArrayBuilders.IntBuilder</a>&nbsp;getIntBuilder()</pre>
321</li>
322</ul>
323<a name="getLongBuilder--">
324<!--   -->
325</a>
326<ul class="blockList">
327<li class="blockList">
328<h4>getLongBuilder</h4>
329<pre>public&nbsp;<a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.LongBuilder.html" title="class in com.fasterxml.jackson.databind.util">ArrayBuilders.LongBuilder</a>&nbsp;getLongBuilder()</pre>
330</li>
331</ul>
332<a name="getFloatBuilder--">
333<!--   -->
334</a>
335<ul class="blockList">
336<li class="blockList">
337<h4>getFloatBuilder</h4>
338<pre>public&nbsp;<a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.FloatBuilder.html" title="class in com.fasterxml.jackson.databind.util">ArrayBuilders.FloatBuilder</a>&nbsp;getFloatBuilder()</pre>
339</li>
340</ul>
341<a name="getDoubleBuilder--">
342<!--   -->
343</a>
344<ul class="blockList">
345<li class="blockList">
346<h4>getDoubleBuilder</h4>
347<pre>public&nbsp;<a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.DoubleBuilder.html" title="class in com.fasterxml.jackson.databind.util">ArrayBuilders.DoubleBuilder</a>&nbsp;getDoubleBuilder()</pre>
348</li>
349</ul>
350<a name="getArrayComparator-java.lang.Object-">
351<!--   -->
352</a>
353<ul class="blockList">
354<li class="blockList">
355<h4>getArrayComparator</h4>
356<pre>public static&nbsp;<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>&nbsp;getArrayComparator(<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>&nbsp;defaultValue)</pre>
357<div class="block">Helper method used for constructing simple value comparator used for
358 comparing arrays for content equality.
359<p>
360 Note: current implementation is not optimized for speed; if performance
361 ever becomes an issue, it is possible to construct much more efficient
362 typed instances (one for Object[] and sub-types; one per primitive type).</div>
363<dl>
364<dt><span class="simpleTagLabel">Since:</span></dt>
365<dd>2.2 Moved from earlier <code>Comparators</code> class</dd>
366</dl>
367</li>
368</ul>
369<a name="arrayToSet-java.lang.Object:A-">
370<!--   -->
371</a><a name="arrayToSet-T:A-">
372<!--   -->
373</a>
374<ul class="blockList">
375<li class="blockList">
376<h4>arrayToSet</h4>
377<pre>public static&nbsp;&lt;T&gt;&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/HashSet.html?is-external=true" title="class or interface in java.util">HashSet</a>&lt;T&gt;&nbsp;arrayToSet(T[]&nbsp;elements)</pre>
378</li>
379</ul>
380<a name="insertInListNoDup-java.lang.Object:A-java.lang.Object-">
381<!--   -->
382</a><a name="insertInListNoDup-T:A-T-">
383<!--   -->
384</a>
385<ul class="blockListLast">
386<li class="blockList">
387<h4>insertInListNoDup</h4>
388<pre>public static&nbsp;&lt;T&gt;&nbsp;T[]&nbsp;insertInListNoDup(T[]&nbsp;array,
389                                        T&nbsp;element)</pre>
390<div class="block">Helper method for constructing a new array that contains specified
391 element followed by contents of the given array but never contains
392 duplicates.
393 If element already existed, one of two things happens: if the element
394 was already the first one in array, array is returned as is; but
395 if not, a new copy is created in which element has moved as the head.</div>
396</li>
397</ul>
398</li>
399</ul>
400</li>
401</ul>
402</div>
403</div>
404<!-- ========= END OF CLASS DATA ========= -->
405<!-- ======= START OF BOTTOM NAVBAR ====== -->
406<div class="bottomNav"><a name="navbar.bottom">
407<!--   -->
408</a>
409<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
410<a name="navbar.bottom.firstrow">
411<!--   -->
412</a>
413<ul class="navList" title="Navigation">
414<li><a href="../../../../../overview-summary.html">Overview</a></li>
415<li><a href="package-summary.html">Package</a></li>
416<li class="navBarCell1Rev">Class</li>
417<li><a href="class-use/ArrayBuilders.html">Use</a></li>
418<li><a href="package-tree.html">Tree</a></li>
419<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
420<li><a href="../../../../../index-all.html">Index</a></li>
421<li><a href="../../../../../help-doc.html">Help</a></li>
422</ul>
423</div>
424<div class="subNav">
425<ul class="navList">
426<li><a href="../../../../../com/fasterxml/jackson/databind/util/Annotations.html" title="interface in com.fasterxml.jackson.databind.util"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
427<li><a href="../../../../../com/fasterxml/jackson/databind/util/ArrayBuilders.BooleanBuilder.html" title="class in com.fasterxml.jackson.databind.util"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
428</ul>
429<ul class="navList">
430<li><a href="../../../../../index.html?com/fasterxml/jackson/databind/util/ArrayBuilders.html" target="_top">Frames</a></li>
431<li><a href="ArrayBuilders.html" target="_top">No&nbsp;Frames</a></li>
432</ul>
433<ul class="navList" id="allclasses_navbar_bottom">
434<li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
435</ul>
436<div>
437<script type="text/javascript"><!--
438  allClassesLink = document.getElementById("allclasses_navbar_bottom");
439  if(window==top) {
440    allClassesLink.style.display = "block";
441  }
442  else {
443    allClassesLink.style.display = "none";
444  }
445  //-->
446</script>
447</div>
448<div>
449<ul class="subNavList">
450<li>Summary:&nbsp;</li>
451<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
452<li>Field&nbsp;|&nbsp;</li>
453<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
454<li><a href="#method.summary">Method</a></li>
455</ul>
456<ul class="subNavList">
457<li>Detail:&nbsp;</li>
458<li>Field&nbsp;|&nbsp;</li>
459<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
460<li><a href="#method.detail">Method</a></li>
461</ul>
462</div>
463<a name="skip.navbar.bottom">
464<!--   -->
465</a></div>
466<!-- ======== END OF BOTTOM NAVBAR ======= -->
467<p class="legalCopy"><small>Copyright &#169; 2008&#x2013;2020 <a href="http://fasterxml.com/">FasterXML</a>. All rights reserved.</small></p>
468</body>
469</html>
470