<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc (build 1.4.2) on Sun Oct 19 20:56:54 NOVST 2003 --> <TITLE> DbArrayList </TITLE> <META NAME="keywords" CONTENT="net.sourceforge.pain.db.DbArrayList class"> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> <SCRIPT type="text/javascript"> function windowTitle() { parent.document.title="DbArrayList"; } </SCRIPT> </HEAD> <BODY BGCOLOR="white" onload="windowTitle();"> <!-- ========= START OF TOP NAVBAR ======= --> <A NAME="navbar_top"><!-- --></A> <A HREF="#skip-navbar_top" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_top_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV CLASS <A HREF="../../../../net/sourceforge/pain/db/DbClassSchema.html" title="class in net.sourceforge.pain.db"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A> <A HREF="DbArrayList.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_top"></A> <!-- ========= END OF TOP NAVBAR ========= --> <HR> <!-- ======== START OF CLASS DATA ======== --> <H2> <FONT SIZE="-1"> net.sourceforge.pain.db</FONT> <BR> Class DbArrayList</H2> <PRE> java.lang.Object <IMG SRC="../../../../resources/inherit.gif" ALT="extended by">net.sourceforge.pain.db.DbCollection <IMG SRC="../../../../resources/inherit.gif" ALT="extended by"><B>net.sourceforge.pain.db.DbArrayList</B> </PRE> <DL> <DT><B>All Implemented Interfaces:</B> <DD>java.util.Collection, java.util.List, java.util.RandomAccess</DD> </DL> <HR> <DL> <DT>public final class <B>DbArrayList</B><DT>extends net.sourceforge.pain.db.DbCollection<DT>implements java.util.List, java.util.RandomAccess</DL> <P> Persistent, resizable-array implementation of the <tt>List</tt> interface <P> <P> <HR> <P> <!-- ======== NESTED CLASS SUMMARY ======== --> <!-- =========== FIELD SUMMARY =========== --> <!-- ======== CONSTRUCTOR SUMMARY ======== --> <!-- ========== METHOD SUMMARY =========== --> <A NAME="method_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=2><FONT SIZE="+2"> <B>Method Summary</B></FONT></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sourceforge/pain/db/DbArrayList.html#add(int, java.lang.Object)">add</A></B>(int index, java.lang.Object o)</CODE> <BR> Inserts the specified element at the specified position in this list (optional operation).</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sourceforge/pain/db/DbArrayList.html#add(java.lang.Object)">add</A></B>(java.lang.Object o)</CODE> <BR> Appends the specified element to the end of this list (optional operation).</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sourceforge/pain/db/DbArrayList.html#addAll(java.util.Collection)">addAll</A></B>(java.util.Collection c)</CODE> <BR> Appends all of the elements in the specified collection to the end of this list, in the order that they are returned by the specified collection's iterator (optional operation).</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sourceforge/pain/db/DbArrayList.html#addAll(int, java.util.Collection)">addAll</A></B>(int index, java.util.Collection c)</CODE> <BR> Inserts all of the elements in the specified collection into this list at the specified position (optional operation).</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sourceforge/pain/db/DbArrayList.html#clear()">clear</A></B>()</CODE> <BR> Removes all of the elements from this list (optional operation).</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sourceforge/pain/db/DbArrayList.html#contains(java.lang.Object)">contains</A></B>(java.lang.Object o)</CODE> <BR> Returns <tt>true</tt> if this list contains the specified element.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sourceforge/pain/db/DbArrayList.html#containsAll(java.util.Collection)">containsAll</A></B>(java.util.Collection c)</CODE> <BR> Returns <tt>true</tt> if this list contains all of the elements of the specified collection.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.lang.Object</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sourceforge/pain/db/DbArrayList.html#get(int)">get</A></B>(int index)</CODE> <BR> Returns the element at the specified position in this list.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sourceforge/pain/db/DbArrayList.html#indexOf(java.lang.Object)">indexOf</A></B>(java.lang.Object obj)</CODE> <BR> Returns the index in this list of the first occurrence of the specified element, or -1 if this list does not contain this element.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sourceforge/pain/db/DbArrayList.html#isEmpty()">isEmpty</A></B>()</CODE> <BR> Returns <tt>true</tt> if this list contains no elements.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.util.Iterator</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sourceforge/pain/db/DbArrayList.html#iterator()">iterator</A></B>()</CODE> <BR> Returns an iterator over the elements in this list in proper sequence.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sourceforge/pain/db/DbArrayList.html#lastIndexOf(java.lang.Object)">lastIndexOf</A></B>(java.lang.Object o)</CODE> <BR> Returns the index in this list of the last occurrence of the specified element, or -1 if this list does not contain this element.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.util.ListIterator</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sourceforge/pain/db/DbArrayList.html#listIterator()">listIterator</A></B>()</CODE> <BR> Returns a list iterator of the elements in this list (in proper sequence).</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.util.ListIterator</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sourceforge/pain/db/DbArrayList.html#listIterator(int)">listIterator</A></B>(int index)</CODE> <BR> Returns a list iterator of the elements in this list (in proper sequence), starting at the specified position in this list.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.lang.Object</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sourceforge/pain/db/DbArrayList.html#remove(int)">remove</A></B>(int index)</CODE> <BR> Removes the element at the specified position in this list (optional operation).</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sourceforge/pain/db/DbArrayList.html#remove(java.lang.Object)">remove</A></B>(java.lang.Object o)</CODE> <BR> Removes the first occurrence in this list of the specified element (optional operation).</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sourceforge/pain/db/DbArrayList.html#removeAll(java.util.Collection)">removeAll</A></B>(java.util.Collection c)</CODE> <BR> Removes from this list all the elements that are contained in the specified collection (optional operation).</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sourceforge/pain/db/DbArrayList.html#retainAll(java.util.Collection)">retainAll</A></B>(java.util.Collection c)</CODE> <BR> Retains only the elements in this list that are contained in the specified collection (optional operation).</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.lang.Object</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sourceforge/pain/db/DbArrayList.html#set(int, java.lang.Object)">set</A></B>(int index, java.lang.Object o)</CODE> <BR> Replaces the element at the specified position in this list with the specified element (optional operation).</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sourceforge/pain/db/DbArrayList.html#size()">size</A></B>()</CODE> <BR> Returns the number of elements in this list.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.util.List</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sourceforge/pain/db/DbArrayList.html#subList(int, int)">subList</A></B>(int fromIndex, int toIndex)</CODE> <BR> Returns a view of the portion of this list between the specified <tt>fromIndex</tt>, inclusive, and <tt>toIndex</tt>, exclusive.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.lang.Object[]</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sourceforge/pain/db/DbArrayList.html#toArray()">toArray</A></B>()</CODE> <BR> Returns an array containing all of the elements in this list in proper sequence.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> java.lang.Object[]</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../net/sourceforge/pain/db/DbArrayList.html#toArray(java.lang.Object[])">toArray</A></B>(java.lang.Object[] a)</CODE> <BR> Returns an array containing all of the elements in this list in proper sequence; the runtime type of the returned array is that of the specified array.</TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TD><B>Methods inherited from class java.lang.Object</B></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_java.util.List"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TD><B>Methods inherited from interface java.util.List</B></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE>equals, hashCode</CODE></TD> </TR> </TABLE> <P> <!-- ============ FIELD DETAIL =========== --> <!-- ========= CONSTRUCTOR DETAIL ======== --> <!-- ============ METHOD DETAIL ========== --> <A NAME="method_detail"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=1><FONT SIZE="+2"> <B>Method Detail</B></FONT></TD> </TR> </TABLE> <A NAME="size()"><!-- --></A><H3> size</H3> <PRE> public int <B>size</B>()</PRE> <DL> <DD><B>Description copied from interface: <CODE>java.util.List</CODE></B></DD> <DD>Returns the number of elements in this list. If this list contains more than <tt>Integer.MAX_VALUE</tt> elements, returns <tt>Integer.MAX_VALUE</tt>. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE>size</CODE> in interface <CODE>java.util.List</CODE></DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>the number of elements in this list.</DL> </DD> </DL> <HR> <A NAME="isEmpty()"><!-- --></A><H3> isEmpty</H3> <PRE> public boolean <B>isEmpty</B>()</PRE> <DL> <DD><B>Description copied from interface: <CODE>java.util.List</CODE></B></DD> <DD>Returns <tt>true</tt> if this list contains no elements. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE>isEmpty</CODE> in interface <CODE>java.util.List</CODE></DL> </DD> <DD><DL> <DT><B>Returns:</B><DD><tt>true</tt> if this list contains no elements.</DL> </DD> </DL> <HR> <A NAME="contains(java.lang.Object)"><!-- --></A><H3> contains</H3> <PRE> public boolean <B>contains</B>(java.lang.Object o)</PRE> <DL> <DD><B>Description copied from interface: <CODE>java.util.List</CODE></B></DD> <DD>Returns <tt>true</tt> if this list contains the specified element. More formally, returns <tt>true</tt> if and only if this list contains at least one element <tt>e</tt> such that <tt>(o==null ? e==null : o.equals(e))</tt>. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE>contains</CODE> in interface <CODE>java.util.List</CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>o</CODE> - element whose presence in this list is to be tested. <DT><B>Returns:</B><DD><tt>true</tt> if this list contains the specified element.</DL> </DD> </DL> <HR> <A NAME="iterator()"><!-- --></A><H3> iterator</H3> <PRE> public java.util.Iterator <B>iterator</B>()</PRE> <DL> <DD><B>Description copied from interface: <CODE>java.util.List</CODE></B></DD> <DD>Returns an iterator over the elements in this list in proper sequence. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE>iterator</CODE> in interface <CODE>java.util.List</CODE></DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>an iterator over the elements in this list in proper sequence.</DL> </DD> </DL> <HR> <A NAME="toArray()"><!-- --></A><H3> toArray</H3> <PRE> public java.lang.Object[] <B>toArray</B>()</PRE> <DL> <DD><B>Description copied from interface: <CODE>java.util.List</CODE></B></DD> <DD>Returns an array containing all of the elements in this list in proper sequence. Obeys the general contract of the <tt>Collection.toArray</tt> method. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE>toArray</CODE> in interface <CODE>java.util.List</CODE></DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>an array containing all of the elements in this list in proper sequence.<DT><B>See Also:</B><DD><CODE>Arrays.asList(Object[])</CODE></DL> </DD> </DL> <HR> <A NAME="toArray(java.lang.Object[])"><!-- --></A><H3> toArray</H3> <PRE> public java.lang.Object[] <B>toArray</B>(java.lang.Object[] a)</PRE> <DL> <DD><B>Description copied from interface: <CODE>java.util.List</CODE></B></DD> <DD>Returns an array containing all of the elements in this list in proper sequence; the runtime type of the returned array is that of the specified array. Obeys the general contract of the <tt>Collection.toArray(Object[])</tt> method. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE>toArray</CODE> in interface <CODE>java.util.List</CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>a</CODE> - the array into which the elements of this list are to be stored, if it is big enough; otherwise, a new array of the same runtime type is allocated for this purpose. <DT><B>Returns:</B><DD>an array containing the elements of this list.</DL> </DD> </DL> <HR> <A NAME="add(java.lang.Object)"><!-- --></A><H3> add</H3> <PRE> public boolean <B>add</B>(java.lang.Object o)</PRE> <DL> <DD><B>Description copied from interface: <CODE>java.util.List</CODE></B></DD> <DD>Appends the specified element to the end of this list (optional operation). <p> Lists that support this operation may place limitations on what elements may be added to this list. In particular, some lists will refuse to add null elements, and others will impose restrictions on the type of elements that may be added. List classes should clearly specify in their documentation any restrictions on what elements may be added. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE>add</CODE> in interface <CODE>java.util.List</CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>o</CODE> - element to be appended to this list. <DT><B>Returns:</B><DD><tt>true</tt> (as per the general contract of the <tt>Collection.add</tt> method).</DL> </DD> </DL> <HR> <A NAME="add(int, java.lang.Object)"><!-- --></A><H3> add</H3> <PRE> public void <B>add</B>(int index, java.lang.Object o)</PRE> <DL> <DD><B>Description copied from interface: <CODE>java.util.List</CODE></B></DD> <DD>Inserts the specified element at the specified position in this list (optional operation). Shifts the element currently at that position (if any) and any subsequent elements to the right (adds one to their indices). <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE>add</CODE> in interface <CODE>java.util.List</CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>index</CODE> - index at which the specified element is to be inserted.<DD><CODE>o</CODE> - element to be inserted.</DL> </DD> </DL> <HR> <A NAME="remove(java.lang.Object)"><!-- --></A><H3> remove</H3> <PRE> public boolean <B>remove</B>(java.lang.Object o)</PRE> <DL> <DD><B>Description copied from interface: <CODE>java.util.List</CODE></B></DD> <DD>Removes the first occurrence in this list of the specified element (optional operation). If this list does not contain the element, it is unchanged. More formally, removes the element with the lowest index i such that <tt>(o==null ? get(i)==null : o.equals(get(i)))</tt> (if such an element exists). <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE>remove</CODE> in interface <CODE>java.util.List</CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>o</CODE> - element to be removed from this list, if present. <DT><B>Returns:</B><DD><tt>true</tt> if this list contained the specified element.</DL> </DD> </DL> <HR> <A NAME="containsAll(java.util.Collection)"><!-- --></A><H3> containsAll</H3> <PRE> public boolean <B>containsAll</B>(java.util.Collection c)</PRE> <DL> <DD><B>Description copied from interface: <CODE>java.util.List</CODE></B></DD> <DD>Returns <tt>true</tt> if this list contains all of the elements of the specified collection. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE>containsAll</CODE> in interface <CODE>java.util.List</CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>c</CODE> - collection to be checked for containment in this list. <DT><B>Returns:</B><DD><tt>true</tt> if this list contains all of the elements of the specified collection.<DT><B>See Also:</B><DD><CODE>List.contains(Object)</CODE></DL> </DD> </DL> <HR> <A NAME="addAll(java.util.Collection)"><!-- --></A><H3> addAll</H3> <PRE> public boolean <B>addAll</B>(java.util.Collection c)</PRE> <DL> <DD><B>Description copied from interface: <CODE>java.util.List</CODE></B></DD> <DD>Appends all of the elements in the specified collection to the end of this list, in the order that they are returned by the specified collection's iterator (optional operation). The behavior of this operation is unspecified if the specified collection is modified while the operation is in progress. (Note that this will occur if the specified collection is this list, and it's nonempty.) <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE>addAll</CODE> in interface <CODE>java.util.List</CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>c</CODE> - collection whose elements are to be added to this list. <DT><B>Returns:</B><DD><tt>true</tt> if this list changed as a result of the call.<DT><B>See Also:</B><DD><CODE>List.add(Object)</CODE></DL> </DD> </DL> <HR> <A NAME="addAll(int, java.util.Collection)"><!-- --></A><H3> addAll</H3> <PRE> public boolean <B>addAll</B>(int index, java.util.Collection c)</PRE> <DL> <DD><B>Description copied from interface: <CODE>java.util.List</CODE></B></DD> <DD>Inserts all of the elements in the specified collection into this list at the specified position (optional operation). Shifts the element currently at that position (if any) and any subsequent elements to the right (increases their indices). The new elements will appear in this list in the order that they are returned by the specified collection's iterator. The behavior of this operation is unspecified if the specified collection is modified while the operation is in progress. (Note that this will occur if the specified collection is this list, and it's nonempty.) <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE>addAll</CODE> in interface <CODE>java.util.List</CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>index</CODE> - index at which to insert first element from the specified collection.<DD><CODE>c</CODE> - elements to be inserted into this list. <DT><B>Returns:</B><DD><tt>true</tt> if this list changed as a result of the call.</DL> </DD> </DL> <HR> <A NAME="removeAll(java.util.Collection)"><!-- --></A><H3> removeAll</H3> <PRE> public boolean <B>removeAll</B>(java.util.Collection c)</PRE> <DL> <DD><B>Description copied from interface: <CODE>java.util.List</CODE></B></DD> <DD>Removes from this list all the elements that are contained in the specified collection (optional operation). <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE>removeAll</CODE> in interface <CODE>java.util.List</CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>c</CODE> - collection that defines which elements will be removed from this list. <DT><B>Returns:</B><DD><tt>true</tt> if this list changed as a result of the call.<DT><B>See Also:</B><DD><CODE>List.remove(Object)</CODE>, <CODE>List.contains(Object)</CODE></DL> </DD> </DL> <HR> <A NAME="retainAll(java.util.Collection)"><!-- --></A><H3> retainAll</H3> <PRE> public boolean <B>retainAll</B>(java.util.Collection c)</PRE> <DL> <DD><B>Description copied from interface: <CODE>java.util.List</CODE></B></DD> <DD>Retains only the elements in this list that are contained in the specified collection (optional operation). In other words, removes from this list all the elements that are not contained in the specified collection. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE>retainAll</CODE> in interface <CODE>java.util.List</CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>c</CODE> - collection that defines which elements this set will retain. <DT><B>Returns:</B><DD><tt>true</tt> if this list changed as a result of the call.<DT><B>See Also:</B><DD><CODE>List.remove(Object)</CODE>, <CODE>List.contains(Object)</CODE></DL> </DD> </DL> <HR> <A NAME="clear()"><!-- --></A><H3> clear</H3> <PRE> public void <B>clear</B>()</PRE> <DL> <DD><B>Description copied from interface: <CODE>java.util.List</CODE></B></DD> <DD>Removes all of the elements from this list (optional operation). This list will be empty after this call returns (unless it throws an exception). <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE>clear</CODE> in interface <CODE>java.util.List</CODE></DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="get(int)"><!-- --></A><H3> get</H3> <PRE> public java.lang.Object <B>get</B>(int index)</PRE> <DL> <DD><B>Description copied from interface: <CODE>java.util.List</CODE></B></DD> <DD>Returns the element at the specified position in this list. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE>get</CODE> in interface <CODE>java.util.List</CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>index</CODE> - index of element to return. <DT><B>Returns:</B><DD>the element at the specified position in this list.</DL> </DD> </DL> <HR> <A NAME="set(int, java.lang.Object)"><!-- --></A><H3> set</H3> <PRE> public java.lang.Object <B>set</B>(int index, java.lang.Object o)</PRE> <DL> <DD><B>Description copied from interface: <CODE>java.util.List</CODE></B></DD> <DD>Replaces the element at the specified position in this list with the specified element (optional operation). <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE>set</CODE> in interface <CODE>java.util.List</CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>index</CODE> - index of element to replace.<DD><CODE>o</CODE> - element to be stored at the specified position. <DT><B>Returns:</B><DD>the element previously at the specified position.</DL> </DD> </DL> <HR> <A NAME="remove(int)"><!-- --></A><H3> remove</H3> <PRE> public java.lang.Object <B>remove</B>(int index)</PRE> <DL> <DD><B>Description copied from interface: <CODE>java.util.List</CODE></B></DD> <DD>Removes the element at the specified position in this list (optional operation). Shifts any subsequent elements to the left (subtracts one from their indices). Returns the element that was removed from the list. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE>remove</CODE> in interface <CODE>java.util.List</CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>index</CODE> - the index of the element to removed. <DT><B>Returns:</B><DD>the element previously at the specified position.</DL> </DD> </DL> <HR> <A NAME="indexOf(java.lang.Object)"><!-- --></A><H3> indexOf</H3> <PRE> public int <B>indexOf</B>(java.lang.Object obj)</PRE> <DL> <DD><B>Description copied from interface: <CODE>java.util.List</CODE></B></DD> <DD>Returns the index in this list of the first occurrence of the specified element, or -1 if this list does not contain this element. More formally, returns the lowest index <tt>i</tt> such that <tt>(o==null ? get(i)==null : o.equals(get(i)))</tt>, or -1 if there is no such index. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE>indexOf</CODE> in interface <CODE>java.util.List</CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>obj</CODE> - element to search for. <DT><B>Returns:</B><DD>the index in this list of the first occurrence of the specified element, or -1 if this list does not contain this element.</DL> </DD> </DL> <HR> <A NAME="lastIndexOf(java.lang.Object)"><!-- --></A><H3> lastIndexOf</H3> <PRE> public int <B>lastIndexOf</B>(java.lang.Object o)</PRE> <DL> <DD><B>Description copied from interface: <CODE>java.util.List</CODE></B></DD> <DD>Returns the index in this list of the last occurrence of the specified element, or -1 if this list does not contain this element. More formally, returns the highest index <tt>i</tt> such that <tt>(o==null ? get(i)==null : o.equals(get(i)))</tt>, or -1 if there is no such index. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE>lastIndexOf</CODE> in interface <CODE>java.util.List</CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>o</CODE> - element to search for. <DT><B>Returns:</B><DD>the index in this list of the last occurrence of the specified element, or -1 if this list does not contain this element.</DL> </DD> </DL> <HR> <A NAME="listIterator()"><!-- --></A><H3> listIterator</H3> <PRE> public java.util.ListIterator <B>listIterator</B>()</PRE> <DL> <DD><B>Description copied from interface: <CODE>java.util.List</CODE></B></DD> <DD>Returns a list iterator of the elements in this list (in proper sequence). <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE>listIterator</CODE> in interface <CODE>java.util.List</CODE></DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>a list iterator of the elements in this list (in proper sequence).</DL> </DD> </DL> <HR> <A NAME="listIterator(int)"><!-- --></A><H3> listIterator</H3> <PRE> public java.util.ListIterator <B>listIterator</B>(int index)</PRE> <DL> <DD><B>Description copied from interface: <CODE>java.util.List</CODE></B></DD> <DD>Returns a list iterator of the elements in this list (in proper sequence), starting at the specified position in this list. The specified index indicates the first element that would be returned by an initial call to the <tt>next</tt> method. An initial call to the <tt>previous</tt> method would return the element with the specified index minus one. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE>listIterator</CODE> in interface <CODE>java.util.List</CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>index</CODE> - index of first element to be returned from the list iterator (by a call to the <tt>next</tt> method). <DT><B>Returns:</B><DD>a list iterator of the elements in this list (in proper sequence), starting at the specified position in this list.</DL> </DD> </DL> <HR> <A NAME="subList(int, int)"><!-- --></A><H3> subList</H3> <PRE> public java.util.List <B>subList</B>(int fromIndex, int toIndex)</PRE> <DL> <DD><B>Description copied from interface: <CODE>java.util.List</CODE></B></DD> <DD>Returns a view of the portion of this list between the specified <tt>fromIndex</tt>, inclusive, and <tt>toIndex</tt>, exclusive. (If <tt>fromIndex</tt> and <tt>toIndex</tt> are equal, the returned list is empty.) The returned list is backed by this list, so non-structural changes in the returned list are reflected in this list, and vice-versa. The returned list supports all of the optional list operations supported by this list.<p> This method eliminates the need for explicit range operations (of the sort that commonly exist for arrays). Any operation that expects a list can be used as a range operation by passing a subList view instead of a whole list. For example, the following idiom removes a range of elements from a list: <pre> list.subList(from, to).clear(); </pre> Similar idioms may be constructed for <tt>indexOf</tt> and <tt>lastIndexOf</tt>, and all of the algorithms in the <tt>Collections</tt> class can be applied to a subList.<p> The semantics of the list returned by this method become undefined if the backing list (i.e., this list) is <i>structurally modified</i> in any way other than via the returned list. (Structural modifications are those that change the size of this list, or otherwise perturb it in such a fashion that iterations in progress may yield incorrect results.) <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE>subList</CODE> in interface <CODE>java.util.List</CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>fromIndex</CODE> - low endpoint (inclusive) of the subList.<DD><CODE>toIndex</CODE> - high endpoint (exclusive) of the subList. <DT><B>Returns:</B><DD>a view of the specified range within this list.</DL> </DD> </DL> <!-- ========= END OF CLASS DATA ========= --> <HR> <!-- ======= START OF BOTTOM NAVBAR ====== --> <A NAME="navbar_bottom"><!-- --></A> <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_bottom_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV CLASS <A HREF="../../../../net/sourceforge/pain/db/DbClassSchema.html" title="class in net.sourceforge.pain.db"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A> <A HREF="DbArrayList.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_bottom"></A> <!-- ======== END OF BOTTOM NAVBAR ======= --> <HR> </BODY> </HTML>