1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
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">
8 SynchronizedList (Commons Collections
3.2.1 API)
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)";
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=
"">
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> </TD>
39 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-summary.html"><FONT CLASS=
"NavBarFont1"><B>Package
</B></FONT></A> </TD>
40 <TD BGCOLOR=
"#FFFFFF" CLASS=
"NavBarCell1Rev"> <FONT CLASS=
"NavBarFont1Rev"><B>Class
</B></FONT> </TD>
41 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"class-use/SynchronizedList.html"><FONT CLASS=
"NavBarFont1"><B>Use
</B></FONT></A> </TD>
42 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-tree.html"><FONT CLASS=
"NavBarFont1"><B>Tree
</B></FONT></A> </TD>
43 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../../deprecated-list.html"><FONT CLASS=
"NavBarFont1"><B>Deprecated
</B></FONT></A> </TD>
44 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../../index-all.html"><FONT CLASS=
"NavBarFont1"><B>Index
</B></FONT></A> </TD>
45 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../../help-doc.html"><FONT CLASS=
"NavBarFont1"><B>Help
</B></FONT></A> </TD>
49 <TD ALIGN=
"right" VALIGN=
"top" ROWSPAN=
3><EM>
55 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
56 <A HREF=
"../../../../../org/apache/commons/collections/list/SetUniqueList.html" title=
"class in org.apache.commons.collections.list"><B>PREV CLASS
</B></A>
57 <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>
60 <A HREF=
"SynchronizedList.html" target=
"_top"><B>NO FRAMES
</B></A>
61 <SCRIPT type=
"text/javascript">
64 document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
69 <A HREF=
"../../../../../allclasses-noframe.html"><B>All Classes
</B></A>
76 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
77 SUMMARY:
NESTED
|
<A HREF=
"#fields_inherited_from_class_org.apache.commons.collections.collection.SynchronizedCollection">FIELD
</A> |
<A HREF=
"#constructor_summary">CONSTR
</A> |
<A HREF=
"#method_summary">METHOD
</A></FONT></TD>
78 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
79 DETAIL:
FIELD
|
<A HREF=
"#constructor_detail">CONSTR
</A> |
<A HREF=
"#method_detail">METHOD
</A></FONT></TD>
82 <A NAME=
"skip-navbar_top"></A>
83 <!-- ========= END OF TOP NAVBAR ========= -->
86 <!-- ======== START OF CLASS DATA ======== -->
89 org.apache.commons.collections.list
</FONT>
91 Class SynchronizedList
</H2>
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>
98 <DT><B>All Implemented Interfaces:
</B> <DD>java.io.Serializable, java.lang.Iterable, java.util.Collection, java.util.List
</DD>
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>
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.
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>
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>
135 <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>
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>
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>
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
list)
</CODE>
159 Constructor that wraps (not copies).
</TD>
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
list,
165 java.lang.Object
lock)
</CODE>
168 Constructor that wraps (not copies).
</TD>
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>
180 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
181 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
182 <CODE> 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
index,
184 java.lang.Object
object)
</CODE>
187 </TD>
189 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
190 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
191 <CODE> 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
index,
193 java.util.Collection
coll)
</CODE>
196 </TD>
198 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
199 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
200 <CODE>static
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
list)
</CODE>
204 Factory method to create a synchronized list.
</TD>
206 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
207 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
208 <CODE> 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
index)
</CODE>
212 </TD>
214 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
215 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
216 <CODE>protected
java.util.List
</CODE></FONT></TD>
217 <TD><CODE><B><A HREF=
"../../../../../org/apache/commons/collections/list/SynchronizedList.html#getList()">getList
</A></B>()
</CODE>
220 Gets the decorated list.
</TD>
222 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
223 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
224 <CODE> 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
object)
</CODE>
228 </TD>
230 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
231 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
232 <CODE> 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
object)
</CODE>
236 </TD>
238 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
239 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
240 <CODE> java.util.ListIterator
</CODE></FONT></TD>
241 <TD><CODE><B><A HREF=
"../../../../../org/apache/commons/collections/list/SynchronizedList.html#listIterator()">listIterator
</A></B>()
</CODE>
244 Iterators must be manually synchronized.
</TD>
246 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
247 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
248 <CODE> 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
index)
</CODE>
252 Iterators must be manually synchronized.
</TD>
254 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
255 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
256 <CODE> 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
index)
</CODE>
260 </TD>
262 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
263 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
264 <CODE> 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
index,
266 java.lang.Object
object)
</CODE>
269 </TD>
271 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
272 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
273 <CODE> 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
fromIndex,
275 int
toIndex)
</CODE>
278 </TD>
281 <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>
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>
290 <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>
295 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
296 <TD><CODE>clone, finalize, getClass, notify, notifyAll, wait, wait, wait
</CODE></TD>
299 <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>
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>
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>
321 <A NAME=
"SynchronizedList(java.util.List)"><!-- --></A><H3>
322 SynchronizedList
</H3>
324 protected
<B>SynchronizedList
</B>(java.util.List
list)
</PRE>
326 <DD>Constructor that wraps (not copies).
329 <DT><B>Parameters:
</B><DD><CODE>list
</CODE> - the list to decorate, must not be null
331 <DD><CODE>java.lang.IllegalArgumentException
</CODE> - if list is null
</DL>
335 <A NAME=
"SynchronizedList(java.util.List, java.lang.Object)"><!-- --></A><H3>
336 SynchronizedList
</H3>
338 protected
<B>SynchronizedList
</B>(java.util.List
list,
339 java.lang.Object
lock)
</PRE>
341 <DD>Constructor that wraps (not copies).
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
346 <DD><CODE>java.lang.IllegalArgumentException
</CODE> - if list is null
</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>
359 <A NAME=
"decorate(java.util.List)"><!-- --></A><H3>
362 public static java.util.List
<B>decorate
</B>(java.util.List
list)
</PRE>
364 <DD>Factory method to create a synchronized list.
370 <DT><B>Parameters:
</B><DD><CODE>list
</CODE> - the list to decorate, must not be null
372 <DD><CODE>java.lang.IllegalArgumentException
</CODE> - if list is null
</DL>
377 <A NAME=
"getList()"><!-- --></A><H3>
380 protected java.util.List
<B>getList
</B>()
</PRE>
382 <DD>Gets the decorated list.
389 <DT><B>Returns:
</B><DD>the decorated list
</DL>
394 <A NAME=
"add(int, java.lang.Object)"><!-- --></A><H3>
397 public void
<B>add
</B>(int
index,
398 java.lang.Object
object)
</PRE>
401 <DT><B>Specified by:
</B><DD><CODE>add
</CODE> in interface
<CODE>java.util.List
</CODE></DL>
409 <A NAME=
"addAll(int, java.util.Collection)"><!-- --></A><H3>
412 public boolean
<B>addAll
</B>(int
index,
413 java.util.Collection
coll)
</PRE>
416 <DT><B>Specified by:
</B><DD><CODE>addAll
</CODE> in interface
<CODE>java.util.List
</CODE></DL>
424 <A NAME=
"get(int)"><!-- --></A><H3>
427 public java.lang.Object
<B>get
</B>(int
index)
</PRE>
430 <DT><B>Specified by:
</B><DD><CODE>get
</CODE> in interface
<CODE>java.util.List
</CODE></DL>
438 <A NAME=
"indexOf(java.lang.Object)"><!-- --></A><H3>
441 public int
<B>indexOf
</B>(java.lang.Object
object)
</PRE>
444 <DT><B>Specified by:
</B><DD><CODE>indexOf
</CODE> in interface
<CODE>java.util.List
</CODE></DL>
452 <A NAME=
"lastIndexOf(java.lang.Object)"><!-- --></A><H3>
455 public int
<B>lastIndexOf
</B>(java.lang.Object
object)
</PRE>
458 <DT><B>Specified by:
</B><DD><CODE>lastIndexOf
</CODE> in interface
<CODE>java.util.List
</CODE></DL>
466 <A NAME=
"listIterator()"><!-- --></A><H3>
469 public java.util.ListIterator
<B>listIterator
</B>()
</PRE>
471 <DD>Iterators must be manually synchronized.
473 synchronized (coll) {
474 ListIterator it = coll.listIterator();
475 // do stuff with iterator
479 <DT><B>Specified by:
</B><DD><CODE>listIterator
</CODE> in interface
<CODE>java.util.List
</CODE></DL>
483 <DT><B>Returns:
</B><DD>an iterator that must be manually synchronized on the collection
</DL>
488 <A NAME=
"listIterator(int)"><!-- --></A><H3>
491 public java.util.ListIterator
<B>listIterator
</B>(int
index)
</PRE>
493 <DD>Iterators must be manually synchronized.
495 synchronized (coll) {
496 ListIterator it = coll.listIterator(
3);
497 // do stuff with iterator
501 <DT><B>Specified by:
</B><DD><CODE>listIterator
</CODE> in interface
<CODE>java.util.List
</CODE></DL>
505 <DT><B>Returns:
</B><DD>an iterator that must be manually synchronized on the collection
</DL>
510 <A NAME=
"remove(int)"><!-- --></A><H3>
513 public java.lang.Object
<B>remove
</B>(int
index)
</PRE>
516 <DT><B>Specified by:
</B><DD><CODE>remove
</CODE> in interface
<CODE>java.util.List
</CODE></DL>
524 <A NAME=
"set(int, java.lang.Object)"><!-- --></A><H3>
527 public java.lang.Object
<B>set
</B>(int
index,
528 java.lang.Object
object)
</PRE>
531 <DT><B>Specified by:
</B><DD><CODE>set
</CODE> in interface
<CODE>java.util.List
</CODE></DL>
539 <A NAME=
"subList(int, int)"><!-- --></A><H3>
542 public java.util.List
<B>subList
</B>(int
fromIndex,
543 int
toIndex)
</PRE>
546 <DT><B>Specified by:
</B><DD><CODE>subList
</CODE> in interface
<CODE>java.util.List
</CODE></DL>
552 <!-- ========= END OF CLASS DATA ========= -->
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=
"">
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> </TD>
566 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-summary.html"><FONT CLASS=
"NavBarFont1"><B>Package
</B></FONT></A> </TD>
567 <TD BGCOLOR=
"#FFFFFF" CLASS=
"NavBarCell1Rev"> <FONT CLASS=
"NavBarFont1Rev"><B>Class
</B></FONT> </TD>
568 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"class-use/SynchronizedList.html"><FONT CLASS=
"NavBarFont1"><B>Use
</B></FONT></A> </TD>
569 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-tree.html"><FONT CLASS=
"NavBarFont1"><B>Tree
</B></FONT></A> </TD>
570 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../../deprecated-list.html"><FONT CLASS=
"NavBarFont1"><B>Deprecated
</B></FONT></A> </TD>
571 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../../index-all.html"><FONT CLASS=
"NavBarFont1"><B>Index
</B></FONT></A> </TD>
572 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../../help-doc.html"><FONT CLASS=
"NavBarFont1"><B>Help
</B></FONT></A> </TD>
576 <TD ALIGN=
"right" VALIGN=
"top" ROWSPAN=
3><EM>
582 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
583 <A HREF=
"../../../../../org/apache/commons/collections/list/SetUniqueList.html" title=
"class in org.apache.commons.collections.list"><B>PREV CLASS
</B></A>
584 <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>
587 <A HREF=
"SynchronizedList.html" target=
"_top"><B>NO FRAMES
</B></A>
588 <SCRIPT type=
"text/javascript">
591 document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
596 <A HREF=
"../../../../../allclasses-noframe.html"><B>All Classes
</B></A>
603 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
604 SUMMARY:
NESTED
|
<A HREF=
"#fields_inherited_from_class_org.apache.commons.collections.collection.SynchronizedCollection">FIELD
</A> |
<A HREF=
"#constructor_summary">CONSTR
</A> |
<A HREF=
"#method_summary">METHOD
</A></FONT></TD>
605 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
606 DETAIL:
FIELD
|
<A HREF=
"#constructor_detail">CONSTR
</A> |
<A HREF=
"#method_detail">METHOD
</A></FONT></TD>
609 <A NAME=
"skip-navbar_bottom"></A>
610 <!-- ======== END OF BOTTOM NAVBAR ======= -->
613 Copyright ©
2001-
2008 <a href=
"http://www.apache.org/">The Apache Software Foundation
</a>. All Rights Reserved.