Subversion Repositories AndroidProjects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
272 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 Mon Jul 02 02:26:04 CEST 2012 -->
6
<TITLE>
7
BooleanArray (libgdx API)
8
</TITLE>
9
 
10
<META NAME="date" CONTENT="2012-07-02">
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="BooleanArray (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/BooleanArray.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/BinaryHeap.Node.html" title="class in com.badlogic.gdx.utils"><B>PREV CLASS</B></A>&nbsp;
74
&nbsp;<A HREF="../../../../com/badlogic/gdx/utils/BufferUtils.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/BooleanArray.html" target="_top"><B>FRAMES</B></A>  &nbsp;
77
&nbsp;<A HREF="BooleanArray.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;NESTED&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 BooleanArray</H2>
109
<PRE>
110
java.lang.Object
111
  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.badlogic.gdx.utils.BooleanArray</B>
112
</PRE>
113
<HR>
114
<DL>
115
<DT><PRE>public class <B>BooleanArray</B><DT>extends java.lang.Object</DL>
116
</PRE>
117
 
118
<P>
119
A resizable, ordered or unordered boolean array. Avoids the boxing that occurs with ArrayList<Boolean>. It is less memory
120
 efficient than <CODE>BitSet</CODE>, except for very small sizes. It more CPU efficient than <CODE>BitSet</CODE>, except for very large
121
 sizes or if BitSet functionality such as and, or, xor, etc are needed. If unordered, this class avoids a memory copy when
122
 removing elements (the last element is moved to the removed element's position).
123
<P>
124
 
125
<P>
126
<DL>
127
<DT><B>Author:</B></DT>
128
  <DD>Nathan Sweet</DD>
129
</DL>
130
<HR>
131
 
132
<P>
133
<!-- =========== FIELD SUMMARY =========== -->
134
 
135
<A NAME="field_summary"><!-- --></A>
136
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
137
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
138
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
139
<B>Field Summary</B></FONT></TH>
140
</TR>
141
<TR BGCOLOR="white" CLASS="TableRowColor">
142
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
143
<CODE>&nbsp;boolean[]</CODE></FONT></TD>
144
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/BooleanArray.html#items">items</A></B></CODE>
145
 
146
<BR>
147
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
148
</TR>
149
<TR BGCOLOR="white" CLASS="TableRowColor">
150
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
151
<CODE>&nbsp;boolean</CODE></FONT></TD>
152
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/BooleanArray.html#ordered">ordered</A></B></CODE>
153
 
154
<BR>
155
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
156
</TR>
157
<TR BGCOLOR="white" CLASS="TableRowColor">
158
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
159
<CODE>&nbsp;int</CODE></FONT></TD>
160
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/BooleanArray.html#size">size</A></B></CODE>
161
 
162
<BR>
163
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
164
</TR>
165
</TABLE>
166
&nbsp;
167
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
168
 
169
<A NAME="constructor_summary"><!-- --></A>
170
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
171
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
172
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
173
<B>Constructor Summary</B></FONT></TH>
174
</TR>
175
<TR BGCOLOR="white" CLASS="TableRowColor">
176
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/BooleanArray.html#BooleanArray()">BooleanArray</A></B>()</CODE>
177
 
178
<BR>
179
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates an ordered array with a capacity of 16.</TD>
180
</TR>
181
<TR BGCOLOR="white" CLASS="TableRowColor">
182
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/BooleanArray.html#BooleanArray(boolean[])">BooleanArray</A></B>(boolean[]&nbsp;array)</CODE>
183
 
184
<BR>
185
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new ordered array containing the elements in the specified array.</TD>
186
</TR>
187
<TR BGCOLOR="white" CLASS="TableRowColor">
188
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/BooleanArray.html#BooleanArray(com.badlogic.gdx.utils.BooleanArray)">BooleanArray</A></B>(<A HREF="../../../../com/badlogic/gdx/utils/BooleanArray.html" title="class in com.badlogic.gdx.utils">BooleanArray</A>&nbsp;array)</CODE>
189
 
190
<BR>
191
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new array containing the elements in the specific array.</TD>
192
</TR>
193
<TR BGCOLOR="white" CLASS="TableRowColor">
194
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/BooleanArray.html#BooleanArray(boolean, boolean[])">BooleanArray</A></B>(boolean&nbsp;ordered,
195
             boolean[]&nbsp;array)</CODE>
196
 
197
<BR>
198
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new array containing the elements in the specified array.</TD>
199
</TR>
200
<TR BGCOLOR="white" CLASS="TableRowColor">
201
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/BooleanArray.html#BooleanArray(boolean, int)">BooleanArray</A></B>(boolean&nbsp;ordered,
202
             int&nbsp;capacity)</CODE>
203
 
204
<BR>
205
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
206
</TR>
207
<TR BGCOLOR="white" CLASS="TableRowColor">
208
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/BooleanArray.html#BooleanArray(int)">BooleanArray</A></B>(int&nbsp;capacity)</CODE>
209
 
210
<BR>
211
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates an ordered array with the specified capacity.</TD>
212
</TR>
213
</TABLE>
214
&nbsp;
215
<!-- ========== METHOD SUMMARY =========== -->
216
 
217
<A NAME="method_summary"><!-- --></A>
218
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
219
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
220
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
221
<B>Method Summary</B></FONT></TH>
222
</TR>
223
<TR BGCOLOR="white" CLASS="TableRowColor">
224
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
225
<CODE>&nbsp;void</CODE></FONT></TD>
226
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/BooleanArray.html#add(boolean)">add</A></B>(boolean&nbsp;value)</CODE>
227
 
228
<BR>
229
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
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/BooleanArray.html#addAll(boolean[])">addAll</A></B>(boolean[]&nbsp;array)</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;void</CODE></FONT></TD>
242
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/BooleanArray.html#addAll(boolean[], int, int)">addAll</A></B>(boolean[]&nbsp;array,
243
       int&nbsp;offset,
244
       int&nbsp;length)</CODE>
245
 
246
<BR>
247
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
248
</TR>
249
<TR BGCOLOR="white" CLASS="TableRowColor">
250
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
251
<CODE>&nbsp;void</CODE></FONT></TD>
252
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/BooleanArray.html#addAll(com.badlogic.gdx.utils.BooleanArray)">addAll</A></B>(<A HREF="../../../../com/badlogic/gdx/utils/BooleanArray.html" title="class in com.badlogic.gdx.utils">BooleanArray</A>&nbsp;array)</CODE>
253
 
254
<BR>
255
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
256
</TR>
257
<TR BGCOLOR="white" CLASS="TableRowColor">
258
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
259
<CODE>&nbsp;void</CODE></FONT></TD>
260
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/BooleanArray.html#addAll(com.badlogic.gdx.utils.BooleanArray, int, int)">addAll</A></B>(<A HREF="../../../../com/badlogic/gdx/utils/BooleanArray.html" title="class in com.badlogic.gdx.utils">BooleanArray</A>&nbsp;array,
261
       int&nbsp;offset,
262
       int&nbsp;length)</CODE>
263
 
264
<BR>
265
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
266
</TR>
267
<TR BGCOLOR="white" CLASS="TableRowColor">
268
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
269
<CODE>&nbsp;void</CODE></FONT></TD>
270
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/BooleanArray.html#clear()">clear</A></B>()</CODE>
271
 
272
<BR>
273
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
274
</TR>
275
<TR BGCOLOR="white" CLASS="TableRowColor">
276
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
277
<CODE>&nbsp;boolean[]</CODE></FONT></TD>
278
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/BooleanArray.html#ensureCapacity(int)">ensureCapacity</A></B>(int&nbsp;additionalCapacity)</CODE>
279
 
280
<BR>
281
&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>
282
</TR>
283
<TR BGCOLOR="white" CLASS="TableRowColor">
284
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
285
<CODE>&nbsp;boolean</CODE></FONT></TD>
286
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/BooleanArray.html#get(int)">get</A></B>(int&nbsp;index)</CODE>
287
 
288
<BR>
289
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
290
</TR>
291
<TR BGCOLOR="white" CLASS="TableRowColor">
292
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
293
<CODE>&nbsp;void</CODE></FONT></TD>
294
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/BooleanArray.html#insert(int, boolean)">insert</A></B>(int&nbsp;index,
295
       boolean&nbsp;value)</CODE>
296
 
297
<BR>
298
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
299
</TR>
300
<TR BGCOLOR="white" CLASS="TableRowColor">
301
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
302
<CODE>&nbsp;boolean</CODE></FONT></TD>
303
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/BooleanArray.html#peek()">peek</A></B>()</CODE>
304
 
305
<BR>
306
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the last item.</TD>
307
</TR>
308
<TR BGCOLOR="white" CLASS="TableRowColor">
309
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
310
<CODE>&nbsp;boolean</CODE></FONT></TD>
311
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/BooleanArray.html#pop()">pop</A></B>()</CODE>
312
 
313
<BR>
314
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes and returns the last item.</TD>
315
</TR>
316
<TR BGCOLOR="white" CLASS="TableRowColor">
317
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
318
<CODE>&nbsp;boolean</CODE></FONT></TD>
319
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/BooleanArray.html#random()">random</A></B>()</CODE>
320
 
321
<BR>
322
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a random item from the array, or false if the array is empty.</TD>
323
</TR>
324
<TR BGCOLOR="white" CLASS="TableRowColor">
325
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
326
<CODE>&nbsp;boolean</CODE></FONT></TD>
327
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/BooleanArray.html#removeIndex(int)">removeIndex</A></B>(int&nbsp;index)</CODE>
328
 
329
<BR>
330
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes and returns the item at the specified index.</TD>
331
</TR>
332
<TR BGCOLOR="white" CLASS="TableRowColor">
333
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
334
<CODE>protected &nbsp;boolean[]</CODE></FONT></TD>
335
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/BooleanArray.html#resize(int)">resize</A></B>(int&nbsp;newSize)</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;void</CODE></FONT></TD>
343
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/BooleanArray.html#reverse()">reverse</A></B>()</CODE>
344
 
345
<BR>
346
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
347
</TR>
348
<TR BGCOLOR="white" CLASS="TableRowColor">
349
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
350
<CODE>&nbsp;void</CODE></FONT></TD>
351
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/BooleanArray.html#set(int, boolean)">set</A></B>(int&nbsp;index,
352
    boolean&nbsp;value)</CODE>
353
 
354
<BR>
355
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
356
</TR>
357
<TR BGCOLOR="white" CLASS="TableRowColor">
358
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
359
<CODE>&nbsp;void</CODE></FONT></TD>
360
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/BooleanArray.html#shrink()">shrink</A></B>()</CODE>
361
 
362
<BR>
363
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reduces the size of the backing array to the size of the actual items.</TD>
364
</TR>
365
<TR BGCOLOR="white" CLASS="TableRowColor">
366
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
367
<CODE>&nbsp;void</CODE></FONT></TD>
368
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/BooleanArray.html#shuffle()">shuffle</A></B>()</CODE>
369
 
370
<BR>
371
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
372
</TR>
373
<TR BGCOLOR="white" CLASS="TableRowColor">
374
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
375
<CODE>&nbsp;boolean[]</CODE></FONT></TD>
376
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/BooleanArray.html#toArray()">toArray</A></B>()</CODE>
377
 
378
<BR>
379
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
380
</TR>
381
<TR BGCOLOR="white" CLASS="TableRowColor">
382
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
383
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
384
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/BooleanArray.html#toString()">toString</A></B>()</CODE>
385
 
386
<BR>
387
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
388
</TR>
389
<TR BGCOLOR="white" CLASS="TableRowColor">
390
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
391
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
392
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/BooleanArray.html#toString(java.lang.String)">toString</A></B>(java.lang.String&nbsp;separator)</CODE>
393
 
394
<BR>
395
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
396
</TR>
397
<TR BGCOLOR="white" CLASS="TableRowColor">
398
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
399
<CODE>&nbsp;void</CODE></FONT></TD>
400
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/BooleanArray.html#truncate(int)">truncate</A></B>(int&nbsp;newSize)</CODE>
401
 
402
<BR>
403
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reduces the size of the array to the specified size.</TD>
404
</TR>
405
</TABLE>
406
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
407
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
408
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
409
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
410
</TR>
411
<TR BGCOLOR="white" CLASS="TableRowColor">
412
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD>
413
</TR>
414
</TABLE>
415
&nbsp;
416
<P>
417
 
418
<!-- ============ FIELD DETAIL =========== -->
419
 
420
<A NAME="field_detail"><!-- --></A>
421
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
422
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
423
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
424
<B>Field Detail</B></FONT></TH>
425
</TR>
426
</TABLE>
427
 
428
<A NAME="items"><!-- --></A><H3>
429
items</H3>
430
<PRE>
431
public boolean[] <B>items</B></PRE>
432
<DL>
433
<DL>
434
</DL>
435
</DL>
436
<HR>
437
 
438
<A NAME="size"><!-- --></A><H3>
439
size</H3>
440
<PRE>
441
public int <B>size</B></PRE>
442
<DL>
443
<DL>
444
</DL>
445
</DL>
446
<HR>
447
 
448
<A NAME="ordered"><!-- --></A><H3>
449
ordered</H3>
450
<PRE>
451
public boolean <B>ordered</B></PRE>
452
<DL>
453
<DL>
454
</DL>
455
</DL>
456
 
457
<!-- ========= CONSTRUCTOR DETAIL ======== -->
458
 
459
<A NAME="constructor_detail"><!-- --></A>
460
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
461
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
462
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
463
<B>Constructor Detail</B></FONT></TH>
464
</TR>
465
</TABLE>
466
 
467
<A NAME="BooleanArray()"><!-- --></A><H3>
468
BooleanArray</H3>
469
<PRE>
470
public <B>BooleanArray</B>()</PRE>
471
<DL>
472
<DD>Creates an ordered array with a capacity of 16.
473
<P>
474
</DL>
475
<HR>
476
 
477
<A NAME="BooleanArray(int)"><!-- --></A><H3>
478
BooleanArray</H3>
479
<PRE>
480
public <B>BooleanArray</B>(int&nbsp;capacity)</PRE>
481
<DL>
482
<DD>Creates an ordered array with the specified capacity.
483
<P>
484
</DL>
485
<HR>
486
 
487
<A NAME="BooleanArray(boolean, int)"><!-- --></A><H3>
488
BooleanArray</H3>
489
<PRE>
490
public <B>BooleanArray</B>(boolean&nbsp;ordered,
491
                    int&nbsp;capacity)</PRE>
492
<DL>
493
<DL>
494
<DT><B>Parameters:</B><DD><CODE>ordered</CODE> - If false, methods that remove elements may change the order of other elements in the array, which avoids a
495
           memory copy.<DD><CODE>capacity</CODE> - Any elements added beyond this will cause the backing array to be grown.</DL>
496
</DL>
497
<HR>
498
 
499
<A NAME="BooleanArray(com.badlogic.gdx.utils.BooleanArray)"><!-- --></A><H3>
500
BooleanArray</H3>
501
<PRE>
502
public <B>BooleanArray</B>(<A HREF="../../../../com/badlogic/gdx/utils/BooleanArray.html" title="class in com.badlogic.gdx.utils">BooleanArray</A>&nbsp;array)</PRE>
503
<DL>
504
<DD>Creates a new array containing the elements in the specific array. The new array will be ordered if the specific array is
505
 ordered. The capacity is set to the number of elements, so any subsequent elements added will cause the backing array to be
506
 grown.
507
<P>
508
</DL>
509
<HR>
510
 
511
<A NAME="BooleanArray(boolean[])"><!-- --></A><H3>
512
BooleanArray</H3>
513
<PRE>
514
public <B>BooleanArray</B>(boolean[]&nbsp;array)</PRE>
515
<DL>
516
<DD>Creates a new ordered array containing the elements in the specified array. The capacity is set to the number of elements,
517
 so any subsequent elements added will cause the backing array to be grown.
518
<P>
519
</DL>
520
<HR>
521
 
522
<A NAME="BooleanArray(boolean, boolean[])"><!-- --></A><H3>
523
BooleanArray</H3>
524
<PRE>
525
public <B>BooleanArray</B>(boolean&nbsp;ordered,
526
                    boolean[]&nbsp;array)</PRE>
527
<DL>
528
<DD>Creates a new array containing the elements in the specified array. The capacity is set to the number of elements, so any
529
 subsequent elements added will cause the backing array to be grown.
530
<P>
531
<DL>
532
<DT><B>Parameters:</B><DD><CODE>ordered</CODE> - If false, methods that remove elements may change the order of other elements in the array, which avoids a
533
           memory copy.</DL>
534
</DL>
535
 
536
<!-- ============ METHOD DETAIL ========== -->
537
 
538
<A NAME="method_detail"><!-- --></A>
539
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
540
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
541
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
542
<B>Method Detail</B></FONT></TH>
543
</TR>
544
</TABLE>
545
 
546
<A NAME="add(boolean)"><!-- --></A><H3>
547
add</H3>
548
<PRE>
549
public void <B>add</B>(boolean&nbsp;value)</PRE>
550
<DL>
551
<DD><DL>
552
</DL>
553
</DD>
554
</DL>
555
<HR>
556
 
557
<A NAME="addAll(com.badlogic.gdx.utils.BooleanArray)"><!-- --></A><H3>
558
addAll</H3>
559
<PRE>
560
public void <B>addAll</B>(<A HREF="../../../../com/badlogic/gdx/utils/BooleanArray.html" title="class in com.badlogic.gdx.utils">BooleanArray</A>&nbsp;array)</PRE>
561
<DL>
562
<DD><DL>
563
</DL>
564
</DD>
565
</DL>
566
<HR>
567
 
568
<A NAME="addAll(com.badlogic.gdx.utils.BooleanArray, int, int)"><!-- --></A><H3>
569
addAll</H3>
570
<PRE>
571
public void <B>addAll</B>(<A HREF="../../../../com/badlogic/gdx/utils/BooleanArray.html" title="class in com.badlogic.gdx.utils">BooleanArray</A>&nbsp;array,
572
                   int&nbsp;offset,
573
                   int&nbsp;length)</PRE>
574
<DL>
575
<DD><DL>
576
</DL>
577
</DD>
578
</DL>
579
<HR>
580
 
581
<A NAME="addAll(boolean[])"><!-- --></A><H3>
582
addAll</H3>
583
<PRE>
584
public void <B>addAll</B>(boolean[]&nbsp;array)</PRE>
585
<DL>
586
<DD><DL>
587
</DL>
588
</DD>
589
</DL>
590
<HR>
591
 
592
<A NAME="addAll(boolean[], int, int)"><!-- --></A><H3>
593
addAll</H3>
594
<PRE>
595
public void <B>addAll</B>(boolean[]&nbsp;array,
596
                   int&nbsp;offset,
597
                   int&nbsp;length)</PRE>
598
<DL>
599
<DD><DL>
600
</DL>
601
</DD>
602
</DL>
603
<HR>
604
 
605
<A NAME="get(int)"><!-- --></A><H3>
606
get</H3>
607
<PRE>
608
public boolean <B>get</B>(int&nbsp;index)</PRE>
609
<DL>
610
<DD><DL>
611
</DL>
612
</DD>
613
</DL>
614
<HR>
615
 
616
<A NAME="set(int, boolean)"><!-- --></A><H3>
617
set</H3>
618
<PRE>
619
public void <B>set</B>(int&nbsp;index,
620
                boolean&nbsp;value)</PRE>
621
<DL>
622
<DD><DL>
623
</DL>
624
</DD>
625
</DL>
626
<HR>
627
 
628
<A NAME="insert(int, boolean)"><!-- --></A><H3>
629
insert</H3>
630
<PRE>
631
public void <B>insert</B>(int&nbsp;index,
632
                   boolean&nbsp;value)</PRE>
633
<DL>
634
<DD><DL>
635
</DL>
636
</DD>
637
</DL>
638
<HR>
639
 
640
<A NAME="removeIndex(int)"><!-- --></A><H3>
641
removeIndex</H3>
642
<PRE>
643
public boolean <B>removeIndex</B>(int&nbsp;index)</PRE>
644
<DL>
645
<DD>Removes and returns the item at the specified index.
646
<P>
647
<DD><DL>
648
</DL>
649
</DD>
650
</DL>
651
<HR>
652
 
653
<A NAME="pop()"><!-- --></A><H3>
654
pop</H3>
655
<PRE>
656
public boolean <B>pop</B>()</PRE>
657
<DL>
658
<DD>Removes and returns the last item.
659
<P>
660
<DD><DL>
661
</DL>
662
</DD>
663
</DL>
664
<HR>
665
 
666
<A NAME="peek()"><!-- --></A><H3>
667
peek</H3>
668
<PRE>
669
public boolean <B>peek</B>()</PRE>
670
<DL>
671
<DD>Returns the last item.
672
<P>
673
<DD><DL>
674
</DL>
675
</DD>
676
</DL>
677
<HR>
678
 
679
<A NAME="clear()"><!-- --></A><H3>
680
clear</H3>
681
<PRE>
682
public void <B>clear</B>()</PRE>
683
<DL>
684
<DD><DL>
685
</DL>
686
</DD>
687
</DL>
688
<HR>
689
 
690
<A NAME="shrink()"><!-- --></A><H3>
691
shrink</H3>
692
<PRE>
693
public void <B>shrink</B>()</PRE>
694
<DL>
695
<DD>Reduces the size of the backing array to the size of the actual items. This is useful to release memory when many items have
696
 been removed, or if it is known that more items will not be added.
697
<P>
698
<DD><DL>
699
</DL>
700
</DD>
701
</DL>
702
<HR>
703
 
704
<A NAME="ensureCapacity(int)"><!-- --></A><H3>
705
ensureCapacity</H3>
706
<PRE>
707
public boolean[] <B>ensureCapacity</B>(int&nbsp;additionalCapacity)</PRE>
708
<DL>
709
<DD>Increases the size of the backing array to acommodate the specified number of additional items. Useful before adding many
710
 items to avoid multiple backing array resizes.
711
<P>
712
<DD><DL>
713
 
714
<DT><B>Returns:</B><DD><A HREF="../../../../com/badlogic/gdx/utils/BooleanArray.html#items"><CODE>items</CODE></A></DL>
715
</DD>
716
</DL>
717
<HR>
718
 
719
<A NAME="resize(int)"><!-- --></A><H3>
720
resize</H3>
721
<PRE>
722
protected boolean[] <B>resize</B>(int&nbsp;newSize)</PRE>
723
<DL>
724
<DD><DL>
725
</DL>
726
</DD>
727
</DL>
728
<HR>
729
 
730
<A NAME="reverse()"><!-- --></A><H3>
731
reverse</H3>
732
<PRE>
733
public void <B>reverse</B>()</PRE>
734
<DL>
735
<DD><DL>
736
</DL>
737
</DD>
738
</DL>
739
<HR>
740
 
741
<A NAME="shuffle()"><!-- --></A><H3>
742
shuffle</H3>
743
<PRE>
744
public void <B>shuffle</B>()</PRE>
745
<DL>
746
<DD><DL>
747
</DL>
748
</DD>
749
</DL>
750
<HR>
751
 
752
<A NAME="truncate(int)"><!-- --></A><H3>
753
truncate</H3>
754
<PRE>
755
public void <B>truncate</B>(int&nbsp;newSize)</PRE>
756
<DL>
757
<DD>Reduces the size of the array to the specified size. If the array is already smaller than the specified size, no action is
758
 taken.
759
<P>
760
<DD><DL>
761
</DL>
762
</DD>
763
</DL>
764
<HR>
765
 
766
<A NAME="random()"><!-- --></A><H3>
767
random</H3>
768
<PRE>
769
public boolean <B>random</B>()</PRE>
770
<DL>
771
<DD>Returns a random item from the array, or false if the array is empty.
772
<P>
773
<DD><DL>
774
</DL>
775
</DD>
776
</DL>
777
<HR>
778
 
779
<A NAME="toArray()"><!-- --></A><H3>
780
toArray</H3>
781
<PRE>
782
public boolean[] <B>toArray</B>()</PRE>
783
<DL>
784
<DD><DL>
785
</DL>
786
</DD>
787
</DL>
788
<HR>
789
 
790
<A NAME="toString()"><!-- --></A><H3>
791
toString</H3>
792
<PRE>
793
public java.lang.String <B>toString</B>()</PRE>
794
<DL>
795
<DD><DL>
796
<DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL>
797
</DD>
798
<DD><DL>
799
</DL>
800
</DD>
801
</DL>
802
<HR>
803
 
804
<A NAME="toString(java.lang.String)"><!-- --></A><H3>
805
toString</H3>
806
<PRE>
807
public java.lang.String <B>toString</B>(java.lang.String&nbsp;separator)</PRE>
808
<DL>
809
<DD><DL>
810
</DL>
811
</DD>
812
</DL>
813
<!-- ========= END OF CLASS DATA ========= -->
814
<HR>
815
 
816
 
817
<!-- ======= START OF BOTTOM NAVBAR ====== -->
818
<A NAME="navbar_bottom"><!-- --></A>
819
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
820
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
821
<TR>
822
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
823
<A NAME="navbar_bottom_firstrow"><!-- --></A>
824
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
825
  <TR ALIGN="center" VALIGN="top">
826
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
827
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
828
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
829
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/BooleanArray.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
830
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
831
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
832
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
833
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
834
  </TR>
835
</TABLE>
836
</TD>
837
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
838
libgdx API</EM>
839
</TD>
840
</TR>
841
 
842
<TR>
843
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
844
&nbsp;<A HREF="../../../../com/badlogic/gdx/utils/BinaryHeap.Node.html" title="class in com.badlogic.gdx.utils"><B>PREV CLASS</B></A>&nbsp;
845
&nbsp;<A HREF="../../../../com/badlogic/gdx/utils/BufferUtils.html" title="class in com.badlogic.gdx.utils"><B>NEXT CLASS</B></A></FONT></TD>
846
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
847
  <A HREF="../../../../index.html?com/badlogic/gdx/utils/BooleanArray.html" target="_top"><B>FRAMES</B></A>  &nbsp;
848
&nbsp;<A HREF="BooleanArray.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
849
&nbsp;<SCRIPT type="text/javascript">
850
  <!--
851
  if(window==top) {
852
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
853
  }
854
  //-->
855
</SCRIPT>
856
<NOSCRIPT>
857
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
858
</NOSCRIPT>
859
 
860
 
861
</FONT></TD>
862
</TR>
863
<TR>
864
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
865
  SUMMARY:&nbsp;NESTED&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>
866
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
867
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>
868
</TR>
869
</TABLE>
870
<A NAME="skip-navbar_bottom"></A>
871
<!-- ======== END OF BOTTOM NAVBAR ======= -->
872
 
873
<HR>
874
 
875
                                <div style="font-size:9pt"><i>
876
                                Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)
877
                                </i></div>
878
 
879
</BODY>
880
</HTML>