Subversion Repositories AndroidProjects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1107 chris 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_17) on Sun Nov 03 15:35:43 CET 2013 -->
6
<title>ArrayMap (libgdx API)</title>
7
<meta name="date" content="2013-11-03">
8
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
9
</head>
10
<body>
11
<script type="text/javascript"><!--
12
    if (location.href.indexOf('is-external=true') == -1) {
13
        parent.document.title="ArrayMap (libgdx API)";
14
    }
15
//-->
16
</script>
17
<noscript>
18
<div>JavaScript is disabled on your browser.</div>
19
</noscript>
20
<!-- ========= START OF TOP NAVBAR ======= -->
21
<div class="topNav"><a name="navbar_top">
22
<!--   -->
23
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
24
<!--   -->
25
</a>
26
<ul class="navList" title="Navigation">
27
<li><a href="../../../../overview-summary.html">Overview</a></li>
28
<li><a href="package-summary.html">Package</a></li>
29
<li class="navBarCell1Rev">Class</li>
30
<li><a href="class-use/ArrayMap.html">Use</a></li>
31
<li><a href="package-tree.html">Tree</a></li>
32
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
33
<li><a href="../../../../index-all.html">Index</a></li>
34
<li><a href="../../../../help-doc.html">Help</a></li>
35
</ul>
36
<div class="aboutLanguage"><em>
37
                                libgdx API
38
                                <style>
39
                                body, td, th { font-family:Helvetica, Tahoma, Arial, sans-serif; font-size:10pt }
40
                                pre, code, tt { font-size:9pt; font-family:Lucida Console, Courier New, sans-serif }
41
                                h1, h2, h3, .FrameTitleFont, .FrameHeadingFont, .TableHeadingColor font { font-size:105%;  font-weight:bold }
42
                                .TableHeadingColor { background:#EEEEFF; }
43
                                a { text-decoration:none }
44
                                a:hover { text-decoration:underline }
45
                                a:link, a:visited { color:blue }
46
                                table { border:0px }
47
                                .TableRowColor td:first-child { border-left:1px solid black }
48
                                .TableRowColor td { border:0px; border-bottom:1px solid black; border-right:1px solid black }
49
                                hr { border:0px; border-bottom:1px solid #333366; }
50
                                </style>
51
                        </em></div>
52
</div>
53
<div class="subNav">
54
<ul class="navList">
55
<li><a href="../../../../com/badlogic/gdx/utils/Array.ArrayIterator.html" title="class in com.badlogic.gdx.utils"><span class="strong">Prev Class</span></a></li>
56
<li><a href="../../../../com/badlogic/gdx/utils/ArrayMap.Entries.html" title="class in com.badlogic.gdx.utils"><span class="strong">Next Class</span></a></li>
57
</ul>
58
<ul class="navList">
59
<li><a href="../../../../index.html?com/badlogic/gdx/utils/ArrayMap.html" target="_top">Frames</a></li>
60
<li><a href="ArrayMap.html" target="_top">No Frames</a></li>
61
</ul>
62
<ul class="navList" id="allclasses_navbar_top">
63
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
64
</ul>
65
<div>
66
<script type="text/javascript"><!--
67
  allClassesLink = document.getElementById("allclasses_navbar_top");
68
  if(window==top) {
69
    allClassesLink.style.display = "block";
70
  }
71
  else {
72
    allClassesLink.style.display = "none";
73
  }
74
  //-->
75
</script>
76
</div>
77
<div>
78
<ul class="subNavList">
79
<li>Summary:&nbsp;</li>
80
<li><a href="#nested_class_summary">Nested</a>&nbsp;|&nbsp;</li>
81
<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
82
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
83
<li><a href="#method_summary">Method</a></li>
84
</ul>
85
<ul class="subNavList">
86
<li>Detail:&nbsp;</li>
87
<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
88
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
89
<li><a href="#method_detail">Method</a></li>
90
</ul>
91
</div>
92
<a name="skip-navbar_top">
93
<!--   -->
94
</a></div>
95
<!-- ========= END OF TOP NAVBAR ========= -->
96
<!-- ======== START OF CLASS DATA ======== -->
97
<div class="header">
98
<div class="subTitle">com.badlogic.gdx.utils</div>
99
<h2 title="Class ArrayMap" class="title">Class ArrayMap&lt;K,V&gt;</h2>
100
</div>
101
<div class="contentContainer">
102
<ul class="inheritance">
103
<li>java.lang.Object</li>
104
<li>
105
<ul class="inheritance">
106
<li>com.badlogic.gdx.utils.ArrayMap&lt;K,V&gt;</li>
107
</ul>
108
</li>
109
</ul>
110
<div class="description">
111
<ul class="blockList">
112
<li class="blockList">
113
<hr>
114
<br>
115
<pre>public class <span class="strong">ArrayMap&lt;K,V&gt;</span>
116
extends java.lang.Object</pre>
117
<div class="block">An ordered or unordered map of objects. This implementation uses arrays to store the keys and values, which means
118
 <a href="../../../../com/badlogic/gdx/utils/ArrayMap.html#getKey(V, boolean)"><code>gets</code></a> do a comparison for each key in the map. This is slower than a typical hash map
119
 implementation, but may be acceptable for small maps and has the benefits that keys and values can be accessed by index, which
120
 makes iteration fast. Like <a href="../../../../com/badlogic/gdx/utils/Array.html" title="class in com.badlogic.gdx.utils"><code>Array</code></a>, if ordered is false, * this class avoids a memory copy when removing elements (the
121
 last element is moved to the removed element's position).</div>
122
<dl><dt><span class="strong">Author:</span></dt>
123
  <dd>Nathan Sweet</dd></dl>
124
</li>
125
</ul>
126
</div>
127
<div class="summary">
128
<ul class="blockList">
129
<li class="blockList">
130
<!-- ======== NESTED CLASS SUMMARY ======== -->
131
<ul class="blockList">
132
<li class="blockList"><a name="nested_class_summary">
133
<!--   -->
134
</a>
135
<h3>Nested Class Summary</h3>
136
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation">
137
<caption><span>Nested Classes</span><span class="tabEnd">&nbsp;</span></caption>
138
<tr>
139
<th class="colFirst" scope="col">Modifier and Type</th>
140
<th class="colLast" scope="col">Class and Description</th>
141
</tr>
142
<tr class="altColor">
143
<td class="colFirst"><code>static class&nbsp;</code></td>
144
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/ArrayMap.Entries.html" title="class in com.badlogic.gdx.utils">ArrayMap.Entries</a>&lt;<a href="../../../../com/badlogic/gdx/utils/ArrayMap.Entries.html" title="type parameter in ArrayMap.Entries">K</a>,<a href="../../../../com/badlogic/gdx/utils/ArrayMap.Entries.html" title="type parameter in ArrayMap.Entries">V</a>&gt;</strong></code>&nbsp;</td>
145
</tr>
146
<tr class="rowColor">
147
<td class="colFirst"><code>static class&nbsp;</code></td>
148
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/ArrayMap.Keys.html" title="class in com.badlogic.gdx.utils">ArrayMap.Keys</a>&lt;<a href="../../../../com/badlogic/gdx/utils/ArrayMap.Keys.html" title="type parameter in ArrayMap.Keys">K</a>&gt;</strong></code>&nbsp;</td>
149
</tr>
150
<tr class="altColor">
151
<td class="colFirst"><code>static class&nbsp;</code></td>
152
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/ArrayMap.Values.html" title="class in com.badlogic.gdx.utils">ArrayMap.Values</a>&lt;<a href="../../../../com/badlogic/gdx/utils/ArrayMap.Values.html" title="type parameter in ArrayMap.Values">V</a>&gt;</strong></code>&nbsp;</td>
153
</tr>
154
</table>
155
</li>
156
</ul>
157
<!-- =========== FIELD SUMMARY =========== -->
158
<ul class="blockList">
159
<li class="blockList"><a name="field_summary">
160
<!--   -->
161
</a>
162
<h3>Field Summary</h3>
163
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
164
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
165
<tr>
166
<th class="colFirst" scope="col">Modifier and Type</th>
167
<th class="colLast" scope="col">Field and Description</th>
168
</tr>
169
<tr class="altColor">
170
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="type parameter in ArrayMap">K</a>[]</code></td>
171
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/ArrayMap.html#keys">keys</a></strong></code>&nbsp;</td>
172
</tr>
173
<tr class="rowColor">
174
<td class="colFirst"><code>boolean</code></td>
175
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/ArrayMap.html#ordered">ordered</a></strong></code>&nbsp;</td>
176
</tr>
177
<tr class="altColor">
178
<td class="colFirst"><code>int</code></td>
179
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/ArrayMap.html#size">size</a></strong></code>&nbsp;</td>
180
</tr>
181
<tr class="rowColor">
182
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="type parameter in ArrayMap">V</a>[]</code></td>
183
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/ArrayMap.html#values">values</a></strong></code>&nbsp;</td>
184
</tr>
185
</table>
186
</li>
187
</ul>
188
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
189
<ul class="blockList">
190
<li class="blockList"><a name="constructor_summary">
191
<!--   -->
192
</a>
193
<h3>Constructor Summary</h3>
194
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
195
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
196
<tr>
197
<th class="colOne" scope="col">Constructor and Description</th>
198
</tr>
199
<tr class="altColor">
200
<td class="colOne"><code><strong><a href="../../../../com/badlogic/gdx/utils/ArrayMap.html#ArrayMap()">ArrayMap</a></strong>()</code>
201
<div class="block">Creates an ordered map with a capacity of 16.</div>
202
</td>
203
</tr>
204
<tr class="rowColor">
205
<td class="colOne"><code><strong><a href="../../../../com/badlogic/gdx/utils/ArrayMap.html#ArrayMap(com.badlogic.gdx.utils.ArrayMap)">ArrayMap</a></strong>(<a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="class in com.badlogic.gdx.utils">ArrayMap</a>&nbsp;array)</code>
206
<div class="block">Creates a new map containing the elements in the specified map.</div>
207
</td>
208
</tr>
209
<tr class="altColor">
210
<td class="colOne"><code><strong><a href="../../../../com/badlogic/gdx/utils/ArrayMap.html#ArrayMap(boolean, int)">ArrayMap</a></strong>(boolean&nbsp;ordered,
211
        int&nbsp;capacity)</code>&nbsp;</td>
212
</tr>
213
<tr class="rowColor">
214
<td class="colOne"><code><strong><a href="../../../../com/badlogic/gdx/utils/ArrayMap.html#ArrayMap(boolean, int, java.lang.Class, java.lang.Class)">ArrayMap</a></strong>(boolean&nbsp;ordered,
215
        int&nbsp;capacity,
216
        java.lang.Class&nbsp;keyArrayType,
217
        java.lang.Class&nbsp;valueArrayType)</code>
218
<div class="block">Creates a new map with <a href="../../../../com/badlogic/gdx/utils/ArrayMap.html#keys"><code>keys</code></a> and <a href="../../../../com/badlogic/gdx/utils/ArrayMap.html#values"><code>values</code></a> of the specified type.</div>
219
</td>
220
</tr>
221
<tr class="altColor">
222
<td class="colOne"><code><strong><a href="../../../../com/badlogic/gdx/utils/ArrayMap.html#ArrayMap(java.lang.Class, java.lang.Class)">ArrayMap</a></strong>(java.lang.Class&nbsp;keyArrayType,
223
        java.lang.Class&nbsp;valueArrayType)</code>
224
<div class="block">Creates an ordered map with <a href="../../../../com/badlogic/gdx/utils/ArrayMap.html#keys"><code>keys</code></a> and <a href="../../../../com/badlogic/gdx/utils/ArrayMap.html#values"><code>values</code></a> of the specified type and a capacity of 16.</div>
225
</td>
226
</tr>
227
<tr class="rowColor">
228
<td class="colOne"><code><strong><a href="../../../../com/badlogic/gdx/utils/ArrayMap.html#ArrayMap(int)">ArrayMap</a></strong>(int&nbsp;capacity)</code>
229
<div class="block">Creates an ordered map with the specified capacity.</div>
230
</td>
231
</tr>
232
</table>
233
</li>
234
</ul>
235
<!-- ========== METHOD SUMMARY =========== -->
236
<ul class="blockList">
237
<li class="blockList"><a name="method_summary">
238
<!--   -->
239
</a>
240
<h3>Method Summary</h3>
241
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
242
<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
243
<tr>
244
<th class="colFirst" scope="col">Modifier and Type</th>
245
<th class="colLast" scope="col">Method and Description</th>
246
</tr>
247
<tr class="altColor">
248
<td class="colFirst"><code>void</code></td>
249
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/ArrayMap.html#clear()">clear</a></strong>()</code>&nbsp;</td>
250
</tr>
251
<tr class="rowColor">
252
<td class="colFirst"><code>void</code></td>
253
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/ArrayMap.html#clear(int)">clear</a></strong>(int&nbsp;maximumCapacity)</code>
254
<div class="block">Clears the map and reduces the size of the backing arrays to be the specified capacity if they are larger.</div>
255
</td>
256
</tr>
257
<tr class="altColor">
258
<td class="colFirst"><code>boolean</code></td>
259
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/ArrayMap.html#containsKey(K)">containsKey</a></strong>(<a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="type parameter in ArrayMap">K</a>&nbsp;key)</code>&nbsp;</td>
260
</tr>
261
<tr class="rowColor">
262
<td class="colFirst"><code>boolean</code></td>
263
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/ArrayMap.html#containsValue(V, boolean)">containsValue</a></strong>(<a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="type parameter in ArrayMap">V</a>&nbsp;value,
264
             boolean&nbsp;identity)</code>&nbsp;</td>
265
</tr>
266
<tr class="altColor">
267
<td class="colFirst"><code>void</code></td>
268
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/ArrayMap.html#ensureCapacity(int)">ensureCapacity</a></strong>(int&nbsp;additionalCapacity)</code>
269
<div class="block">Increases the size of the backing arrays to acommodate the specified number of additional entries.</div>
270
</td>
271
</tr>
272
<tr class="rowColor">
273
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/ArrayMap.Entries.html" title="class in com.badlogic.gdx.utils">ArrayMap.Entries</a>&lt;<a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="type parameter in ArrayMap">K</a>,<a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="type parameter in ArrayMap">V</a>&gt;</code></td>
274
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/ArrayMap.html#entries()">entries</a></strong>()</code>
275
<div class="block">Returns an iterator for the entries in the map.</div>
276
</td>
277
</tr>
278
<tr class="altColor">
279
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="type parameter in ArrayMap">K</a></code></td>
280
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/ArrayMap.html#firstKey()">firstKey</a></strong>()</code>&nbsp;</td>
281
</tr>
282
<tr class="rowColor">
283
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="type parameter in ArrayMap">V</a></code></td>
284
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/ArrayMap.html#firstValue()">firstValue</a></strong>()</code>&nbsp;</td>
285
</tr>
286
<tr class="altColor">
287
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="type parameter in ArrayMap">V</a></code></td>
288
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/ArrayMap.html#get(K)">get</a></strong>(<a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="type parameter in ArrayMap">K</a>&nbsp;key)</code>
289
<div class="block">Returns the value for the specified key.</div>
290
</td>
291
</tr>
292
<tr class="rowColor">
293
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="type parameter in ArrayMap">K</a></code></td>
294
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/ArrayMap.html#getKey(V, boolean)">getKey</a></strong>(<a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="type parameter in ArrayMap">V</a>&nbsp;value,
295
      boolean&nbsp;identity)</code>
296
<div class="block">Returns the key for the specified value.</div>
297
</td>
298
</tr>
299
<tr class="altColor">
300
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="type parameter in ArrayMap">K</a></code></td>
301
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/ArrayMap.html#getKeyAt(int)">getKeyAt</a></strong>(int&nbsp;index)</code>&nbsp;</td>
302
</tr>
303
<tr class="rowColor">
304
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="type parameter in ArrayMap">V</a></code></td>
305
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/ArrayMap.html#getValueAt(int)">getValueAt</a></strong>(int&nbsp;index)</code>&nbsp;</td>
306
</tr>
307
<tr class="altColor">
308
<td class="colFirst"><code>int</code></td>
309
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/ArrayMap.html#indexOfKey(K)">indexOfKey</a></strong>(<a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="type parameter in ArrayMap">K</a>&nbsp;key)</code>&nbsp;</td>
310
</tr>
311
<tr class="rowColor">
312
<td class="colFirst"><code>int</code></td>
313
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/ArrayMap.html#indexOfValue(V, boolean)">indexOfValue</a></strong>(<a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="type parameter in ArrayMap">V</a>&nbsp;value,
314
            boolean&nbsp;identity)</code>&nbsp;</td>
315
</tr>
316
<tr class="altColor">
317
<td class="colFirst"><code>void</code></td>
318
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/ArrayMap.html#insert(int, K, V)">insert</a></strong>(int&nbsp;index,
319
      <a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="type parameter in ArrayMap">K</a>&nbsp;key,
320
      <a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="type parameter in ArrayMap">V</a>&nbsp;value)</code>&nbsp;</td>
321
</tr>
322
<tr class="rowColor">
323
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/ArrayMap.Keys.html" title="class in com.badlogic.gdx.utils">ArrayMap.Keys</a>&lt;<a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="type parameter in ArrayMap">K</a>&gt;</code></td>
324
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/ArrayMap.html#keys()">keys</a></strong>()</code>
325
<div class="block">Returns an iterator for the keys in the map.</div>
326
</td>
327
</tr>
328
<tr class="altColor">
329
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="type parameter in ArrayMap">K</a></code></td>
330
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/ArrayMap.html#peekKey()">peekKey</a></strong>()</code>
331
<div class="block">Returns the last key.</div>
332
</td>
333
</tr>
334
<tr class="rowColor">
335
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="type parameter in ArrayMap">V</a></code></td>
336
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/ArrayMap.html#peekValue()">peekValue</a></strong>()</code>
337
<div class="block">Returns the last value.</div>
338
</td>
339
</tr>
340
<tr class="altColor">
341
<td class="colFirst"><code>void</code></td>
342
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/ArrayMap.html#put(K, V)">put</a></strong>(<a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="type parameter in ArrayMap">K</a>&nbsp;key,
343
   <a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="type parameter in ArrayMap">V</a>&nbsp;value)</code>&nbsp;</td>
344
</tr>
345
<tr class="rowColor">
346
<td class="colFirst"><code>void</code></td>
347
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/ArrayMap.html#put(K, V, int)">put</a></strong>(<a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="type parameter in ArrayMap">K</a>&nbsp;key,
348
   <a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="type parameter in ArrayMap">V</a>&nbsp;value,
349
   int&nbsp;index)</code>&nbsp;</td>
350
</tr>
351
<tr class="altColor">
352
<td class="colFirst"><code>void</code></td>
353
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/ArrayMap.html#putAll(com.badlogic.gdx.utils.ArrayMap)">putAll</a></strong>(<a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="class in com.badlogic.gdx.utils">ArrayMap</a>&nbsp;map)</code>&nbsp;</td>
354
</tr>
355
<tr class="rowColor">
356
<td class="colFirst"><code>void</code></td>
357
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/ArrayMap.html#putAll(com.badlogic.gdx.utils.ArrayMap, int, int)">putAll</a></strong>(<a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="class in com.badlogic.gdx.utils">ArrayMap</a>&nbsp;map,
358
      int&nbsp;offset,
359
      int&nbsp;length)</code>&nbsp;</td>
360
</tr>
361
<tr class="altColor">
362
<td class="colFirst"><code>void</code></td>
363
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/ArrayMap.html#removeIndex(int)">removeIndex</a></strong>(int&nbsp;index)</code>
364
<div class="block">Removes and returns the key/values pair at the specified index.</div>
365
</td>
366
</tr>
367
<tr class="rowColor">
368
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="type parameter in ArrayMap">V</a></code></td>
369
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/ArrayMap.html#removeKey(K)">removeKey</a></strong>(<a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="type parameter in ArrayMap">K</a>&nbsp;key)</code>&nbsp;</td>
370
</tr>
371
<tr class="altColor">
372
<td class="colFirst"><code>boolean</code></td>
373
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/ArrayMap.html#removeValue(V, boolean)">removeValue</a></strong>(<a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="type parameter in ArrayMap">V</a>&nbsp;value,
374
           boolean&nbsp;identity)</code>&nbsp;</td>
375
</tr>
376
<tr class="rowColor">
377
<td class="colFirst"><code>protected void</code></td>
378
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/ArrayMap.html#resize(int)">resize</a></strong>(int&nbsp;newSize)</code>&nbsp;</td>
379
</tr>
380
<tr class="altColor">
381
<td class="colFirst"><code>void</code></td>
382
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/ArrayMap.html#reverse()">reverse</a></strong>()</code>&nbsp;</td>
383
</tr>
384
<tr class="rowColor">
385
<td class="colFirst"><code>void</code></td>
386
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/ArrayMap.html#setKey(int, K)">setKey</a></strong>(int&nbsp;index,
387
      <a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="type parameter in ArrayMap">K</a>&nbsp;key)</code>&nbsp;</td>
388
</tr>
389
<tr class="altColor">
390
<td class="colFirst"><code>void</code></td>
391
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/ArrayMap.html#setValue(int, V)">setValue</a></strong>(int&nbsp;index,
392
        <a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="type parameter in ArrayMap">V</a>&nbsp;value)</code>&nbsp;</td>
393
</tr>
394
<tr class="rowColor">
395
<td class="colFirst"><code>void</code></td>
396
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/ArrayMap.html#shrink()">shrink</a></strong>()</code>
397
<div class="block">Reduces the size of the backing arrays to the size of the actual number of entries.</div>
398
</td>
399
</tr>
400
<tr class="altColor">
401
<td class="colFirst"><code>void</code></td>
402
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/ArrayMap.html#shuffle()">shuffle</a></strong>()</code>&nbsp;</td>
403
</tr>
404
<tr class="rowColor">
405
<td class="colFirst"><code>java.lang.String</code></td>
406
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/ArrayMap.html#toString()">toString</a></strong>()</code>&nbsp;</td>
407
</tr>
408
<tr class="altColor">
409
<td class="colFirst"><code>void</code></td>
410
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/ArrayMap.html#truncate(int)">truncate</a></strong>(int&nbsp;newSize)</code>
411
<div class="block">Reduces the size of the arrays to the specified size.</div>
412
</td>
413
</tr>
414
<tr class="rowColor">
415
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/ArrayMap.Values.html" title="class in com.badlogic.gdx.utils">ArrayMap.Values</a>&lt;<a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="type parameter in ArrayMap">V</a>&gt;</code></td>
416
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/ArrayMap.html#values()">values</a></strong>()</code>
417
<div class="block">Returns an iterator for the values in the map.</div>
418
</td>
419
</tr>
420
</table>
421
<ul class="blockList">
422
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
423
<!--   -->
424
</a>
425
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
426
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</code></li>
427
</ul>
428
</li>
429
</ul>
430
</li>
431
</ul>
432
</div>
433
<div class="details">
434
<ul class="blockList">
435
<li class="blockList">
436
<!-- ============ FIELD DETAIL =========== -->
437
<ul class="blockList">
438
<li class="blockList"><a name="field_detail">
439
<!--   -->
440
</a>
441
<h3>Field Detail</h3>
442
<a name="keys">
443
<!--   -->
444
</a>
445
<ul class="blockList">
446
<li class="blockList">
447
<h4>keys</h4>
448
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="type parameter in ArrayMap">K</a>[] keys</pre>
449
</li>
450
</ul>
451
<a name="values">
452
<!--   -->
453
</a>
454
<ul class="blockList">
455
<li class="blockList">
456
<h4>values</h4>
457
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="type parameter in ArrayMap">V</a>[] values</pre>
458
</li>
459
</ul>
460
<a name="size">
461
<!--   -->
462
</a>
463
<ul class="blockList">
464
<li class="blockList">
465
<h4>size</h4>
466
<pre>public&nbsp;int size</pre>
467
</li>
468
</ul>
469
<a name="ordered">
470
<!--   -->
471
</a>
472
<ul class="blockListLast">
473
<li class="blockList">
474
<h4>ordered</h4>
475
<pre>public&nbsp;boolean ordered</pre>
476
</li>
477
</ul>
478
</li>
479
</ul>
480
<!-- ========= CONSTRUCTOR DETAIL ======== -->
481
<ul class="blockList">
482
<li class="blockList"><a name="constructor_detail">
483
<!--   -->
484
</a>
485
<h3>Constructor Detail</h3>
486
<a name="ArrayMap()">
487
<!--   -->
488
</a>
489
<ul class="blockList">
490
<li class="blockList">
491
<h4>ArrayMap</h4>
492
<pre>public&nbsp;ArrayMap()</pre>
493
<div class="block">Creates an ordered map with a capacity of 16.</div>
494
</li>
495
</ul>
496
<a name="ArrayMap(int)">
497
<!--   -->
498
</a>
499
<ul class="blockList">
500
<li class="blockList">
501
<h4>ArrayMap</h4>
502
<pre>public&nbsp;ArrayMap(int&nbsp;capacity)</pre>
503
<div class="block">Creates an ordered map with the specified capacity.</div>
504
</li>
505
</ul>
506
<a name="ArrayMap(boolean, int)">
507
<!--   -->
508
</a>
509
<ul class="blockList">
510
<li class="blockList">
511
<h4>ArrayMap</h4>
512
<pre>public&nbsp;ArrayMap(boolean&nbsp;ordered,
513
        int&nbsp;capacity)</pre>
514
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>ordered</code> - If false, methods that remove elements may change the order of other elements in the arrays, which avoids a
515
           memory copy.</dd><dd><code>capacity</code> - Any elements added beyond this will cause the backing arrays to be grown.</dd></dl>
516
</li>
517
</ul>
518
<a name="ArrayMap(boolean, int, java.lang.Class, java.lang.Class)">
519
<!--   -->
520
</a>
521
<ul class="blockList">
522
<li class="blockList">
523
<h4>ArrayMap</h4>
524
<pre>public&nbsp;ArrayMap(boolean&nbsp;ordered,
525
        int&nbsp;capacity,
526
        java.lang.Class&nbsp;keyArrayType,
527
        java.lang.Class&nbsp;valueArrayType)</pre>
528
<div class="block">Creates a new map with <a href="../../../../com/badlogic/gdx/utils/ArrayMap.html#keys"><code>keys</code></a> and <a href="../../../../com/badlogic/gdx/utils/ArrayMap.html#values"><code>values</code></a> of the specified type.</div>
529
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>ordered</code> - If false, methods that remove elements may change the order of other elements in the arrays, which avoids a
530
           memory copy.</dd><dd><code>capacity</code> - Any elements added beyond this will cause the backing arrays to be grown.</dd></dl>
531
</li>
532
</ul>
533
<a name="ArrayMap(java.lang.Class, java.lang.Class)">
534
<!--   -->
535
</a>
536
<ul class="blockList">
537
<li class="blockList">
538
<h4>ArrayMap</h4>
539
<pre>public&nbsp;ArrayMap(java.lang.Class&nbsp;keyArrayType,
540
        java.lang.Class&nbsp;valueArrayType)</pre>
541
<div class="block">Creates an ordered map with <a href="../../../../com/badlogic/gdx/utils/ArrayMap.html#keys"><code>keys</code></a> and <a href="../../../../com/badlogic/gdx/utils/ArrayMap.html#values"><code>values</code></a> of the specified type and a capacity of 16.</div>
542
</li>
543
</ul>
544
<a name="ArrayMap(com.badlogic.gdx.utils.ArrayMap)">
545
<!--   -->
546
</a>
547
<ul class="blockListLast">
548
<li class="blockList">
549
<h4>ArrayMap</h4>
550
<pre>public&nbsp;ArrayMap(<a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="class in com.badlogic.gdx.utils">ArrayMap</a>&nbsp;array)</pre>
551
<div class="block">Creates a new map containing the elements in the specified map. The new map will have the same type of backing arrays and
552
 will be ordered if the specified map is ordered. The capacity is set to the number of elements, so any subsequent elements
553
 added will cause the backing arrays to be grown.</div>
554
</li>
555
</ul>
556
</li>
557
</ul>
558
<!-- ============ METHOD DETAIL ========== -->
559
<ul class="blockList">
560
<li class="blockList"><a name="method_detail">
561
<!--   -->
562
</a>
563
<h3>Method Detail</h3>
564
<a name="put(java.lang.Object,java.lang.Object)">
565
<!--   -->
566
</a><a name="put(K, V)">
567
<!--   -->
568
</a>
569
<ul class="blockList">
570
<li class="blockList">
571
<h4>put</h4>
572
<pre>public&nbsp;void&nbsp;put(<a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="type parameter in ArrayMap">K</a>&nbsp;key,
573
       <a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="type parameter in ArrayMap">V</a>&nbsp;value)</pre>
574
</li>
575
</ul>
576
<a name="put(java.lang.Object,java.lang.Object,int)">
577
<!--   -->
578
</a><a name="put(K, V, int)">
579
<!--   -->
580
</a>
581
<ul class="blockList">
582
<li class="blockList">
583
<h4>put</h4>
584
<pre>public&nbsp;void&nbsp;put(<a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="type parameter in ArrayMap">K</a>&nbsp;key,
585
       <a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="type parameter in ArrayMap">V</a>&nbsp;value,
586
       int&nbsp;index)</pre>
587
</li>
588
</ul>
589
<a name="putAll(com.badlogic.gdx.utils.ArrayMap)">
590
<!--   -->
591
</a>
592
<ul class="blockList">
593
<li class="blockList">
594
<h4>putAll</h4>
595
<pre>public&nbsp;void&nbsp;putAll(<a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="class in com.badlogic.gdx.utils">ArrayMap</a>&nbsp;map)</pre>
596
</li>
597
</ul>
598
<a name="putAll(com.badlogic.gdx.utils.ArrayMap, int, int)">
599
<!--   -->
600
</a>
601
<ul class="blockList">
602
<li class="blockList">
603
<h4>putAll</h4>
604
<pre>public&nbsp;void&nbsp;putAll(<a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="class in com.badlogic.gdx.utils">ArrayMap</a>&nbsp;map,
605
          int&nbsp;offset,
606
          int&nbsp;length)</pre>
607
</li>
608
</ul>
609
<a name="get(java.lang.Object)">
610
<!--   -->
611
</a><a name="get(K)">
612
<!--   -->
613
</a>
614
<ul class="blockList">
615
<li class="blockList">
616
<h4>get</h4>
617
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="type parameter in ArrayMap">V</a>&nbsp;get(<a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="type parameter in ArrayMap">K</a>&nbsp;key)</pre>
618
<div class="block">Returns the value for the specified key. Note this does a .equals() comparison of each key in reverse order until the
619
 specified key is found.</div>
620
</li>
621
</ul>
622
<a name="getKey(java.lang.Object,boolean)">
623
<!--   -->
624
</a><a name="getKey(V, boolean)">
625
<!--   -->
626
</a>
627
<ul class="blockList">
628
<li class="blockList">
629
<h4>getKey</h4>
630
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="type parameter in ArrayMap">K</a>&nbsp;getKey(<a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="type parameter in ArrayMap">V</a>&nbsp;value,
631
       boolean&nbsp;identity)</pre>
632
<div class="block">Returns the key for the specified value. Note this does a comparison of each value in reverse order until the specified
633
 value is found.</div>
634
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>identity</code> - If true, == comparison will be used. If false, .equals() comaparison will be used.</dd></dl>
635
</li>
636
</ul>
637
<a name="getKeyAt(int)">
638
<!--   -->
639
</a>
640
<ul class="blockList">
641
<li class="blockList">
642
<h4>getKeyAt</h4>
643
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="type parameter in ArrayMap">K</a>&nbsp;getKeyAt(int&nbsp;index)</pre>
644
</li>
645
</ul>
646
<a name="getValueAt(int)">
647
<!--   -->
648
</a>
649
<ul class="blockList">
650
<li class="blockList">
651
<h4>getValueAt</h4>
652
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="type parameter in ArrayMap">V</a>&nbsp;getValueAt(int&nbsp;index)</pre>
653
</li>
654
</ul>
655
<a name="firstKey()">
656
<!--   -->
657
</a>
658
<ul class="blockList">
659
<li class="blockList">
660
<h4>firstKey</h4>
661
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="type parameter in ArrayMap">K</a>&nbsp;firstKey()</pre>
662
</li>
663
</ul>
664
<a name="firstValue()">
665
<!--   -->
666
</a>
667
<ul class="blockList">
668
<li class="blockList">
669
<h4>firstValue</h4>
670
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="type parameter in ArrayMap">V</a>&nbsp;firstValue()</pre>
671
</li>
672
</ul>
673
<a name="setKey(int,java.lang.Object)">
674
<!--   -->
675
</a><a name="setKey(int, K)">
676
<!--   -->
677
</a>
678
<ul class="blockList">
679
<li class="blockList">
680
<h4>setKey</h4>
681
<pre>public&nbsp;void&nbsp;setKey(int&nbsp;index,
682
          <a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="type parameter in ArrayMap">K</a>&nbsp;key)</pre>
683
</li>
684
</ul>
685
<a name="setValue(int,java.lang.Object)">
686
<!--   -->
687
</a><a name="setValue(int, V)">
688
<!--   -->
689
</a>
690
<ul class="blockList">
691
<li class="blockList">
692
<h4>setValue</h4>
693
<pre>public&nbsp;void&nbsp;setValue(int&nbsp;index,
694
            <a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="type parameter in ArrayMap">V</a>&nbsp;value)</pre>
695
</li>
696
</ul>
697
<a name="insert(int,java.lang.Object,java.lang.Object)">
698
<!--   -->
699
</a><a name="insert(int, K, V)">
700
<!--   -->
701
</a>
702
<ul class="blockList">
703
<li class="blockList">
704
<h4>insert</h4>
705
<pre>public&nbsp;void&nbsp;insert(int&nbsp;index,
706
          <a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="type parameter in ArrayMap">K</a>&nbsp;key,
707
          <a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="type parameter in ArrayMap">V</a>&nbsp;value)</pre>
708
</li>
709
</ul>
710
<a name="containsKey(java.lang.Object)">
711
<!--   -->
712
</a><a name="containsKey(K)">
713
<!--   -->
714
</a>
715
<ul class="blockList">
716
<li class="blockList">
717
<h4>containsKey</h4>
718
<pre>public&nbsp;boolean&nbsp;containsKey(<a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="type parameter in ArrayMap">K</a>&nbsp;key)</pre>
719
</li>
720
</ul>
721
<a name="containsValue(java.lang.Object,boolean)">
722
<!--   -->
723
</a><a name="containsValue(V, boolean)">
724
<!--   -->
725
</a>
726
<ul class="blockList">
727
<li class="blockList">
728
<h4>containsValue</h4>
729
<pre>public&nbsp;boolean&nbsp;containsValue(<a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="type parameter in ArrayMap">V</a>&nbsp;value,
730
                    boolean&nbsp;identity)</pre>
731
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>identity</code> - If true, == comparison will be used. If false, .equals() comaparison will be used.</dd></dl>
732
</li>
733
</ul>
734
<a name="indexOfKey(java.lang.Object)">
735
<!--   -->
736
</a><a name="indexOfKey(K)">
737
<!--   -->
738
</a>
739
<ul class="blockList">
740
<li class="blockList">
741
<h4>indexOfKey</h4>
742
<pre>public&nbsp;int&nbsp;indexOfKey(<a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="type parameter in ArrayMap">K</a>&nbsp;key)</pre>
743
</li>
744
</ul>
745
<a name="indexOfValue(java.lang.Object,boolean)">
746
<!--   -->
747
</a><a name="indexOfValue(V, boolean)">
748
<!--   -->
749
</a>
750
<ul class="blockList">
751
<li class="blockList">
752
<h4>indexOfValue</h4>
753
<pre>public&nbsp;int&nbsp;indexOfValue(<a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="type parameter in ArrayMap">V</a>&nbsp;value,
754
               boolean&nbsp;identity)</pre>
755
</li>
756
</ul>
757
<a name="removeKey(java.lang.Object)">
758
<!--   -->
759
</a><a name="removeKey(K)">
760
<!--   -->
761
</a>
762
<ul class="blockList">
763
<li class="blockList">
764
<h4>removeKey</h4>
765
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="type parameter in ArrayMap">V</a>&nbsp;removeKey(<a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="type parameter in ArrayMap">K</a>&nbsp;key)</pre>
766
</li>
767
</ul>
768
<a name="removeValue(java.lang.Object,boolean)">
769
<!--   -->
770
</a><a name="removeValue(V, boolean)">
771
<!--   -->
772
</a>
773
<ul class="blockList">
774
<li class="blockList">
775
<h4>removeValue</h4>
776
<pre>public&nbsp;boolean&nbsp;removeValue(<a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="type parameter in ArrayMap">V</a>&nbsp;value,
777
                  boolean&nbsp;identity)</pre>
778
</li>
779
</ul>
780
<a name="removeIndex(int)">
781
<!--   -->
782
</a>
783
<ul class="blockList">
784
<li class="blockList">
785
<h4>removeIndex</h4>
786
<pre>public&nbsp;void&nbsp;removeIndex(int&nbsp;index)</pre>
787
<div class="block">Removes and returns the key/values pair at the specified index.</div>
788
</li>
789
</ul>
790
<a name="peekKey()">
791
<!--   -->
792
</a>
793
<ul class="blockList">
794
<li class="blockList">
795
<h4>peekKey</h4>
796
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="type parameter in ArrayMap">K</a>&nbsp;peekKey()</pre>
797
<div class="block">Returns the last key.</div>
798
</li>
799
</ul>
800
<a name="peekValue()">
801
<!--   -->
802
</a>
803
<ul class="blockList">
804
<li class="blockList">
805
<h4>peekValue</h4>
806
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="type parameter in ArrayMap">V</a>&nbsp;peekValue()</pre>
807
<div class="block">Returns the last value.</div>
808
</li>
809
</ul>
810
<a name="clear(int)">
811
<!--   -->
812
</a>
813
<ul class="blockList">
814
<li class="blockList">
815
<h4>clear</h4>
816
<pre>public&nbsp;void&nbsp;clear(int&nbsp;maximumCapacity)</pre>
817
<div class="block">Clears the map and reduces the size of the backing arrays to be the specified capacity if they are larger.</div>
818
</li>
819
</ul>
820
<a name="clear()">
821
<!--   -->
822
</a>
823
<ul class="blockList">
824
<li class="blockList">
825
<h4>clear</h4>
826
<pre>public&nbsp;void&nbsp;clear()</pre>
827
</li>
828
</ul>
829
<a name="shrink()">
830
<!--   -->
831
</a>
832
<ul class="blockList">
833
<li class="blockList">
834
<h4>shrink</h4>
835
<pre>public&nbsp;void&nbsp;shrink()</pre>
836
<div class="block">Reduces the size of the backing arrays to the size of the actual number of entries. This is useful to release memory when
837
 many items have been removed, or if it is known that more entries will not be added.</div>
838
</li>
839
</ul>
840
<a name="ensureCapacity(int)">
841
<!--   -->
842
</a>
843
<ul class="blockList">
844
<li class="blockList">
845
<h4>ensureCapacity</h4>
846
<pre>public&nbsp;void&nbsp;ensureCapacity(int&nbsp;additionalCapacity)</pre>
847
<div class="block">Increases the size of the backing arrays to acommodate the specified number of additional entries. Useful before adding many
848
 entries to avoid multiple backing array resizes.</div>
849
</li>
850
</ul>
851
<a name="resize(int)">
852
<!--   -->
853
</a>
854
<ul class="blockList">
855
<li class="blockList">
856
<h4>resize</h4>
857
<pre>protected&nbsp;void&nbsp;resize(int&nbsp;newSize)</pre>
858
</li>
859
</ul>
860
<a name="reverse()">
861
<!--   -->
862
</a>
863
<ul class="blockList">
864
<li class="blockList">
865
<h4>reverse</h4>
866
<pre>public&nbsp;void&nbsp;reverse()</pre>
867
</li>
868
</ul>
869
<a name="shuffle()">
870
<!--   -->
871
</a>
872
<ul class="blockList">
873
<li class="blockList">
874
<h4>shuffle</h4>
875
<pre>public&nbsp;void&nbsp;shuffle()</pre>
876
</li>
877
</ul>
878
<a name="truncate(int)">
879
<!--   -->
880
</a>
881
<ul class="blockList">
882
<li class="blockList">
883
<h4>truncate</h4>
884
<pre>public&nbsp;void&nbsp;truncate(int&nbsp;newSize)</pre>
885
<div class="block">Reduces the size of the arrays to the specified size. If the arrays are already smaller than the specified size, no action
886
 is taken.</div>
887
</li>
888
</ul>
889
<a name="toString()">
890
<!--   -->
891
</a>
892
<ul class="blockList">
893
<li class="blockList">
894
<h4>toString</h4>
895
<pre>public&nbsp;java.lang.String&nbsp;toString()</pre>
896
<dl>
897
<dt><strong>Overrides:</strong></dt>
898
<dd><code>toString</code>&nbsp;in class&nbsp;<code>java.lang.Object</code></dd>
899
</dl>
900
</li>
901
</ul>
902
<a name="entries()">
903
<!--   -->
904
</a>
905
<ul class="blockList">
906
<li class="blockList">
907
<h4>entries</h4>
908
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/utils/ArrayMap.Entries.html" title="class in com.badlogic.gdx.utils">ArrayMap.Entries</a>&lt;<a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="type parameter in ArrayMap">K</a>,<a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="type parameter in ArrayMap">V</a>&gt;&nbsp;entries()</pre>
909
<div class="block">Returns an iterator for the entries in the map. Remove is supported. Note that the same iterator instance is returned each
910
 time this method is called. Use the <a href="../../../../com/badlogic/gdx/utils/ArrayMap.Entries.html" title="class in com.badlogic.gdx.utils"><code>ArrayMap.Entries</code></a> constructor for nested or multithreaded iteration.</div>
911
</li>
912
</ul>
913
<a name="values()">
914
<!--   -->
915
</a>
916
<ul class="blockList">
917
<li class="blockList">
918
<h4>values</h4>
919
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/utils/ArrayMap.Values.html" title="class in com.badlogic.gdx.utils">ArrayMap.Values</a>&lt;<a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="type parameter in ArrayMap">V</a>&gt;&nbsp;values()</pre>
920
<div class="block">Returns an iterator for the values in the map. Remove is supported. Note that the same iterator instance is returned each
921
 time this method is called. Use the <a href="../../../../com/badlogic/gdx/utils/ArrayMap.Entries.html" title="class in com.badlogic.gdx.utils"><code>ArrayMap.Entries</code></a> constructor for nested or multithreaded iteration.</div>
922
</li>
923
</ul>
924
<a name="keys()">
925
<!--   -->
926
</a>
927
<ul class="blockListLast">
928
<li class="blockList">
929
<h4>keys</h4>
930
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/utils/ArrayMap.Keys.html" title="class in com.badlogic.gdx.utils">ArrayMap.Keys</a>&lt;<a href="../../../../com/badlogic/gdx/utils/ArrayMap.html" title="type parameter in ArrayMap">K</a>&gt;&nbsp;keys()</pre>
931
<div class="block">Returns an iterator for the keys in the map. Remove is supported. Note that the same iterator instance is returned each time
932
 this method is called. Use the <a href="../../../../com/badlogic/gdx/utils/ArrayMap.Entries.html" title="class in com.badlogic.gdx.utils"><code>ArrayMap.Entries</code></a> constructor for nested or multithreaded iteration.</div>
933
</li>
934
</ul>
935
</li>
936
</ul>
937
</li>
938
</ul>
939
</div>
940
</div>
941
<!-- ========= END OF CLASS DATA ========= -->
942
<!-- ======= START OF BOTTOM NAVBAR ====== -->
943
<div class="bottomNav"><a name="navbar_bottom">
944
<!--   -->
945
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
946
<!--   -->
947
</a>
948
<ul class="navList" title="Navigation">
949
<li><a href="../../../../overview-summary.html">Overview</a></li>
950
<li><a href="package-summary.html">Package</a></li>
951
<li class="navBarCell1Rev">Class</li>
952
<li><a href="class-use/ArrayMap.html">Use</a></li>
953
<li><a href="package-tree.html">Tree</a></li>
954
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
955
<li><a href="../../../../index-all.html">Index</a></li>
956
<li><a href="../../../../help-doc.html">Help</a></li>
957
</ul>
958
<div class="aboutLanguage"><em>libgdx API</em></div>
959
</div>
960
<div class="subNav">
961
<ul class="navList">
962
<li><a href="../../../../com/badlogic/gdx/utils/Array.ArrayIterator.html" title="class in com.badlogic.gdx.utils"><span class="strong">Prev Class</span></a></li>
963
<li><a href="../../../../com/badlogic/gdx/utils/ArrayMap.Entries.html" title="class in com.badlogic.gdx.utils"><span class="strong">Next Class</span></a></li>
964
</ul>
965
<ul class="navList">
966
<li><a href="../../../../index.html?com/badlogic/gdx/utils/ArrayMap.html" target="_top">Frames</a></li>
967
<li><a href="ArrayMap.html" target="_top">No Frames</a></li>
968
</ul>
969
<ul class="navList" id="allclasses_navbar_bottom">
970
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
971
</ul>
972
<div>
973
<script type="text/javascript"><!--
974
  allClassesLink = document.getElementById("allclasses_navbar_bottom");
975
  if(window==top) {
976
    allClassesLink.style.display = "block";
977
  }
978
  else {
979
    allClassesLink.style.display = "none";
980
  }
981
  //-->
982
</script>
983
</div>
984
<div>
985
<ul class="subNavList">
986
<li>Summary:&nbsp;</li>
987
<li><a href="#nested_class_summary">Nested</a>&nbsp;|&nbsp;</li>
988
<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
989
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
990
<li><a href="#method_summary">Method</a></li>
991
</ul>
992
<ul class="subNavList">
993
<li>Detail:&nbsp;</li>
994
<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
995
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
996
<li><a href="#method_detail">Method</a></li>
997
</ul>
998
</div>
999
<a name="skip-navbar_bottom">
1000
<!--   -->
1001
</a></div>
1002
<!-- ======== END OF BOTTOM NAVBAR ======= -->
1003
<p class="legalCopy"><small>
1004
                                <div style="font-size:9pt"><i>
1005
                                Copyright &copy; 2010-2013 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)
1006
                                </i></div>
1007
                        </small></p>
1008
</body>
1009
</html>