Subversion Repositories AndroidProjects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
356 chris 1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
<!--NewPage-->
3
<HTML>
4
<HEAD>
5
<!-- Generated by javadoc (build 1.6.0_26) on Sun Jan 27 20:37:08 CET 2013 -->
6
<TITLE>
7
IntMap (libgdx API)
8
</TITLE>
9
 
10
<META NAME="date" CONTENT="2013-01-27">
11
 
12
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
13
 
14
<SCRIPT type="text/javascript">
15
function windowTitle()
16
{
17
    if (location.href.indexOf('is-external=true') == -1) {
18
        parent.document.title="IntMap (libgdx API)";
19
    }
20
}
21
</SCRIPT>
22
<NOSCRIPT>
23
</NOSCRIPT>
24
 
25
</HEAD>
26
 
27
<BODY BGCOLOR="white" onload="windowTitle();">
28
<HR>
29
 
30
 
31
<!-- ========= START OF TOP NAVBAR ======= -->
32
<A NAME="navbar_top"><!-- --></A>
33
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
34
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
35
<TR>
36
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
37
<A NAME="navbar_top_firstrow"><!-- --></A>
38
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
39
  <TR ALIGN="center" VALIGN="top">
40
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
41
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
42
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
43
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/IntMap.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
44
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
45
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
46
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
47
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
48
  </TR>
49
</TABLE>
50
</TD>
51
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
52
 
53
                                libgdx API
54
                                <style>
55
                                body, td, th { font-family:Helvetica, Tahoma, Arial, sans-serif; font-size:10pt }
56
                                pre, code, tt { font-size:9pt; font-family:Lucida Console, Courier New, sans-serif }
57
                                h1, h2, h3, .FrameTitleFont, .FrameHeadingFont, .TableHeadingColor font { font-size:105%;  font-weight:bold }
58
                                .TableHeadingColor { background:#EEEEFF; }
59
                                a { text-decoration:none }
60
                                a:hover { text-decoration:underline }
61
                                a:link, a:visited { color:blue }
62
                                table { border:0px }
63
                                .TableRowColor td:first-child { border-left:1px solid black }
64
                                .TableRowColor td { border:0px; border-bottom:1px solid black; border-right:1px solid black }
65
                                hr { border:0px; border-bottom:1px solid #333366; }
66
                                </style>
67
                        </EM>
68
</TD>
69
</TR>
70
 
71
<TR>
72
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
73
&nbsp;<A HREF="../../../../com/badlogic/gdx/utils/IntIntMap.Values.html" title="class in com.badlogic.gdx.utils"><B>PREV CLASS</B></A>&nbsp;
74
&nbsp;<A HREF="../../../../com/badlogic/gdx/utils/IntMap.Entries.html" title="class in com.badlogic.gdx.utils"><B>NEXT CLASS</B></A></FONT></TD>
75
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
76
  <A HREF="../../../../index.html?com/badlogic/gdx/utils/IntMap.html" target="_top"><B>FRAMES</B></A>  &nbsp;
77
&nbsp;<A HREF="IntMap.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
78
&nbsp;<SCRIPT type="text/javascript">
79
  <!--
80
  if(window==top) {
81
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
82
  }
83
  //-->
84
</SCRIPT>
85
<NOSCRIPT>
86
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
87
</NOSCRIPT>
88
 
89
 
90
</FONT></TD>
91
</TR>
92
<TR>
93
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
94
  SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
95
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
96
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
97
</TR>
98
</TABLE>
99
<A NAME="skip-navbar_top"></A>
100
<!-- ========= END OF TOP NAVBAR ========= -->
101
 
102
<HR>
103
<!-- ======== START OF CLASS DATA ======== -->
104
<H2>
105
<FONT SIZE="-1">
106
com.badlogic.gdx.utils</FONT>
107
<BR>
108
Class IntMap&lt;V&gt;</H2>
109
<PRE>
110
java.lang.Object
111
  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.badlogic.gdx.utils.IntMap&lt;V&gt;</B>
112
</PRE>
113
<HR>
114
<DL>
115
<DT><PRE>public class <B>IntMap&lt;V&gt;</B><DT>extends java.lang.Object</DL>
116
</PRE>
117
 
118
<P>
119
An unordered map that uses int keys. This implementation is a cuckoo hash map using 3 hashes, random walking, and a small stash
120
 for problematic keys. Null values are allowed. No allocation is done except when growing the table size. <br>
121
 <br>
122
 This map performs very fast get, containsKey, and remove (typically O(1), worst case O(log(n))). Put may be a bit slower,
123
 depending on hash collisions. Load factors greater than 0.91 greatly increase the chances the map will have to rehash to the
124
 next higher POT size.
125
<P>
126
 
127
<P>
128
<DL>
129
<DT><B>Author:</B></DT>
130
  <DD>Nathan Sweet</DD>
131
</DL>
132
<HR>
133
 
134
<P>
135
<!-- ======== NESTED CLASS SUMMARY ======== -->
136
 
137
<A NAME="nested_class_summary"><!-- --></A>
138
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
139
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
140
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
141
<B>Nested Class Summary</B></FONT></TH>
142
</TR>
143
<TR BGCOLOR="white" CLASS="TableRowColor">
144
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
145
<CODE>static&nbsp;class</CODE></FONT></TD>
146
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/IntMap.Entries.html" title="class in com.badlogic.gdx.utils">IntMap.Entries</A>&lt;<A HREF="../../../../com/badlogic/gdx/utils/IntMap.Entries.html" title="type parameter in IntMap.Entries">V</A>&gt;</B></CODE>
147
 
148
<BR>
149
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
150
</TR>
151
<TR BGCOLOR="white" CLASS="TableRowColor">
152
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
153
<CODE>static&nbsp;class</CODE></FONT></TD>
154
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/IntMap.Entry.html" title="class in com.badlogic.gdx.utils">IntMap.Entry</A>&lt;<A HREF="../../../../com/badlogic/gdx/utils/IntMap.Entry.html" title="type parameter in IntMap.Entry">V</A>&gt;</B></CODE>
155
 
156
<BR>
157
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
158
</TR>
159
<TR BGCOLOR="white" CLASS="TableRowColor">
160
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
161
<CODE>static&nbsp;class</CODE></FONT></TD>
162
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/IntMap.Keys.html" title="class in com.badlogic.gdx.utils">IntMap.Keys</A></B></CODE>
163
 
164
<BR>
165
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
166
</TR>
167
<TR BGCOLOR="white" CLASS="TableRowColor">
168
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
169
<CODE>static&nbsp;class</CODE></FONT></TD>
170
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/IntMap.Values.html" title="class in com.badlogic.gdx.utils">IntMap.Values</A>&lt;<A HREF="../../../../com/badlogic/gdx/utils/IntMap.Values.html" title="type parameter in IntMap.Values">V</A>&gt;</B></CODE>
171
 
172
<BR>
173
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
174
</TR>
175
</TABLE>
176
&nbsp;<!-- =========== FIELD SUMMARY =========== -->
177
 
178
<A NAME="field_summary"><!-- --></A>
179
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
180
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
181
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
182
<B>Field Summary</B></FONT></TH>
183
</TR>
184
<TR BGCOLOR="white" CLASS="TableRowColor">
185
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
186
<CODE>&nbsp;int</CODE></FONT></TD>
187
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/IntMap.html#size">size</A></B></CODE>
188
 
189
<BR>
190
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
191
</TR>
192
</TABLE>
193
&nbsp;
194
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
195
 
196
<A NAME="constructor_summary"><!-- --></A>
197
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
198
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
199
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
200
<B>Constructor Summary</B></FONT></TH>
201
</TR>
202
<TR BGCOLOR="white" CLASS="TableRowColor">
203
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/IntMap.html#IntMap()">IntMap</A></B>()</CODE>
204
 
205
<BR>
206
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new map with an initial capacity of 32 and a load factor of 0.8.</TD>
207
</TR>
208
<TR BGCOLOR="white" CLASS="TableRowColor">
209
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/IntMap.html#IntMap(int)">IntMap</A></B>(int&nbsp;initialCapacity)</CODE>
210
 
211
<BR>
212
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new map with a load factor of 0.8.</TD>
213
</TR>
214
<TR BGCOLOR="white" CLASS="TableRowColor">
215
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/IntMap.html#IntMap(int, float)">IntMap</A></B>(int&nbsp;initialCapacity,
216
       float&nbsp;loadFactor)</CODE>
217
 
218
<BR>
219
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new map with the specified initial capacity and load factor.</TD>
220
</TR>
221
</TABLE>
222
&nbsp;
223
<!-- ========== METHOD SUMMARY =========== -->
224
 
225
<A NAME="method_summary"><!-- --></A>
226
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
227
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
228
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
229
<B>Method Summary</B></FONT></TH>
230
</TR>
231
<TR BGCOLOR="white" CLASS="TableRowColor">
232
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
233
<CODE>&nbsp;void</CODE></FONT></TD>
234
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/IntMap.html#clear()">clear</A></B>()</CODE>
235
 
236
<BR>
237
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
238
</TR>
239
<TR BGCOLOR="white" CLASS="TableRowColor">
240
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
241
<CODE>&nbsp;boolean</CODE></FONT></TD>
242
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/IntMap.html#containsKey(int)">containsKey</A></B>(int&nbsp;key)</CODE>
243
 
244
<BR>
245
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
246
</TR>
247
<TR BGCOLOR="white" CLASS="TableRowColor">
248
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
249
<CODE>&nbsp;boolean</CODE></FONT></TD>
250
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/IntMap.html#containsValue(java.lang.Object, boolean)">containsValue</A></B>(java.lang.Object&nbsp;value,
251
              boolean&nbsp;identity)</CODE>
252
 
253
<BR>
254
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the specified value is in the map.</TD>
255
</TR>
256
<TR BGCOLOR="white" CLASS="TableRowColor">
257
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
258
<CODE>&nbsp;void</CODE></FONT></TD>
259
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/IntMap.html#ensureCapacity(int)">ensureCapacity</A></B>(int&nbsp;additionalCapacity)</CODE>
260
 
261
<BR>
262
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Increases the size of the backing array to acommodate the specified number of additional items.</TD>
263
</TR>
264
<TR BGCOLOR="white" CLASS="TableRowColor">
265
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
266
<CODE>&nbsp;<A HREF="../../../../com/badlogic/gdx/utils/IntMap.Entries.html" title="class in com.badlogic.gdx.utils">IntMap.Entries</A>&lt;<A HREF="../../../../com/badlogic/gdx/utils/IntMap.html" title="type parameter in IntMap">V</A>&gt;</CODE></FONT></TD>
267
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/IntMap.html#entries()">entries</A></B>()</CODE>
268
 
269
<BR>
270
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns an iterator for the entries in the map.</TD>
271
</TR>
272
<TR BGCOLOR="white" CLASS="TableRowColor">
273
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
274
<CODE>&nbsp;int</CODE></FONT></TD>
275
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/IntMap.html#findKey(java.lang.Object, boolean, int)">findKey</A></B>(java.lang.Object&nbsp;value,
276
        boolean&nbsp;identity,
277
        int&nbsp;notFound)</CODE>
278
 
279
<BR>
280
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the key for the specified value, or <tt>notFound</tt> if it is not in the map.</TD>
281
</TR>
282
<TR BGCOLOR="white" CLASS="TableRowColor">
283
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
284
<CODE>&nbsp;<A HREF="../../../../com/badlogic/gdx/utils/IntMap.html" title="type parameter in IntMap">V</A></CODE></FONT></TD>
285
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/IntMap.html#get(int)">get</A></B>(int&nbsp;key)</CODE>
286
 
287
<BR>
288
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
289
</TR>
290
<TR BGCOLOR="white" CLASS="TableRowColor">
291
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
292
<CODE>&nbsp;<A HREF="../../../../com/badlogic/gdx/utils/IntMap.html" title="type parameter in IntMap">V</A></CODE></FONT></TD>
293
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/IntMap.html#get(int, V)">get</A></B>(int&nbsp;key,
294
    <A HREF="../../../../com/badlogic/gdx/utils/IntMap.html" title="type parameter in IntMap">V</A>&nbsp;defaultValue)</CODE>
295
 
296
<BR>
297
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
298
</TR>
299
<TR BGCOLOR="white" CLASS="TableRowColor">
300
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
301
<CODE>&nbsp;<A HREF="../../../../com/badlogic/gdx/utils/IntMap.Keys.html" title="class in com.badlogic.gdx.utils">IntMap.Keys</A></CODE></FONT></TD>
302
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/IntMap.html#keys()">keys</A></B>()</CODE>
303
 
304
<BR>
305
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns an iterator for the keys in the map.</TD>
306
</TR>
307
<TR BGCOLOR="white" CLASS="TableRowColor">
308
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
309
<CODE>&nbsp;<A HREF="../../../../com/badlogic/gdx/utils/IntMap.html" title="type parameter in IntMap">V</A></CODE></FONT></TD>
310
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/IntMap.html#put(int, V)">put</A></B>(int&nbsp;key,
311
    <A HREF="../../../../com/badlogic/gdx/utils/IntMap.html" title="type parameter in IntMap">V</A>&nbsp;value)</CODE>
312
 
313
<BR>
314
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
315
</TR>
316
<TR BGCOLOR="white" CLASS="TableRowColor">
317
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
318
<CODE>&nbsp;void</CODE></FONT></TD>
319
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/IntMap.html#putAll(com.badlogic.gdx.utils.IntMap)">putAll</A></B>(<A HREF="../../../../com/badlogic/gdx/utils/IntMap.html" title="class in com.badlogic.gdx.utils">IntMap</A>&lt;<A HREF="../../../../com/badlogic/gdx/utils/IntMap.html" title="type parameter in IntMap">V</A>&gt;&nbsp;map)</CODE>
320
 
321
<BR>
322
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
323
</TR>
324
<TR BGCOLOR="white" CLASS="TableRowColor">
325
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
326
<CODE>&nbsp;<A HREF="../../../../com/badlogic/gdx/utils/IntMap.html" title="type parameter in IntMap">V</A></CODE></FONT></TD>
327
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/IntMap.html#remove(int)">remove</A></B>(int&nbsp;key)</CODE>
328
 
329
<BR>
330
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
331
</TR>
332
<TR BGCOLOR="white" CLASS="TableRowColor">
333
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
334
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
335
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/IntMap.html#toString()">toString</A></B>()</CODE>
336
 
337
<BR>
338
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
339
</TR>
340
<TR BGCOLOR="white" CLASS="TableRowColor">
341
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
342
<CODE>&nbsp;<A HREF="../../../../com/badlogic/gdx/utils/IntMap.Values.html" title="class in com.badlogic.gdx.utils">IntMap.Values</A>&lt;<A HREF="../../../../com/badlogic/gdx/utils/IntMap.html" title="type parameter in IntMap">V</A>&gt;</CODE></FONT></TD>
343
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/IntMap.html#values()">values</A></B>()</CODE>
344
 
345
<BR>
346
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns an iterator for the values in the map.</TD>
347
</TR>
348
</TABLE>
349
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
350
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
351
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
352
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
353
</TR>
354
<TR BGCOLOR="white" CLASS="TableRowColor">
355
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD>
356
</TR>
357
</TABLE>
358
&nbsp;
359
<P>
360
 
361
<!-- ============ FIELD DETAIL =========== -->
362
 
363
<A NAME="field_detail"><!-- --></A>
364
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
365
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
366
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
367
<B>Field Detail</B></FONT></TH>
368
</TR>
369
</TABLE>
370
 
371
<A NAME="size"><!-- --></A><H3>
372
size</H3>
373
<PRE>
374
public int <B>size</B></PRE>
375
<DL>
376
<DL>
377
</DL>
378
</DL>
379
 
380
<!-- ========= CONSTRUCTOR DETAIL ======== -->
381
 
382
<A NAME="constructor_detail"><!-- --></A>
383
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
384
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
385
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
386
<B>Constructor Detail</B></FONT></TH>
387
</TR>
388
</TABLE>
389
 
390
<A NAME="IntMap()"><!-- --></A><H3>
391
IntMap</H3>
392
<PRE>
393
public <B>IntMap</B>()</PRE>
394
<DL>
395
<DD>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
396
 backing table.
397
<P>
398
</DL>
399
<HR>
400
 
401
<A NAME="IntMap(int)"><!-- --></A><H3>
402
IntMap</H3>
403
<PRE>
404
public <B>IntMap</B>(int&nbsp;initialCapacity)</PRE>
405
<DL>
406
<DD>Creates a new map with a load factor of 0.8. This map will hold initialCapacity * 0.8 items before growing the backing
407
 table.
408
<P>
409
</DL>
410
<HR>
411
 
412
<A NAME="IntMap(int, float)"><!-- --></A><H3>
413
IntMap</H3>
414
<PRE>
415
public <B>IntMap</B>(int&nbsp;initialCapacity,
416
              float&nbsp;loadFactor)</PRE>
417
<DL>
418
<DD>Creates a new map with the specified initial capacity and load factor. This map will hold initialCapacity * loadFactor items
419
 before growing the backing table.
420
<P>
421
</DL>
422
 
423
<!-- ============ METHOD DETAIL ========== -->
424
 
425
<A NAME="method_detail"><!-- --></A>
426
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
427
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
428
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
429
<B>Method Detail</B></FONT></TH>
430
</TR>
431
</TABLE>
432
 
433
<A NAME="put(int,java.lang.Object)"><!-- --></A><A NAME="put(int, V)"><!-- --></A><H3>
434
put</H3>
435
<PRE>
436
public <A HREF="../../../../com/badlogic/gdx/utils/IntMap.html" title="type parameter in IntMap">V</A> <B>put</B>(int&nbsp;key,
437
             <A HREF="../../../../com/badlogic/gdx/utils/IntMap.html" title="type parameter in IntMap">V</A>&nbsp;value)</PRE>
438
<DL>
439
<DD><DL>
440
</DL>
441
</DD>
442
</DL>
443
<HR>
444
 
445
<A NAME="putAll(com.badlogic.gdx.utils.IntMap)"><!-- --></A><H3>
446
putAll</H3>
447
<PRE>
448
public void <B>putAll</B>(<A HREF="../../../../com/badlogic/gdx/utils/IntMap.html" title="class in com.badlogic.gdx.utils">IntMap</A>&lt;<A HREF="../../../../com/badlogic/gdx/utils/IntMap.html" title="type parameter in IntMap">V</A>&gt;&nbsp;map)</PRE>
449
<DL>
450
<DD><DL>
451
</DL>
452
</DD>
453
</DL>
454
<HR>
455
 
456
<A NAME="get(int)"><!-- --></A><H3>
457
get</H3>
458
<PRE>
459
public <A HREF="../../../../com/badlogic/gdx/utils/IntMap.html" title="type parameter in IntMap">V</A> <B>get</B>(int&nbsp;key)</PRE>
460
<DL>
461
<DD><DL>
462
</DL>
463
</DD>
464
</DL>
465
<HR>
466
 
467
<A NAME="get(int,java.lang.Object)"><!-- --></A><A NAME="get(int, V)"><!-- --></A><H3>
468
get</H3>
469
<PRE>
470
public <A HREF="../../../../com/badlogic/gdx/utils/IntMap.html" title="type parameter in IntMap">V</A> <B>get</B>(int&nbsp;key,
471
             <A HREF="../../../../com/badlogic/gdx/utils/IntMap.html" title="type parameter in IntMap">V</A>&nbsp;defaultValue)</PRE>
472
<DL>
473
<DD><DL>
474
</DL>
475
</DD>
476
</DL>
477
<HR>
478
 
479
<A NAME="remove(int)"><!-- --></A><H3>
480
remove</H3>
481
<PRE>
482
public <A HREF="../../../../com/badlogic/gdx/utils/IntMap.html" title="type parameter in IntMap">V</A> <B>remove</B>(int&nbsp;key)</PRE>
483
<DL>
484
<DD><DL>
485
</DL>
486
</DD>
487
</DL>
488
<HR>
489
 
490
<A NAME="clear()"><!-- --></A><H3>
491
clear</H3>
492
<PRE>
493
public void <B>clear</B>()</PRE>
494
<DL>
495
<DD><DL>
496
</DL>
497
</DD>
498
</DL>
499
<HR>
500
 
501
<A NAME="containsValue(java.lang.Object, boolean)"><!-- --></A><H3>
502
containsValue</H3>
503
<PRE>
504
public boolean <B>containsValue</B>(java.lang.Object&nbsp;value,
505
                             boolean&nbsp;identity)</PRE>
506
<DL>
507
<DD>Returns true if the specified value is in the map. Note this traverses the entire map and compares every value, which may be
508
 an expensive operation.
509
<P>
510
<DD><DL>
511
<DT><B>Parameters:</B><DD><CODE>identity</CODE> - If true, uses == to compare the specified value with values in the map. If false, uses
512
           <CODE>Object.equals(Object)</CODE>.</DL>
513
</DD>
514
</DL>
515
<HR>
516
 
517
<A NAME="containsKey(int)"><!-- --></A><H3>
518
containsKey</H3>
519
<PRE>
520
public boolean <B>containsKey</B>(int&nbsp;key)</PRE>
521
<DL>
522
<DD><DL>
523
</DL>
524
</DD>
525
</DL>
526
<HR>
527
 
528
<A NAME="findKey(java.lang.Object, boolean, int)"><!-- --></A><H3>
529
findKey</H3>
530
<PRE>
531
public int <B>findKey</B>(java.lang.Object&nbsp;value,
532
                   boolean&nbsp;identity,
533
                   int&nbsp;notFound)</PRE>
534
<DL>
535
<DD>Returns the key for the specified value, or <tt>notFound</tt> if it is not in the map. Note this traverses the entire map
536
 and compares every value, which may be an expensive operation.
537
<P>
538
<DD><DL>
539
<DT><B>Parameters:</B><DD><CODE>identity</CODE> - If true, uses == to compare the specified value with values in the map. If false, uses
540
           <CODE>Object.equals(Object)</CODE>.</DL>
541
</DD>
542
</DL>
543
<HR>
544
 
545
<A NAME="ensureCapacity(int)"><!-- --></A><H3>
546
ensureCapacity</H3>
547
<PRE>
548
public void <B>ensureCapacity</B>(int&nbsp;additionalCapacity)</PRE>
549
<DL>
550
<DD>Increases the size of the backing array to acommodate the specified number of additional items. Useful before adding many
551
 items to avoid multiple backing array resizes.
552
<P>
553
<DD><DL>
554
</DL>
555
</DD>
556
</DL>
557
<HR>
558
 
559
<A NAME="toString()"><!-- --></A><H3>
560
toString</H3>
561
<PRE>
562
public java.lang.String <B>toString</B>()</PRE>
563
<DL>
564
<DD><DL>
565
<DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL>
566
</DD>
567
<DD><DL>
568
</DL>
569
</DD>
570
</DL>
571
<HR>
572
 
573
<A NAME="entries()"><!-- --></A><H3>
574
entries</H3>
575
<PRE>
576
public <A HREF="../../../../com/badlogic/gdx/utils/IntMap.Entries.html" title="class in com.badlogic.gdx.utils">IntMap.Entries</A>&lt;<A HREF="../../../../com/badlogic/gdx/utils/IntMap.html" title="type parameter in IntMap">V</A>&gt; <B>entries</B>()</PRE>
577
<DL>
578
<DD>Returns an iterator for the entries in the map. Remove is supported. Note that the same iterator instance is returned each
579
 time this method is called. Use the <A HREF="../../../../com/badlogic/gdx/utils/IntMap.Entries.html" title="class in com.badlogic.gdx.utils"><CODE>IntMap.Entries</CODE></A> constructor for nested or multithreaded iteration.
580
<P>
581
<DD><DL>
582
</DL>
583
</DD>
584
</DL>
585
<HR>
586
 
587
<A NAME="values()"><!-- --></A><H3>
588
values</H3>
589
<PRE>
590
public <A HREF="../../../../com/badlogic/gdx/utils/IntMap.Values.html" title="class in com.badlogic.gdx.utils">IntMap.Values</A>&lt;<A HREF="../../../../com/badlogic/gdx/utils/IntMap.html" title="type parameter in IntMap">V</A>&gt; <B>values</B>()</PRE>
591
<DL>
592
<DD>Returns an iterator for the values in the map. Remove is supported. Note that the same iterator instance is returned each
593
 time this method is called. Use the <A HREF="../../../../com/badlogic/gdx/utils/IntMap.Entries.html" title="class in com.badlogic.gdx.utils"><CODE>IntMap.Entries</CODE></A> constructor for nested or multithreaded iteration.
594
<P>
595
<DD><DL>
596
</DL>
597
</DD>
598
</DL>
599
<HR>
600
 
601
<A NAME="keys()"><!-- --></A><H3>
602
keys</H3>
603
<PRE>
604
public <A HREF="../../../../com/badlogic/gdx/utils/IntMap.Keys.html" title="class in com.badlogic.gdx.utils">IntMap.Keys</A> <B>keys</B>()</PRE>
605
<DL>
606
<DD>Returns an iterator for the keys in the map. Remove is supported. Note that the same iterator instance is returned each time
607
 this method is called. Use the <A HREF="../../../../com/badlogic/gdx/utils/IntMap.Entries.html" title="class in com.badlogic.gdx.utils"><CODE>IntMap.Entries</CODE></A> constructor for nested or multithreaded iteration.
608
<P>
609
<DD><DL>
610
</DL>
611
</DD>
612
</DL>
613
<!-- ========= END OF CLASS DATA ========= -->
614
<HR>
615
 
616
 
617
<!-- ======= START OF BOTTOM NAVBAR ====== -->
618
<A NAME="navbar_bottom"><!-- --></A>
619
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
620
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
621
<TR>
622
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
623
<A NAME="navbar_bottom_firstrow"><!-- --></A>
624
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
625
  <TR ALIGN="center" VALIGN="top">
626
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
627
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
628
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
629
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/IntMap.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
630
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
631
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
632
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
633
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
634
  </TR>
635
</TABLE>
636
</TD>
637
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
638
libgdx API</EM>
639
</TD>
640
</TR>
641
 
642
<TR>
643
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
644
&nbsp;<A HREF="../../../../com/badlogic/gdx/utils/IntIntMap.Values.html" title="class in com.badlogic.gdx.utils"><B>PREV CLASS</B></A>&nbsp;
645
&nbsp;<A HREF="../../../../com/badlogic/gdx/utils/IntMap.Entries.html" title="class in com.badlogic.gdx.utils"><B>NEXT CLASS</B></A></FONT></TD>
646
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
647
  <A HREF="../../../../index.html?com/badlogic/gdx/utils/IntMap.html" target="_top"><B>FRAMES</B></A>  &nbsp;
648
&nbsp;<A HREF="IntMap.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
649
&nbsp;<SCRIPT type="text/javascript">
650
  <!--
651
  if(window==top) {
652
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
653
  }
654
  //-->
655
</SCRIPT>
656
<NOSCRIPT>
657
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
658
</NOSCRIPT>
659
 
660
 
661
</FONT></TD>
662
</TR>
663
<TR>
664
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
665
  SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
666
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
667
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
668
</TR>
669
</TABLE>
670
<A NAME="skip-navbar_bottom"></A>
671
<!-- ======== END OF BOTTOM NAVBAR ======= -->
672
 
673
<HR>
674
 
675
                                <div style="font-size:9pt"><i>
676
                                Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)
677
                                </i></div>
678
 
679
</BODY>
680
</HTML>