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:44 CET 2013 -->
6
<title>ObjectMap (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="ObjectMap (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/ObjectMap.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/ObjectIntMap.Values.html" title="class in com.badlogic.gdx.utils"><span class="strong">Prev Class</span></a></li>
56
<li><a href="../../../../com/badlogic/gdx/utils/ObjectMap.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/ObjectMap.html" target="_top">Frames</a></li>
60
<li><a href="ObjectMap.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 ObjectMap" class="title">Class ObjectMap&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.ObjectMap&lt;K,V&gt;</li>
107
</ul>
108
</li>
109
</ul>
110
<div class="description">
111
<ul class="blockList">
112
<li class="blockList">
113
<dl>
114
<dt>Direct Known Subclasses:</dt>
115
<dd><a href="../../../../com/badlogic/gdx/utils/OrderedMap.html" title="class in com.badlogic.gdx.utils">OrderedMap</a></dd>
116
</dl>
117
<hr>
118
<br>
119
<pre>public class <span class="strong">ObjectMap&lt;K,V&gt;</span>
120
extends java.lang.Object</pre>
121
<div class="block">An unordered map. This implementation is a cuckoo hash map using 3 hashes, random walking, and a small stash for problematic
122
 keys. Null keys are not allowed. Null values are allowed. No allocation is done except when growing the table size. <br>
123
 <br>
124
 This map performs very fast get, containsKey, and remove (typically O(1), worst case O(log(n))). Put may be a bit slower,
125
 depending on hash collisions. Load factors greater than 0.91 greatly increase the chances the map will have to rehash to the
126
 next higher POT size.</div>
127
<dl><dt><span class="strong">Author:</span></dt>
128
  <dd>Nathan Sweet</dd></dl>
129
</li>
130
</ul>
131
</div>
132
<div class="summary">
133
<ul class="blockList">
134
<li class="blockList">
135
<!-- ======== NESTED CLASS SUMMARY ======== -->
136
<ul class="blockList">
137
<li class="blockList"><a name="nested_class_summary">
138
<!--   -->
139
</a>
140
<h3>Nested Class Summary</h3>
141
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation">
142
<caption><span>Nested Classes</span><span class="tabEnd">&nbsp;</span></caption>
143
<tr>
144
<th class="colFirst" scope="col">Modifier and Type</th>
145
<th class="colLast" scope="col">Class and Description</th>
146
</tr>
147
<tr class="altColor">
148
<td class="colFirst"><code>static class&nbsp;</code></td>
149
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/ObjectMap.Entries.html" title="class in com.badlogic.gdx.utils">ObjectMap.Entries</a>&lt;<a href="../../../../com/badlogic/gdx/utils/ObjectMap.Entries.html" title="type parameter in ObjectMap.Entries">K</a>,<a href="../../../../com/badlogic/gdx/utils/ObjectMap.Entries.html" title="type parameter in ObjectMap.Entries">V</a>&gt;</strong></code>&nbsp;</td>
150
</tr>
151
<tr class="rowColor">
152
<td class="colFirst"><code>static class&nbsp;</code></td>
153
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/ObjectMap.Entry.html" title="class in com.badlogic.gdx.utils">ObjectMap.Entry</a>&lt;<a href="../../../../com/badlogic/gdx/utils/ObjectMap.Entry.html" title="type parameter in ObjectMap.Entry">K</a>,<a href="../../../../com/badlogic/gdx/utils/ObjectMap.Entry.html" title="type parameter in ObjectMap.Entry">V</a>&gt;</strong></code>&nbsp;</td>
154
</tr>
155
<tr class="altColor">
156
<td class="colFirst"><code>static class&nbsp;</code></td>
157
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/ObjectMap.Keys.html" title="class in com.badlogic.gdx.utils">ObjectMap.Keys</a>&lt;<a href="../../../../com/badlogic/gdx/utils/ObjectMap.Keys.html" title="type parameter in ObjectMap.Keys">K</a>&gt;</strong></code>&nbsp;</td>
158
</tr>
159
<tr class="rowColor">
160
<td class="colFirst"><code>static class&nbsp;</code></td>
161
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/ObjectMap.Values.html" title="class in com.badlogic.gdx.utils">ObjectMap.Values</a>&lt;<a href="../../../../com/badlogic/gdx/utils/ObjectMap.Values.html" title="type parameter in ObjectMap.Values">V</a>&gt;</strong></code>&nbsp;</td>
162
</tr>
163
</table>
164
</li>
165
</ul>
166
<!-- =========== FIELD SUMMARY =========== -->
167
<ul class="blockList">
168
<li class="blockList"><a name="field_summary">
169
<!--   -->
170
</a>
171
<h3>Field Summary</h3>
172
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
173
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
174
<tr>
175
<th class="colFirst" scope="col">Modifier and Type</th>
176
<th class="colLast" scope="col">Field and Description</th>
177
</tr>
178
<tr class="altColor">
179
<td class="colFirst"><code>int</code></td>
180
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/ObjectMap.html#size">size</a></strong></code>&nbsp;</td>
181
</tr>
182
</table>
183
</li>
184
</ul>
185
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
186
<ul class="blockList">
187
<li class="blockList"><a name="constructor_summary">
188
<!--   -->
189
</a>
190
<h3>Constructor Summary</h3>
191
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
192
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
193
<tr>
194
<th class="colOne" scope="col">Constructor and Description</th>
195
</tr>
196
<tr class="altColor">
197
<td class="colOne"><code><strong><a href="../../../../com/badlogic/gdx/utils/ObjectMap.html#ObjectMap()">ObjectMap</a></strong>()</code>
198
<div class="block">Creates a new map with an initial capacity of 32 and a load factor of 0.8.</div>
199
</td>
200
</tr>
201
<tr class="rowColor">
202
<td class="colOne"><code><strong><a href="../../../../com/badlogic/gdx/utils/ObjectMap.html#ObjectMap(int)">ObjectMap</a></strong>(int&nbsp;initialCapacity)</code>
203
<div class="block">Creates a new map with a load factor of 0.8.</div>
204
</td>
205
</tr>
206
<tr class="altColor">
207
<td class="colOne"><code><strong><a href="../../../../com/badlogic/gdx/utils/ObjectMap.html#ObjectMap(int, float)">ObjectMap</a></strong>(int&nbsp;initialCapacity,
208
         float&nbsp;loadFactor)</code>
209
<div class="block">Creates a new map with the specified initial capacity and load factor.</div>
210
</td>
211
</tr>
212
</table>
213
</li>
214
</ul>
215
<!-- ========== METHOD SUMMARY =========== -->
216
<ul class="blockList">
217
<li class="blockList"><a name="method_summary">
218
<!--   -->
219
</a>
220
<h3>Method Summary</h3>
221
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
222
<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
223
<tr>
224
<th class="colFirst" scope="col">Modifier and Type</th>
225
<th class="colLast" scope="col">Method and Description</th>
226
</tr>
227
<tr class="altColor">
228
<td class="colFirst"><code>void</code></td>
229
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/ObjectMap.html#clear()">clear</a></strong>()</code>&nbsp;</td>
230
</tr>
231
<tr class="rowColor">
232
<td class="colFirst"><code>void</code></td>
233
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/ObjectMap.html#clear(int)">clear</a></strong>(int&nbsp;maximumCapacity)</code>
234
<div class="block">Clears the map and reduces the size of the backing arrays to be the specified capacity if they are larger.</div>
235
</td>
236
</tr>
237
<tr class="altColor">
238
<td class="colFirst"><code>boolean</code></td>
239
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/ObjectMap.html#containsKey(K)">containsKey</a></strong>(<a href="../../../../com/badlogic/gdx/utils/ObjectMap.html" title="type parameter in ObjectMap">K</a>&nbsp;key)</code>&nbsp;</td>
240
</tr>
241
<tr class="rowColor">
242
<td class="colFirst"><code>boolean</code></td>
243
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/ObjectMap.html#containsValue(java.lang.Object, boolean)">containsValue</a></strong>(java.lang.Object&nbsp;value,
244
             boolean&nbsp;identity)</code>
245
<div class="block">Returns true if the specified value is in the map.</div>
246
</td>
247
</tr>
248
<tr class="altColor">
249
<td class="colFirst"><code>void</code></td>
250
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/ObjectMap.html#ensureCapacity(int)">ensureCapacity</a></strong>(int&nbsp;additionalCapacity)</code>
251
<div class="block">Increases the size of the backing array to acommodate the specified number of additional items.</div>
252
</td>
253
</tr>
254
<tr class="rowColor">
255
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/ObjectMap.Entries.html" title="class in com.badlogic.gdx.utils">ObjectMap.Entries</a>&lt;<a href="../../../../com/badlogic/gdx/utils/ObjectMap.html" title="type parameter in ObjectMap">K</a>,<a href="../../../../com/badlogic/gdx/utils/ObjectMap.html" title="type parameter in ObjectMap">V</a>&gt;</code></td>
256
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/ObjectMap.html#entries()">entries</a></strong>()</code>
257
<div class="block">Returns an iterator for the entries in the map.</div>
258
</td>
259
</tr>
260
<tr class="altColor">
261
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/ObjectMap.html" title="type parameter in ObjectMap">K</a></code></td>
262
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/ObjectMap.html#findKey(java.lang.Object, boolean)">findKey</a></strong>(java.lang.Object&nbsp;value,
263
       boolean&nbsp;identity)</code>
264
<div class="block">Returns the key for the specified value, or null if it is not in the map.</div>
265
</td>
266
</tr>
267
<tr class="rowColor">
268
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/ObjectMap.html" title="type parameter in ObjectMap">V</a></code></td>
269
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/ObjectMap.html#get(K)">get</a></strong>(<a href="../../../../com/badlogic/gdx/utils/ObjectMap.html" title="type parameter in ObjectMap">K</a>&nbsp;key)</code>&nbsp;</td>
270
</tr>
271
<tr class="altColor">
272
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/ObjectMap.html" title="type parameter in ObjectMap">V</a></code></td>
273
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/ObjectMap.html#get(K, V)">get</a></strong>(<a href="../../../../com/badlogic/gdx/utils/ObjectMap.html" title="type parameter in ObjectMap">K</a>&nbsp;key,
274
   <a href="../../../../com/badlogic/gdx/utils/ObjectMap.html" title="type parameter in ObjectMap">V</a>&nbsp;defaultValue)</code>
275
<div class="block">Returns the value for the specified key, or the default value if the key is not in the map.</div>
276
</td>
277
</tr>
278
<tr class="rowColor">
279
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/ObjectMap.Keys.html" title="class in com.badlogic.gdx.utils">ObjectMap.Keys</a>&lt;<a href="../../../../com/badlogic/gdx/utils/ObjectMap.html" title="type parameter in ObjectMap">K</a>&gt;</code></td>
280
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/ObjectMap.html#keys()">keys</a></strong>()</code>
281
<div class="block">Returns an iterator for the keys in the map.</div>
282
</td>
283
</tr>
284
<tr class="altColor">
285
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/ObjectMap.html" title="type parameter in ObjectMap">V</a></code></td>
286
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/ObjectMap.html#put(K, V)">put</a></strong>(<a href="../../../../com/badlogic/gdx/utils/ObjectMap.html" title="type parameter in ObjectMap">K</a>&nbsp;key,
287
   <a href="../../../../com/badlogic/gdx/utils/ObjectMap.html" title="type parameter in ObjectMap">V</a>&nbsp;value)</code>
288
<div class="block">Returns the old value associated with the specified key, or null.</div>
289
</td>
290
</tr>
291
<tr class="rowColor">
292
<td class="colFirst"><code>void</code></td>
293
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/ObjectMap.html#putAll(com.badlogic.gdx.utils.ObjectMap)">putAll</a></strong>(<a href="../../../../com/badlogic/gdx/utils/ObjectMap.html" title="class in com.badlogic.gdx.utils">ObjectMap</a>&lt;<a href="../../../../com/badlogic/gdx/utils/ObjectMap.html" title="type parameter in ObjectMap">K</a>,<a href="../../../../com/badlogic/gdx/utils/ObjectMap.html" title="type parameter in ObjectMap">V</a>&gt;&nbsp;map)</code>&nbsp;</td>
294
</tr>
295
<tr class="altColor">
296
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/ObjectMap.html" title="type parameter in ObjectMap">V</a></code></td>
297
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/ObjectMap.html#remove(K)">remove</a></strong>(<a href="../../../../com/badlogic/gdx/utils/ObjectMap.html" title="type parameter in ObjectMap">K</a>&nbsp;key)</code>&nbsp;</td>
298
</tr>
299
<tr class="rowColor">
300
<td class="colFirst"><code>void</code></td>
301
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/ObjectMap.html#shrink(int)">shrink</a></strong>(int&nbsp;maximumCapacity)</code>
302
<div class="block">Reduces the size of the backing arrays to be the specified capacity or less.</div>
303
</td>
304
</tr>
305
<tr class="altColor">
306
<td class="colFirst"><code>java.lang.String</code></td>
307
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/ObjectMap.html#toString()">toString</a></strong>()</code>&nbsp;</td>
308
</tr>
309
<tr class="rowColor">
310
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/ObjectMap.Values.html" title="class in com.badlogic.gdx.utils">ObjectMap.Values</a>&lt;<a href="../../../../com/badlogic/gdx/utils/ObjectMap.html" title="type parameter in ObjectMap">V</a>&gt;</code></td>
311
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/ObjectMap.html#values()">values</a></strong>()</code>
312
<div class="block">Returns an iterator for the values in the map.</div>
313
</td>
314
</tr>
315
</table>
316
<ul class="blockList">
317
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
318
<!--   -->
319
</a>
320
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
321
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</code></li>
322
</ul>
323
</li>
324
</ul>
325
</li>
326
</ul>
327
</div>
328
<div class="details">
329
<ul class="blockList">
330
<li class="blockList">
331
<!-- ============ FIELD DETAIL =========== -->
332
<ul class="blockList">
333
<li class="blockList"><a name="field_detail">
334
<!--   -->
335
</a>
336
<h3>Field Detail</h3>
337
<a name="size">
338
<!--   -->
339
</a>
340
<ul class="blockListLast">
341
<li class="blockList">
342
<h4>size</h4>
343
<pre>public&nbsp;int size</pre>
344
</li>
345
</ul>
346
</li>
347
</ul>
348
<!-- ========= CONSTRUCTOR DETAIL ======== -->
349
<ul class="blockList">
350
<li class="blockList"><a name="constructor_detail">
351
<!--   -->
352
</a>
353
<h3>Constructor Detail</h3>
354
<a name="ObjectMap()">
355
<!--   -->
356
</a>
357
<ul class="blockList">
358
<li class="blockList">
359
<h4>ObjectMap</h4>
360
<pre>public&nbsp;ObjectMap()</pre>
361
<div class="block">Creates a new map with an initial capacity of 32 and a load factor of 0.8. This map will hold 25 items before growing the
362
 backing table.</div>
363
</li>
364
</ul>
365
<a name="ObjectMap(int)">
366
<!--   -->
367
</a>
368
<ul class="blockList">
369
<li class="blockList">
370
<h4>ObjectMap</h4>
371
<pre>public&nbsp;ObjectMap(int&nbsp;initialCapacity)</pre>
372
<div class="block">Creates a new map with a load factor of 0.8. This map will hold initialCapacity * 0.8 items before growing the backing
373
 table.</div>
374
</li>
375
</ul>
376
<a name="ObjectMap(int, float)">
377
<!--   -->
378
</a>
379
<ul class="blockListLast">
380
<li class="blockList">
381
<h4>ObjectMap</h4>
382
<pre>public&nbsp;ObjectMap(int&nbsp;initialCapacity,
383
         float&nbsp;loadFactor)</pre>
384
<div class="block">Creates a new map with the specified initial capacity and load factor. This map will hold initialCapacity * loadFactor items
385
 before growing the backing table.</div>
386
</li>
387
</ul>
388
</li>
389
</ul>
390
<!-- ============ METHOD DETAIL ========== -->
391
<ul class="blockList">
392
<li class="blockList"><a name="method_detail">
393
<!--   -->
394
</a>
395
<h3>Method Detail</h3>
396
<a name="put(java.lang.Object,java.lang.Object)">
397
<!--   -->
398
</a><a name="put(K, V)">
399
<!--   -->
400
</a>
401
<ul class="blockList">
402
<li class="blockList">
403
<h4>put</h4>
404
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/utils/ObjectMap.html" title="type parameter in ObjectMap">V</a>&nbsp;put(<a href="../../../../com/badlogic/gdx/utils/ObjectMap.html" title="type parameter in ObjectMap">K</a>&nbsp;key,
405
    <a href="../../../../com/badlogic/gdx/utils/ObjectMap.html" title="type parameter in ObjectMap">V</a>&nbsp;value)</pre>
406
<div class="block">Returns the old value associated with the specified key, or null.</div>
407
</li>
408
</ul>
409
<a name="putAll(com.badlogic.gdx.utils.ObjectMap)">
410
<!--   -->
411
</a>
412
<ul class="blockList">
413
<li class="blockList">
414
<h4>putAll</h4>
415
<pre>public&nbsp;void&nbsp;putAll(<a href="../../../../com/badlogic/gdx/utils/ObjectMap.html" title="class in com.badlogic.gdx.utils">ObjectMap</a>&lt;<a href="../../../../com/badlogic/gdx/utils/ObjectMap.html" title="type parameter in ObjectMap">K</a>,<a href="../../../../com/badlogic/gdx/utils/ObjectMap.html" title="type parameter in ObjectMap">V</a>&gt;&nbsp;map)</pre>
416
</li>
417
</ul>
418
<a name="get(java.lang.Object)">
419
<!--   -->
420
</a><a name="get(K)">
421
<!--   -->
422
</a>
423
<ul class="blockList">
424
<li class="blockList">
425
<h4>get</h4>
426
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/utils/ObjectMap.html" title="type parameter in ObjectMap">V</a>&nbsp;get(<a href="../../../../com/badlogic/gdx/utils/ObjectMap.html" title="type parameter in ObjectMap">K</a>&nbsp;key)</pre>
427
</li>
428
</ul>
429
<a name="get(java.lang.Object,java.lang.Object)">
430
<!--   -->
431
</a><a name="get(K, V)">
432
<!--   -->
433
</a>
434
<ul class="blockList">
435
<li class="blockList">
436
<h4>get</h4>
437
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/utils/ObjectMap.html" title="type parameter in ObjectMap">V</a>&nbsp;get(<a href="../../../../com/badlogic/gdx/utils/ObjectMap.html" title="type parameter in ObjectMap">K</a>&nbsp;key,
438
    <a href="../../../../com/badlogic/gdx/utils/ObjectMap.html" title="type parameter in ObjectMap">V</a>&nbsp;defaultValue)</pre>
439
<div class="block">Returns the value for the specified key, or the default value if the key is not in the map.</div>
440
</li>
441
</ul>
442
<a name="remove(java.lang.Object)">
443
<!--   -->
444
</a><a name="remove(K)">
445
<!--   -->
446
</a>
447
<ul class="blockList">
448
<li class="blockList">
449
<h4>remove</h4>
450
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/utils/ObjectMap.html" title="type parameter in ObjectMap">V</a>&nbsp;remove(<a href="../../../../com/badlogic/gdx/utils/ObjectMap.html" title="type parameter in ObjectMap">K</a>&nbsp;key)</pre>
451
</li>
452
</ul>
453
<a name="shrink(int)">
454
<!--   -->
455
</a>
456
<ul class="blockList">
457
<li class="blockList">
458
<h4>shrink</h4>
459
<pre>public&nbsp;void&nbsp;shrink(int&nbsp;maximumCapacity)</pre>
460
<div class="block">Reduces the size of the backing arrays to be the specified capacity or less. If the capacity is already less, nothing is
461
 done. If the map contains more items than the specified capacity, the next highest power of two capacity is used instead.</div>
462
</li>
463
</ul>
464
<a name="clear(int)">
465
<!--   -->
466
</a>
467
<ul class="blockList">
468
<li class="blockList">
469
<h4>clear</h4>
470
<pre>public&nbsp;void&nbsp;clear(int&nbsp;maximumCapacity)</pre>
471
<div class="block">Clears the map and reduces the size of the backing arrays to be the specified capacity if they are larger.</div>
472
</li>
473
</ul>
474
<a name="clear()">
475
<!--   -->
476
</a>
477
<ul class="blockList">
478
<li class="blockList">
479
<h4>clear</h4>
480
<pre>public&nbsp;void&nbsp;clear()</pre>
481
</li>
482
</ul>
483
<a name="containsValue(java.lang.Object, boolean)">
484
<!--   -->
485
</a>
486
<ul class="blockList">
487
<li class="blockList">
488
<h4>containsValue</h4>
489
<pre>public&nbsp;boolean&nbsp;containsValue(java.lang.Object&nbsp;value,
490
                    boolean&nbsp;identity)</pre>
491
<div class="block">Returns true if the specified value is in the map. Note this traverses the entire map and compares every value, which may be
492
 an expensive operation.</div>
493
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>identity</code> - If true, uses == to compare the specified value with values in the map. If false, uses
494
           <code>Object.equals(Object)</code>.</dd></dl>
495
</li>
496
</ul>
497
<a name="containsKey(java.lang.Object)">
498
<!--   -->
499
</a><a name="containsKey(K)">
500
<!--   -->
501
</a>
502
<ul class="blockList">
503
<li class="blockList">
504
<h4>containsKey</h4>
505
<pre>public&nbsp;boolean&nbsp;containsKey(<a href="../../../../com/badlogic/gdx/utils/ObjectMap.html" title="type parameter in ObjectMap">K</a>&nbsp;key)</pre>
506
</li>
507
</ul>
508
<a name="findKey(java.lang.Object, boolean)">
509
<!--   -->
510
</a>
511
<ul class="blockList">
512
<li class="blockList">
513
<h4>findKey</h4>
514
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/utils/ObjectMap.html" title="type parameter in ObjectMap">K</a>&nbsp;findKey(java.lang.Object&nbsp;value,
515
        boolean&nbsp;identity)</pre>
516
<div class="block">Returns the key for the specified value, or null if it is not in the map. Note this traverses the entire map and compares
517
 every value, which may be an expensive operation.</div>
518
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>identity</code> - If true, uses == to compare the specified value with values in the map. If false, uses
519
           <code>Object.equals(Object)</code>.</dd></dl>
520
</li>
521
</ul>
522
<a name="ensureCapacity(int)">
523
<!--   -->
524
</a>
525
<ul class="blockList">
526
<li class="blockList">
527
<h4>ensureCapacity</h4>
528
<pre>public&nbsp;void&nbsp;ensureCapacity(int&nbsp;additionalCapacity)</pre>
529
<div class="block">Increases the size of the backing array to acommodate the specified number of additional items. Useful before adding many
530
 items to avoid multiple backing array resizes.</div>
531
</li>
532
</ul>
533
<a name="toString()">
534
<!--   -->
535
</a>
536
<ul class="blockList">
537
<li class="blockList">
538
<h4>toString</h4>
539
<pre>public&nbsp;java.lang.String&nbsp;toString()</pre>
540
<dl>
541
<dt><strong>Overrides:</strong></dt>
542
<dd><code>toString</code>&nbsp;in class&nbsp;<code>java.lang.Object</code></dd>
543
</dl>
544
</li>
545
</ul>
546
<a name="entries()">
547
<!--   -->
548
</a>
549
<ul class="blockList">
550
<li class="blockList">
551
<h4>entries</h4>
552
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/utils/ObjectMap.Entries.html" title="class in com.badlogic.gdx.utils">ObjectMap.Entries</a>&lt;<a href="../../../../com/badlogic/gdx/utils/ObjectMap.html" title="type parameter in ObjectMap">K</a>,<a href="../../../../com/badlogic/gdx/utils/ObjectMap.html" title="type parameter in ObjectMap">V</a>&gt;&nbsp;entries()</pre>
553
<div class="block">Returns an iterator for the entries in the map. Remove is supported. Note that the same iterator instance is returned each
554
 time this method is called. Use the <a href="../../../../com/badlogic/gdx/utils/ObjectMap.Entries.html" title="class in com.badlogic.gdx.utils"><code>ObjectMap.Entries</code></a> constructor for nested or multithreaded iteration.</div>
555
</li>
556
</ul>
557
<a name="values()">
558
<!--   -->
559
</a>
560
<ul class="blockList">
561
<li class="blockList">
562
<h4>values</h4>
563
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/utils/ObjectMap.Values.html" title="class in com.badlogic.gdx.utils">ObjectMap.Values</a>&lt;<a href="../../../../com/badlogic/gdx/utils/ObjectMap.html" title="type parameter in ObjectMap">V</a>&gt;&nbsp;values()</pre>
564
<div class="block">Returns an iterator for the values in the map. Remove is supported. Note that the same iterator instance is returned each
565
 time this method is called. Use the <a href="../../../../com/badlogic/gdx/utils/ObjectMap.Entries.html" title="class in com.badlogic.gdx.utils"><code>ObjectMap.Entries</code></a> constructor for nested or multithreaded iteration.</div>
566
</li>
567
</ul>
568
<a name="keys()">
569
<!--   -->
570
</a>
571
<ul class="blockListLast">
572
<li class="blockList">
573
<h4>keys</h4>
574
<pre>public&nbsp;<a href="../../../../com/badlogic/gdx/utils/ObjectMap.Keys.html" title="class in com.badlogic.gdx.utils">ObjectMap.Keys</a>&lt;<a href="../../../../com/badlogic/gdx/utils/ObjectMap.html" title="type parameter in ObjectMap">K</a>&gt;&nbsp;keys()</pre>
575
<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
576
 this method is called. Use the <a href="../../../../com/badlogic/gdx/utils/ObjectMap.Entries.html" title="class in com.badlogic.gdx.utils"><code>ObjectMap.Entries</code></a> constructor for nested or multithreaded iteration.</div>
577
</li>
578
</ul>
579
</li>
580
</ul>
581
</li>
582
</ul>
583
</div>
584
</div>
585
<!-- ========= END OF CLASS DATA ========= -->
586
<!-- ======= START OF BOTTOM NAVBAR ====== -->
587
<div class="bottomNav"><a name="navbar_bottom">
588
<!--   -->
589
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
590
<!--   -->
591
</a>
592
<ul class="navList" title="Navigation">
593
<li><a href="../../../../overview-summary.html">Overview</a></li>
594
<li><a href="package-summary.html">Package</a></li>
595
<li class="navBarCell1Rev">Class</li>
596
<li><a href="class-use/ObjectMap.html">Use</a></li>
597
<li><a href="package-tree.html">Tree</a></li>
598
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
599
<li><a href="../../../../index-all.html">Index</a></li>
600
<li><a href="../../../../help-doc.html">Help</a></li>
601
</ul>
602
<div class="aboutLanguage"><em>libgdx API</em></div>
603
</div>
604
<div class="subNav">
605
<ul class="navList">
606
<li><a href="../../../../com/badlogic/gdx/utils/ObjectIntMap.Values.html" title="class in com.badlogic.gdx.utils"><span class="strong">Prev Class</span></a></li>
607
<li><a href="../../../../com/badlogic/gdx/utils/ObjectMap.Entries.html" title="class in com.badlogic.gdx.utils"><span class="strong">Next Class</span></a></li>
608
</ul>
609
<ul class="navList">
610
<li><a href="../../../../index.html?com/badlogic/gdx/utils/ObjectMap.html" target="_top">Frames</a></li>
611
<li><a href="ObjectMap.html" target="_top">No Frames</a></li>
612
</ul>
613
<ul class="navList" id="allclasses_navbar_bottom">
614
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
615
</ul>
616
<div>
617
<script type="text/javascript"><!--
618
  allClassesLink = document.getElementById("allclasses_navbar_bottom");
619
  if(window==top) {
620
    allClassesLink.style.display = "block";
621
  }
622
  else {
623
    allClassesLink.style.display = "none";
624
  }
625
  //-->
626
</script>
627
</div>
628
<div>
629
<ul class="subNavList">
630
<li>Summary:&nbsp;</li>
631
<li><a href="#nested_class_summary">Nested</a>&nbsp;|&nbsp;</li>
632
<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
633
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
634
<li><a href="#method_summary">Method</a></li>
635
</ul>
636
<ul class="subNavList">
637
<li>Detail:&nbsp;</li>
638
<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
639
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
640
<li><a href="#method_detail">Method</a></li>
641
</ul>
642
</div>
643
<a name="skip-navbar_bottom">
644
<!--   -->
645
</a></div>
646
<!-- ======== END OF BOTTOM NAVBAR ======= -->
647
<p class="legalCopy"><small>
648
                                <div style="font-size:9pt"><i>
649
                                Copyright &copy; 2010-2013 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)
650
                                </i></div>
651
                        </small></p>
652
</body>
653
</html>