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
PooledLinkedList (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="PooledLinkedList (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/PooledLinkedList.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/Pool.Poolable.html" title="interface in com.badlogic.gdx.utils"><B>PREV CLASS</B></A>&nbsp;
74
&nbsp;<A HREF="../../../../com/badlogic/gdx/utils/Pools.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/PooledLinkedList.html" target="_top"><B>FRAMES</B></A>  &nbsp;
77
&nbsp;<A HREF="PooledLinkedList.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;FIELD&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;FIELD&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 PooledLinkedList&lt;T&gt;</H2>
109
<PRE>
110
java.lang.Object
111
  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.badlogic.gdx.utils.PooledLinkedList&lt;T&gt;</B>
112
</PRE>
113
<HR>
114
<DL>
115
<DT><PRE>public class <B>PooledLinkedList&lt;T&gt;</B><DT>extends java.lang.Object</DL>
116
</PRE>
117
 
118
<P>
119
A simple linked list that pools its nodes.
120
<P>
121
 
122
<P>
123
<DL>
124
<DT><B>Author:</B></DT>
125
  <DD>mzechner</DD>
126
</DL>
127
<HR>
128
 
129
<P>
130
 
131
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
132
 
133
<A NAME="constructor_summary"><!-- --></A>
134
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
135
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
136
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
137
<B>Constructor Summary</B></FONT></TH>
138
</TR>
139
<TR BGCOLOR="white" CLASS="TableRowColor">
140
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/PooledLinkedList.html#PooledLinkedList(int)">PooledLinkedList</A></B>(int&nbsp;maxPoolSize)</CODE>
141
 
142
<BR>
143
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
144
</TR>
145
</TABLE>
146
&nbsp;
147
<!-- ========== METHOD SUMMARY =========== -->
148
 
149
<A NAME="method_summary"><!-- --></A>
150
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
151
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
152
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
153
<B>Method Summary</B></FONT></TH>
154
</TR>
155
<TR BGCOLOR="white" CLASS="TableRowColor">
156
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
157
<CODE>&nbsp;void</CODE></FONT></TD>
158
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/PooledLinkedList.html#add(T)">add</A></B>(<A HREF="../../../../com/badlogic/gdx/utils/PooledLinkedList.html" title="type parameter in PooledLinkedList">T</A>&nbsp;object)</CODE>
159
 
160
<BR>
161
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
162
</TR>
163
<TR BGCOLOR="white" CLASS="TableRowColor">
164
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
165
<CODE>&nbsp;void</CODE></FONT></TD>
166
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/PooledLinkedList.html#clear()">clear</A></B>()</CODE>
167
 
168
<BR>
169
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
170
</TR>
171
<TR BGCOLOR="white" CLASS="TableRowColor">
172
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
173
<CODE>&nbsp;void</CODE></FONT></TD>
174
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/PooledLinkedList.html#iter()">iter</A></B>()</CODE>
175
 
176
<BR>
177
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Starts iterating over the lists items</TD>
178
</TR>
179
<TR BGCOLOR="white" CLASS="TableRowColor">
180
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
181
<CODE>&nbsp;<A HREF="../../../../com/badlogic/gdx/utils/PooledLinkedList.html" title="type parameter in PooledLinkedList">T</A></CODE></FONT></TD>
182
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/PooledLinkedList.html#next()">next</A></B>()</CODE>
183
 
184
<BR>
185
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the next item in the list</TD>
186
</TR>
187
<TR BGCOLOR="white" CLASS="TableRowColor">
188
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
189
<CODE>&nbsp;void</CODE></FONT></TD>
190
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/PooledLinkedList.html#remove()">remove</A></B>()</CODE>
191
 
192
<BR>
193
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removs the current list item based on the iterator position.</TD>
194
</TR>
195
</TABLE>
196
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
197
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
198
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
199
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
200
</TR>
201
<TR BGCOLOR="white" CLASS="TableRowColor">
202
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
203
</TR>
204
</TABLE>
205
&nbsp;
206
<P>
207
 
208
<!-- ========= CONSTRUCTOR DETAIL ======== -->
209
 
210
<A NAME="constructor_detail"><!-- --></A>
211
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
212
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
213
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
214
<B>Constructor Detail</B></FONT></TH>
215
</TR>
216
</TABLE>
217
 
218
<A NAME="PooledLinkedList(int)"><!-- --></A><H3>
219
PooledLinkedList</H3>
220
<PRE>
221
public <B>PooledLinkedList</B>(int&nbsp;maxPoolSize)</PRE>
222
<DL>
223
</DL>
224
 
225
<!-- ============ METHOD DETAIL ========== -->
226
 
227
<A NAME="method_detail"><!-- --></A>
228
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
229
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
230
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
231
<B>Method Detail</B></FONT></TH>
232
</TR>
233
</TABLE>
234
 
235
<A NAME="add(java.lang.Object)"><!-- --></A><A NAME="add(T)"><!-- --></A><H3>
236
add</H3>
237
<PRE>
238
public void <B>add</B>(<A HREF="../../../../com/badlogic/gdx/utils/PooledLinkedList.html" title="type parameter in PooledLinkedList">T</A>&nbsp;object)</PRE>
239
<DL>
240
<DD><DL>
241
</DL>
242
</DD>
243
</DL>
244
<HR>
245
 
246
<A NAME="iter()"><!-- --></A><H3>
247
iter</H3>
248
<PRE>
249
public void <B>iter</B>()</PRE>
250
<DL>
251
<DD>Starts iterating over the lists items
252
<P>
253
<DD><DL>
254
</DL>
255
</DD>
256
</DL>
257
<HR>
258
 
259
<A NAME="next()"><!-- --></A><H3>
260
next</H3>
261
<PRE>
262
public <A HREF="../../../../com/badlogic/gdx/utils/PooledLinkedList.html" title="type parameter in PooledLinkedList">T</A> <B>next</B>()</PRE>
263
<DL>
264
<DD>Gets the next item in the list
265
<P>
266
<DD><DL>
267
 
268
<DT><B>Returns:</B><DD>the next item in the list or null if there are no more items</DL>
269
</DD>
270
</DL>
271
<HR>
272
 
273
<A NAME="remove()"><!-- --></A><H3>
274
remove</H3>
275
<PRE>
276
public void <B>remove</B>()</PRE>
277
<DL>
278
<DD>Removs the current list item based on the iterator position.
279
<P>
280
<DD><DL>
281
</DL>
282
</DD>
283
</DL>
284
<HR>
285
 
286
<A NAME="clear()"><!-- --></A><H3>
287
clear</H3>
288
<PRE>
289
public void <B>clear</B>()</PRE>
290
<DL>
291
<DD><DL>
292
</DL>
293
</DD>
294
</DL>
295
<!-- ========= END OF CLASS DATA ========= -->
296
<HR>
297
 
298
 
299
<!-- ======= START OF BOTTOM NAVBAR ====== -->
300
<A NAME="navbar_bottom"><!-- --></A>
301
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
302
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
303
<TR>
304
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
305
<A NAME="navbar_bottom_firstrow"><!-- --></A>
306
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
307
  <TR ALIGN="center" VALIGN="top">
308
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
309
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
310
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
311
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/PooledLinkedList.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
312
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
313
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
314
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
315
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
316
  </TR>
317
</TABLE>
318
</TD>
319
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
320
libgdx API</EM>
321
</TD>
322
</TR>
323
 
324
<TR>
325
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
326
&nbsp;<A HREF="../../../../com/badlogic/gdx/utils/Pool.Poolable.html" title="interface in com.badlogic.gdx.utils"><B>PREV CLASS</B></A>&nbsp;
327
&nbsp;<A HREF="../../../../com/badlogic/gdx/utils/Pools.html" title="class in com.badlogic.gdx.utils"><B>NEXT CLASS</B></A></FONT></TD>
328
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
329
  <A HREF="../../../../index.html?com/badlogic/gdx/utils/PooledLinkedList.html" target="_top"><B>FRAMES</B></A>  &nbsp;
330
&nbsp;<A HREF="PooledLinkedList.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
331
&nbsp;<SCRIPT type="text/javascript">
332
  <!--
333
  if(window==top) {
334
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
335
  }
336
  //-->
337
</SCRIPT>
338
<NOSCRIPT>
339
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
340
</NOSCRIPT>
341
 
342
 
343
</FONT></TD>
344
</TR>
345
<TR>
346
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
347
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
348
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
349
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
350
</TR>
351
</TABLE>
352
<A NAME="skip-navbar_bottom"></A>
353
<!-- ======== END OF BOTTOM NAVBAR ======= -->
354
 
355
<HR>
356
 
357
                                <div style="font-size:9pt"><i>
358
                                Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)
359
                                </i></div>
360
 
361
</BODY>
362
</HTML>