a whole bunch of stuff
[ephemerata.git] / KezvhLib / lib / org.apache.commons.collections / apidocs / org / apache / commons / collections / list / SynchronizedList.html
blobc50bb3afa52c470e8b0c1182864a08d6e6d267dd
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.5.0_07) on Fri Apr 11 15:39:20 BST 2008 -->
6 <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
7 <TITLE>
8 SynchronizedList (Commons Collections 3.2.1 API)
9 </TITLE>
11 <META NAME="keywords" CONTENT="org.apache.commons.collections.list.SynchronizedList class">
13 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
15 <SCRIPT type="text/javascript">
16 function windowTitle()
18 parent.document.title="SynchronizedList (Commons Collections 3.2.1 API)";
20 </SCRIPT>
21 <NOSCRIPT>
22 </NOSCRIPT>
24 </HEAD>
26 <BODY BGCOLOR="white" onload="windowTitle();">
29 <!-- ========= START OF TOP NAVBAR ======= -->
30 <A NAME="navbar_top"><!-- --></A>
31 <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
32 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
33 <TR>
34 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
35 <A NAME="navbar_top_firstrow"><!-- --></A>
36 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
37 <TR ALIGN="center" VALIGN="top">
38 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
39 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
40 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/SynchronizedList.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
43 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
45 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
46 </TR>
47 </TABLE>
48 </TD>
49 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
50 </EM>
51 </TD>
52 </TR>
54 <TR>
55 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
56 &nbsp;<A HREF="../../../../../org/apache/commons/collections/list/SetUniqueList.html" title="class in org.apache.commons.collections.list"><B>PREV CLASS</B></A>&nbsp;
57 &nbsp;<A HREF="../../../../../org/apache/commons/collections/list/TransformedList.html" title="class in org.apache.commons.collections.list"><B>NEXT CLASS</B></A></FONT></TD>
58 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
59 <A HREF="../../../../../index.html?org/apache/commons/collections/list/SynchronizedList.html" target="_top"><B>FRAMES</B></A> &nbsp;
60 &nbsp;<A HREF="SynchronizedList.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
61 &nbsp;<SCRIPT type="text/javascript">
62 <!--
63 if(window==top) {
64 document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
66 //-->
67 </SCRIPT>
68 <NOSCRIPT>
69 <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
70 </NOSCRIPT>
73 </FONT></TD>
74 </TR>
75 <TR>
76 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
77 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_org.apache.commons.collections.collection.SynchronizedCollection">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
78 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
79 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
80 </TR>
81 </TABLE>
82 <A NAME="skip-navbar_top"></A>
83 <!-- ========= END OF TOP NAVBAR ========= -->
85 <HR>
86 <!-- ======== START OF CLASS DATA ======== -->
87 <H2>
88 <FONT SIZE="-1">
89 org.apache.commons.collections.list</FONT>
90 <BR>
91 Class SynchronizedList</H2>
92 <PRE>
93 java.lang.Object
94 <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../../org/apache/commons/collections/collection/SynchronizedCollection.html" title="class in org.apache.commons.collections.collection">org.apache.commons.collections.collection.SynchronizedCollection</A>
95 <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.commons.collections.list.SynchronizedList</B>
96 </PRE>
97 <DL>
98 <DT><B>All Implemented Interfaces:</B> <DD>java.io.Serializable, java.lang.Iterable, java.util.Collection, java.util.List</DD>
99 </DL>
100 <HR>
101 <DL>
102 <DT><PRE>public class <B>SynchronizedList</B><DT>extends <A HREF="../../../../../org/apache/commons/collections/collection/SynchronizedCollection.html" title="class in org.apache.commons.collections.collection">SynchronizedCollection</A><DT>implements java.util.List</DL>
103 </PRE>
106 Decorates another <code>List</code> to synchronize its behaviour
107 for a multi-threaded environment.
109 Methods are synchronized, then forwarded to the decorated list.
111 This class is Serializable from Commons Collections 3.1.
115 <DL>
116 <DT><B>Since:</B></DT>
117 <DD>Commons Collections 3.0</DD>
118 <DT><B>Version:</B></DT>
119 <DD>$Revision: 646777 $ $Date: 2008-04-10 13:33:15 +0100 (Thu, 10 Apr 2008) $</DD>
120 <DT><B>Author:</B></DT>
121 <DD>Stephen Colebourne</DD>
122 <DT><B>See Also:</B><DD><A HREF="../../../../../serialized-form.html#org.apache.commons.collections.list.SynchronizedList">Serialized Form</A></DL>
123 <HR>
126 <!-- =========== FIELD SUMMARY =========== -->
128 <A NAME="field_summary"><!-- --></A>
129 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
130 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
131 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
132 <B>Field Summary</B></FONT></TH>
133 </TR>
134 </TABLE>
135 &nbsp;<A NAME="fields_inherited_from_class_org.apache.commons.collections.collection.SynchronizedCollection"><!-- --></A>
136 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
137 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
138 <TH ALIGN="left"><B>Fields inherited from class org.apache.commons.collections.collection.<A HREF="../../../../../org/apache/commons/collections/collection/SynchronizedCollection.html" title="class in org.apache.commons.collections.collection">SynchronizedCollection</A></B></TH>
139 </TR>
140 <TR BGCOLOR="white" CLASS="TableRowColor">
141 <TD><CODE><A HREF="../../../../../org/apache/commons/collections/collection/SynchronizedCollection.html#collection">collection</A>, <A HREF="../../../../../org/apache/commons/collections/collection/SynchronizedCollection.html#lock">lock</A></CODE></TD>
142 </TR>
143 </TABLE>
144 &nbsp;
145 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
147 <A NAME="constructor_summary"><!-- --></A>
148 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
149 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
150 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
151 <B>Constructor Summary</B></FONT></TH>
152 </TR>
153 <TR BGCOLOR="white" CLASS="TableRowColor">
154 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
155 <CODE>protected </CODE></FONT></TD>
156 <TD><CODE><B><A HREF="../../../../../org/apache/commons/collections/list/SynchronizedList.html#SynchronizedList(java.util.List)">SynchronizedList</A></B>(java.util.List&nbsp;list)</CODE>
158 <BR>
159 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructor that wraps (not copies).</TD>
160 </TR>
161 <TR BGCOLOR="white" CLASS="TableRowColor">
162 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
163 <CODE>protected </CODE></FONT></TD>
164 <TD><CODE><B><A HREF="../../../../../org/apache/commons/collections/list/SynchronizedList.html#SynchronizedList(java.util.List, java.lang.Object)">SynchronizedList</A></B>(java.util.List&nbsp;list,
165 java.lang.Object&nbsp;lock)</CODE>
167 <BR>
168 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructor that wraps (not copies).</TD>
169 </TR>
170 </TABLE>
171 &nbsp;
172 <!-- ========== METHOD SUMMARY =========== -->
174 <A NAME="method_summary"><!-- --></A>
175 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
176 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
177 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
178 <B>Method Summary</B></FONT></TH>
179 </TR>
180 <TR BGCOLOR="white" CLASS="TableRowColor">
181 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
182 <CODE>&nbsp;void</CODE></FONT></TD>
183 <TD><CODE><B><A HREF="../../../../../org/apache/commons/collections/list/SynchronizedList.html#add(int, java.lang.Object)">add</A></B>(int&nbsp;index,
184 java.lang.Object&nbsp;object)</CODE>
186 <BR>
187 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
188 </TR>
189 <TR BGCOLOR="white" CLASS="TableRowColor">
190 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
191 <CODE>&nbsp;boolean</CODE></FONT></TD>
192 <TD><CODE><B><A HREF="../../../../../org/apache/commons/collections/list/SynchronizedList.html#addAll(int, java.util.Collection)">addAll</A></B>(int&nbsp;index,
193 java.util.Collection&nbsp;coll)</CODE>
195 <BR>
196 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
197 </TR>
198 <TR BGCOLOR="white" CLASS="TableRowColor">
199 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
200 <CODE>static&nbsp;java.util.List</CODE></FONT></TD>
201 <TD><CODE><B><A HREF="../../../../../org/apache/commons/collections/list/SynchronizedList.html#decorate(java.util.List)">decorate</A></B>(java.util.List&nbsp;list)</CODE>
203 <BR>
204 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Factory method to create a synchronized list.</TD>
205 </TR>
206 <TR BGCOLOR="white" CLASS="TableRowColor">
207 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
208 <CODE>&nbsp;java.lang.Object</CODE></FONT></TD>
209 <TD><CODE><B><A HREF="../../../../../org/apache/commons/collections/list/SynchronizedList.html#get(int)">get</A></B>(int&nbsp;index)</CODE>
211 <BR>
212 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
213 </TR>
214 <TR BGCOLOR="white" CLASS="TableRowColor">
215 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
216 <CODE>protected &nbsp;java.util.List</CODE></FONT></TD>
217 <TD><CODE><B><A HREF="../../../../../org/apache/commons/collections/list/SynchronizedList.html#getList()">getList</A></B>()</CODE>
219 <BR>
220 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the decorated list.</TD>
221 </TR>
222 <TR BGCOLOR="white" CLASS="TableRowColor">
223 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
224 <CODE>&nbsp;int</CODE></FONT></TD>
225 <TD><CODE><B><A HREF="../../../../../org/apache/commons/collections/list/SynchronizedList.html#indexOf(java.lang.Object)">indexOf</A></B>(java.lang.Object&nbsp;object)</CODE>
227 <BR>
228 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
229 </TR>
230 <TR BGCOLOR="white" CLASS="TableRowColor">
231 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
232 <CODE>&nbsp;int</CODE></FONT></TD>
233 <TD><CODE><B><A HREF="../../../../../org/apache/commons/collections/list/SynchronizedList.html#lastIndexOf(java.lang.Object)">lastIndexOf</A></B>(java.lang.Object&nbsp;object)</CODE>
235 <BR>
236 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
237 </TR>
238 <TR BGCOLOR="white" CLASS="TableRowColor">
239 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
240 <CODE>&nbsp;java.util.ListIterator</CODE></FONT></TD>
241 <TD><CODE><B><A HREF="../../../../../org/apache/commons/collections/list/SynchronizedList.html#listIterator()">listIterator</A></B>()</CODE>
243 <BR>
244 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Iterators must be manually synchronized.</TD>
245 </TR>
246 <TR BGCOLOR="white" CLASS="TableRowColor">
247 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
248 <CODE>&nbsp;java.util.ListIterator</CODE></FONT></TD>
249 <TD><CODE><B><A HREF="../../../../../org/apache/commons/collections/list/SynchronizedList.html#listIterator(int)">listIterator</A></B>(int&nbsp;index)</CODE>
251 <BR>
252 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Iterators must be manually synchronized.</TD>
253 </TR>
254 <TR BGCOLOR="white" CLASS="TableRowColor">
255 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
256 <CODE>&nbsp;java.lang.Object</CODE></FONT></TD>
257 <TD><CODE><B><A HREF="../../../../../org/apache/commons/collections/list/SynchronizedList.html#remove(int)">remove</A></B>(int&nbsp;index)</CODE>
259 <BR>
260 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
261 </TR>
262 <TR BGCOLOR="white" CLASS="TableRowColor">
263 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
264 <CODE>&nbsp;java.lang.Object</CODE></FONT></TD>
265 <TD><CODE><B><A HREF="../../../../../org/apache/commons/collections/list/SynchronizedList.html#set(int, java.lang.Object)">set</A></B>(int&nbsp;index,
266 java.lang.Object&nbsp;object)</CODE>
268 <BR>
269 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
270 </TR>
271 <TR BGCOLOR="white" CLASS="TableRowColor">
272 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
273 <CODE>&nbsp;java.util.List</CODE></FONT></TD>
274 <TD><CODE><B><A HREF="../../../../../org/apache/commons/collections/list/SynchronizedList.html#subList(int, int)">subList</A></B>(int&nbsp;fromIndex,
275 int&nbsp;toIndex)</CODE>
277 <BR>
278 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
279 </TR>
280 </TABLE>
281 &nbsp;<A NAME="methods_inherited_from_class_org.apache.commons.collections.collection.SynchronizedCollection"><!-- --></A>
282 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
283 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
284 <TH ALIGN="left"><B>Methods inherited from class org.apache.commons.collections.collection.<A HREF="../../../../../org/apache/commons/collections/collection/SynchronizedCollection.html" title="class in org.apache.commons.collections.collection">SynchronizedCollection</A></B></TH>
285 </TR>
286 <TR BGCOLOR="white" CLASS="TableRowColor">
287 <TD><CODE><A HREF="../../../../../org/apache/commons/collections/collection/SynchronizedCollection.html#add(java.lang.Object)">add</A>, <A HREF="../../../../../org/apache/commons/collections/collection/SynchronizedCollection.html#addAll(java.util.Collection)">addAll</A>, <A HREF="../../../../../org/apache/commons/collections/collection/SynchronizedCollection.html#clear()">clear</A>, <A HREF="../../../../../org/apache/commons/collections/collection/SynchronizedCollection.html#contains(java.lang.Object)">contains</A>, <A HREF="../../../../../org/apache/commons/collections/collection/SynchronizedCollection.html#containsAll(java.util.Collection)">containsAll</A>, <A HREF="../../../../../org/apache/commons/collections/collection/SynchronizedCollection.html#decorate(java.util.Collection)">decorate</A>, <A HREF="../../../../../org/apache/commons/collections/collection/SynchronizedCollection.html#equals(java.lang.Object)">equals</A>, <A HREF="../../../../../org/apache/commons/collections/collection/SynchronizedCollection.html#hashCode()">hashCode</A>, <A HREF="../../../../../org/apache/commons/collections/collection/SynchronizedCollection.html#isEmpty()">isEmpty</A>, <A HREF="../../../../../org/apache/commons/collections/collection/SynchronizedCollection.html#iterator()">iterator</A>, <A HREF="../../../../../org/apache/commons/collections/collection/SynchronizedCollection.html#remove(java.lang.Object)">remove</A>, <A HREF="../../../../../org/apache/commons/collections/collection/SynchronizedCollection.html#removeAll(java.util.Collection)">removeAll</A>, <A HREF="../../../../../org/apache/commons/collections/collection/SynchronizedCollection.html#retainAll(java.util.Collection)">retainAll</A>, <A HREF="../../../../../org/apache/commons/collections/collection/SynchronizedCollection.html#size()">size</A>, <A HREF="../../../../../org/apache/commons/collections/collection/SynchronizedCollection.html#toArray()">toArray</A>, <A HREF="../../../../../org/apache/commons/collections/collection/SynchronizedCollection.html#toArray(java.lang.Object[])">toArray</A>, <A HREF="../../../../../org/apache/commons/collections/collection/SynchronizedCollection.html#toString()">toString</A></CODE></TD>
288 </TR>
289 </TABLE>
290 &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
291 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
292 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
293 <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
294 </TR>
295 <TR BGCOLOR="white" CLASS="TableRowColor">
296 <TD><CODE>clone, finalize, getClass, notify, notifyAll, wait, wait, wait</CODE></TD>
297 </TR>
298 </TABLE>
299 &nbsp;<A NAME="methods_inherited_from_class_java.util.List"><!-- --></A>
300 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
301 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
302 <TH ALIGN="left"><B>Methods inherited from interface java.util.List</B></TH>
303 </TR>
304 <TR BGCOLOR="white" CLASS="TableRowColor">
305 <TD><CODE>add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray</CODE></TD>
306 </TR>
307 </TABLE>
308 &nbsp;
311 <!-- ========= CONSTRUCTOR DETAIL ======== -->
313 <A NAME="constructor_detail"><!-- --></A>
314 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
315 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
316 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
317 <B>Constructor Detail</B></FONT></TH>
318 </TR>
319 </TABLE>
321 <A NAME="SynchronizedList(java.util.List)"><!-- --></A><H3>
322 SynchronizedList</H3>
323 <PRE>
324 protected <B>SynchronizedList</B>(java.util.List&nbsp;list)</PRE>
325 <DL>
326 <DD>Constructor that wraps (not copies).
328 <DL>
329 <DT><B>Parameters:</B><DD><CODE>list</CODE> - the list to decorate, must not be null
330 <DT><B>Throws:</B>
331 <DD><CODE>java.lang.IllegalArgumentException</CODE> - if list is null</DL>
332 </DL>
333 <HR>
335 <A NAME="SynchronizedList(java.util.List, java.lang.Object)"><!-- --></A><H3>
336 SynchronizedList</H3>
337 <PRE>
338 protected <B>SynchronizedList</B>(java.util.List&nbsp;list,
339 java.lang.Object&nbsp;lock)</PRE>
340 <DL>
341 <DD>Constructor that wraps (not copies).
343 <DL>
344 <DT><B>Parameters:</B><DD><CODE>list</CODE> - the list to decorate, must not be null<DD><CODE>lock</CODE> - the lock to use, must not be null
345 <DT><B>Throws:</B>
346 <DD><CODE>java.lang.IllegalArgumentException</CODE> - if list is null</DL>
347 </DL>
349 <!-- ============ METHOD DETAIL ========== -->
351 <A NAME="method_detail"><!-- --></A>
352 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
353 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
354 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
355 <B>Method Detail</B></FONT></TH>
356 </TR>
357 </TABLE>
359 <A NAME="decorate(java.util.List)"><!-- --></A><H3>
360 decorate</H3>
361 <PRE>
362 public static java.util.List <B>decorate</B>(java.util.List&nbsp;list)</PRE>
363 <DL>
364 <DD>Factory method to create a synchronized list.
366 <DD><DL>
367 </DL>
368 </DD>
369 <DD><DL>
370 <DT><B>Parameters:</B><DD><CODE>list</CODE> - the list to decorate, must not be null
371 <DT><B>Throws:</B>
372 <DD><CODE>java.lang.IllegalArgumentException</CODE> - if list is null</DL>
373 </DD>
374 </DL>
375 <HR>
377 <A NAME="getList()"><!-- --></A><H3>
378 getList</H3>
379 <PRE>
380 protected java.util.List <B>getList</B>()</PRE>
381 <DL>
382 <DD>Gets the decorated list.
384 <DD><DL>
385 </DL>
386 </DD>
387 <DD><DL>
389 <DT><B>Returns:</B><DD>the decorated list</DL>
390 </DD>
391 </DL>
392 <HR>
394 <A NAME="add(int, java.lang.Object)"><!-- --></A><H3>
395 add</H3>
396 <PRE>
397 public void <B>add</B>(int&nbsp;index,
398 java.lang.Object&nbsp;object)</PRE>
399 <DL>
400 <DD><DL>
401 <DT><B>Specified by:</B><DD><CODE>add</CODE> in interface <CODE>java.util.List</CODE></DL>
402 </DD>
403 <DD><DL>
404 </DL>
405 </DD>
406 </DL>
407 <HR>
409 <A NAME="addAll(int, java.util.Collection)"><!-- --></A><H3>
410 addAll</H3>
411 <PRE>
412 public boolean <B>addAll</B>(int&nbsp;index,
413 java.util.Collection&nbsp;coll)</PRE>
414 <DL>
415 <DD><DL>
416 <DT><B>Specified by:</B><DD><CODE>addAll</CODE> in interface <CODE>java.util.List</CODE></DL>
417 </DD>
418 <DD><DL>
419 </DL>
420 </DD>
421 </DL>
422 <HR>
424 <A NAME="get(int)"><!-- --></A><H3>
425 get</H3>
426 <PRE>
427 public java.lang.Object <B>get</B>(int&nbsp;index)</PRE>
428 <DL>
429 <DD><DL>
430 <DT><B>Specified by:</B><DD><CODE>get</CODE> in interface <CODE>java.util.List</CODE></DL>
431 </DD>
432 <DD><DL>
433 </DL>
434 </DD>
435 </DL>
436 <HR>
438 <A NAME="indexOf(java.lang.Object)"><!-- --></A><H3>
439 indexOf</H3>
440 <PRE>
441 public int <B>indexOf</B>(java.lang.Object&nbsp;object)</PRE>
442 <DL>
443 <DD><DL>
444 <DT><B>Specified by:</B><DD><CODE>indexOf</CODE> in interface <CODE>java.util.List</CODE></DL>
445 </DD>
446 <DD><DL>
447 </DL>
448 </DD>
449 </DL>
450 <HR>
452 <A NAME="lastIndexOf(java.lang.Object)"><!-- --></A><H3>
453 lastIndexOf</H3>
454 <PRE>
455 public int <B>lastIndexOf</B>(java.lang.Object&nbsp;object)</PRE>
456 <DL>
457 <DD><DL>
458 <DT><B>Specified by:</B><DD><CODE>lastIndexOf</CODE> in interface <CODE>java.util.List</CODE></DL>
459 </DD>
460 <DD><DL>
461 </DL>
462 </DD>
463 </DL>
464 <HR>
466 <A NAME="listIterator()"><!-- --></A><H3>
467 listIterator</H3>
468 <PRE>
469 public java.util.ListIterator <B>listIterator</B>()</PRE>
470 <DL>
471 <DD>Iterators must be manually synchronized.
472 <pre>
473 synchronized (coll) {
474 ListIterator it = coll.listIterator();
475 // do stuff with iterator
478 <DD><DL>
479 <DT><B>Specified by:</B><DD><CODE>listIterator</CODE> in interface <CODE>java.util.List</CODE></DL>
480 </DD>
481 <DD><DL>
483 <DT><B>Returns:</B><DD>an iterator that must be manually synchronized on the collection</DL>
484 </DD>
485 </DL>
486 <HR>
488 <A NAME="listIterator(int)"><!-- --></A><H3>
489 listIterator</H3>
490 <PRE>
491 public java.util.ListIterator <B>listIterator</B>(int&nbsp;index)</PRE>
492 <DL>
493 <DD>Iterators must be manually synchronized.
494 <pre>
495 synchronized (coll) {
496 ListIterator it = coll.listIterator(3);
497 // do stuff with iterator
500 <DD><DL>
501 <DT><B>Specified by:</B><DD><CODE>listIterator</CODE> in interface <CODE>java.util.List</CODE></DL>
502 </DD>
503 <DD><DL>
505 <DT><B>Returns:</B><DD>an iterator that must be manually synchronized on the collection</DL>
506 </DD>
507 </DL>
508 <HR>
510 <A NAME="remove(int)"><!-- --></A><H3>
511 remove</H3>
512 <PRE>
513 public java.lang.Object <B>remove</B>(int&nbsp;index)</PRE>
514 <DL>
515 <DD><DL>
516 <DT><B>Specified by:</B><DD><CODE>remove</CODE> in interface <CODE>java.util.List</CODE></DL>
517 </DD>
518 <DD><DL>
519 </DL>
520 </DD>
521 </DL>
522 <HR>
524 <A NAME="set(int, java.lang.Object)"><!-- --></A><H3>
525 set</H3>
526 <PRE>
527 public java.lang.Object <B>set</B>(int&nbsp;index,
528 java.lang.Object&nbsp;object)</PRE>
529 <DL>
530 <DD><DL>
531 <DT><B>Specified by:</B><DD><CODE>set</CODE> in interface <CODE>java.util.List</CODE></DL>
532 </DD>
533 <DD><DL>
534 </DL>
535 </DD>
536 </DL>
537 <HR>
539 <A NAME="subList(int, int)"><!-- --></A><H3>
540 subList</H3>
541 <PRE>
542 public java.util.List <B>subList</B>(int&nbsp;fromIndex,
543 int&nbsp;toIndex)</PRE>
544 <DL>
545 <DD><DL>
546 <DT><B>Specified by:</B><DD><CODE>subList</CODE> in interface <CODE>java.util.List</CODE></DL>
547 </DD>
548 <DD><DL>
549 </DL>
550 </DD>
551 </DL>
552 <!-- ========= END OF CLASS DATA ========= -->
553 <HR>
556 <!-- ======= START OF BOTTOM NAVBAR ====== -->
557 <A NAME="navbar_bottom"><!-- --></A>
558 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
559 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
560 <TR>
561 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
562 <A NAME="navbar_bottom_firstrow"><!-- --></A>
563 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
564 <TR ALIGN="center" VALIGN="top">
565 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
566 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
567 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
568 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/SynchronizedList.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
569 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
570 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
571 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
572 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
573 </TR>
574 </TABLE>
575 </TD>
576 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
577 </EM>
578 </TD>
579 </TR>
581 <TR>
582 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
583 &nbsp;<A HREF="../../../../../org/apache/commons/collections/list/SetUniqueList.html" title="class in org.apache.commons.collections.list"><B>PREV CLASS</B></A>&nbsp;
584 &nbsp;<A HREF="../../../../../org/apache/commons/collections/list/TransformedList.html" title="class in org.apache.commons.collections.list"><B>NEXT CLASS</B></A></FONT></TD>
585 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
586 <A HREF="../../../../../index.html?org/apache/commons/collections/list/SynchronizedList.html" target="_top"><B>FRAMES</B></A> &nbsp;
587 &nbsp;<A HREF="SynchronizedList.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
588 &nbsp;<SCRIPT type="text/javascript">
589 <!--
590 if(window==top) {
591 document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
593 //-->
594 </SCRIPT>
595 <NOSCRIPT>
596 <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
597 </NOSCRIPT>
600 </FONT></TD>
601 </TR>
602 <TR>
603 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
604 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_org.apache.commons.collections.collection.SynchronizedCollection">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
605 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
606 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
607 </TR>
608 </TABLE>
609 <A NAME="skip-navbar_bottom"></A>
610 <!-- ======== END OF BOTTOM NAVBAR ======= -->
612 <HR>
613 Copyright © 2001-2008 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All Rights Reserved.
614 </BODY>
615 </HTML>