562 lines
21 KiB
HTML
562 lines
21 KiB
HTML
<!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.6.0_24) on Sun Apr 15 20:18:22 CEST 2012 -->
|
|
<TITLE>
|
|
Collection
|
|
</TITLE>
|
|
|
|
<META NAME="date" CONTENT="2012-04-15">
|
|
|
|
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
|
|
|
|
<SCRIPT type="text/javascript">
|
|
function windowTitle()
|
|
{
|
|
if (location.href.indexOf('is-external=true') == -1) {
|
|
parent.document.title="Collection";
|
|
}
|
|
}
|
|
</SCRIPT>
|
|
<NOSCRIPT>
|
|
</NOSCRIPT>
|
|
|
|
</HEAD>
|
|
|
|
<BODY BGCOLOR="white" onload="windowTitle();">
|
|
<HR>
|
|
|
|
|
|
<!-- ========= 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=2 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="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
|
<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="class-use/Collection.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </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="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</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="../../../System/Collections/ObjectModel/ReadOnlyCollection.html" title="class in System.Collections.ObjectModel"><B>NEXT CLASS</B></A></FONT></TD>
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
<A HREF="../../../index.html?System/Collections/ObjectModel/Collection.html" target="_top"><B>FRAMES</B></A>
|
|
<A HREF="Collection.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 | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <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">
|
|
System.Collections.ObjectModel</FONT>
|
|
<BR>
|
|
Class Collection<T></H2>
|
|
<PRE>
|
|
java.lang.Object
|
|
<IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>System.Collections.ObjectModel.Collection<T></B>
|
|
</PRE>
|
|
<DL>
|
|
<DT><B>All Implemented Interfaces:</B> <DD>java.lang.Iterable<T></DD>
|
|
</DL>
|
|
<HR>
|
|
<DL>
|
|
<DT><PRE>public class <B>Collection<T></B><DT>extends java.lang.Object<DT>implements java.lang.Iterable<T></DL>
|
|
</PRE>
|
|
|
|
<P>
|
|
Provides the base class for a generic collection.
|
|
<P>
|
|
|
|
<P>
|
|
<DL>
|
|
<DT><B>Author:</B></DT>
|
|
<DD>Halofreak1990</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<P>
|
|
|
|
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
|
|
|
<A NAME="constructor_summary"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
|
<B>Constructor Summary</B></FONT></TH>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD><CODE><B><A HREF="../../../System/Collections/ObjectModel/Collection.html#Collection()">Collection</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Initializes a new instance of the Collection<> class that is empty.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD><CODE><B><A HREF="../../../System/Collections/ObjectModel/Collection.html#Collection(java.util.List)">Collection</A></B>(java.util.List<<A HREF="../../../System/Collections/ObjectModel/Collection.html" title="type parameter in Collection">T</A>> list)</CODE>
|
|
|
|
<BR>
|
|
Initializes a new instance of the Collection<> class as a wrapper for the specified list.</TD>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<!-- ========== METHOD SUMMARY =========== -->
|
|
|
|
<A NAME="method_summary"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
|
<B>Method Summary</B></FONT></TH>
|
|
</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="../../../System/Collections/ObjectModel/Collection.html#Add(T)">Add</A></B>(<A HREF="../../../System/Collections/ObjectModel/Collection.html" title="type parameter in Collection">T</A> item)</CODE>
|
|
|
|
<BR>
|
|
Adds an object to the end of the Collection<>.</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="../../../System/Collections/ObjectModel/Collection.html#Clear()">Clear</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Removes all elements from the Collection<>.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../System/Collections/ObjectModel/Collection.html#ClearItems()">ClearItems</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Removes all elements from the Collection<>.</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="../../../System/Collections/ObjectModel/Collection.html#Count()">Count</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Gets the number of elements actually contained in the Collection<>.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../System/Collections/ObjectModel/Collection.html" title="type parameter in Collection">T</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../System/Collections/ObjectModel/Collection.html#get(int)">get</A></B>(int index)</CODE>
|
|
|
|
<BR>
|
|
Gets the element at the specified index.</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="../../../System/Collections/ObjectModel/Collection.html#IndexOf(T)">IndexOf</A></B>(<A HREF="../../../System/Collections/ObjectModel/Collection.html" title="type parameter in Collection">T</A> item)</CODE>
|
|
|
|
<BR>
|
|
Searches for the specified object and returns the zero-based index of the first occurrence within the entire Collection<>.</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="../../../System/Collections/ObjectModel/Collection.html#Insert(int, T)">Insert</A></B>(int index,
|
|
<A HREF="../../../System/Collections/ObjectModel/Collection.html" title="type parameter in Collection">T</A> item)</CODE>
|
|
|
|
<BR>
|
|
Inserts an element into the Collection<> at the specified index.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../System/Collections/ObjectModel/Collection.html#InsertItem(int, T)">InsertItem</A></B>(int index,
|
|
<A HREF="../../../System/Collections/ObjectModel/Collection.html" title="type parameter in Collection">T</A> item)</CODE>
|
|
|
|
<BR>
|
|
Inserts an element into the Collection<> at the specified index.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> java.util.Iterator<<A HREF="../../../System/Collections/ObjectModel/Collection.html" title="type parameter in Collection">T</A>></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../System/Collections/ObjectModel/Collection.html#iterator()">iterator</A></B>()</CODE>
|
|
|
|
<BR>
|
|
</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../System/Collections/ObjectModel/Collection.html#RemoveItem(int)">RemoveItem</A></B>(int index)</CODE>
|
|
|
|
<BR>
|
|
Removes the element at the specified index of the Collection<>.</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="../../../System/Collections/ObjectModel/Collection.html#set(int, T)">set</A></B>(int index,
|
|
<A HREF="../../../System/Collections/ObjectModel/Collection.html" title="type parameter in Collection">T</A> item)</CODE>
|
|
|
|
<BR>
|
|
Sets the element at the specified index.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>protected void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../System/Collections/ObjectModel/Collection.html#SetItem(int, T)">SetItem</A></B>(int index,
|
|
<A HREF="../../../System/Collections/ObjectModel/Collection.html" title="type parameter in Collection">T</A> item)</CODE>
|
|
|
|
<BR>
|
|
Replaces the element at the specified index.</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">
|
|
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<P>
|
|
|
|
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
|
|
|
<A NAME="constructor_detail"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
|
<B>Constructor Detail</B></FONT></TH>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<A NAME="Collection()"><!-- --></A><H3>
|
|
Collection</H3>
|
|
<PRE>
|
|
public <B>Collection</B>()</PRE>
|
|
<DL>
|
|
<DD>Initializes a new instance of the Collection<> class that is empty.
|
|
<P>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="Collection(java.util.List)"><!-- --></A><H3>
|
|
Collection</H3>
|
|
<PRE>
|
|
public <B>Collection</B>(java.util.List<<A HREF="../../../System/Collections/ObjectModel/Collection.html" title="type parameter in Collection">T</A>> list)</PRE>
|
|
<DL>
|
|
<DD>Initializes a new instance of the Collection<> class as a wrapper for the specified list.
|
|
<P>
|
|
<DL>
|
|
<DT><B>Parameters:</B><DD><CODE>list</CODE> - The list that is wrapped by the new collection.</DL>
|
|
</DL>
|
|
|
|
<!-- ============ METHOD DETAIL ========== -->
|
|
|
|
<A NAME="method_detail"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
|
<B>Method Detail</B></FONT></TH>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<A NAME="get(int)"><!-- --></A><H3>
|
|
get</H3>
|
|
<PRE>
|
|
public <A HREF="../../../System/Collections/ObjectModel/Collection.html" title="type parameter in Collection">T</A> <B>get</B>(int index)</PRE>
|
|
<DL>
|
|
<DD>Gets the element at the specified index.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>index</CODE> - The zero-based index of the element to get.
|
|
<DT><B>Returns:</B><DD>The element at the specified index.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="set(int,java.lang.Object)"><!-- --></A><A NAME="set(int, T)"><!-- --></A><H3>
|
|
set</H3>
|
|
<PRE>
|
|
public void <B>set</B>(int index,
|
|
<A HREF="../../../System/Collections/ObjectModel/Collection.html" title="type parameter in Collection">T</A> item)</PRE>
|
|
<DL>
|
|
<DD>Sets the element at the specified index.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>index</CODE> - The zero-based index of the element to set.<DD><CODE>item</CODE> - The new value for the element at the specified index. The value can be null for reference types.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="Add(java.lang.Object)"><!-- --></A><A NAME="Add(T)"><!-- --></A><H3>
|
|
Add</H3>
|
|
<PRE>
|
|
public void <B>Add</B>(<A HREF="../../../System/Collections/ObjectModel/Collection.html" title="type parameter in Collection">T</A> item)</PRE>
|
|
<DL>
|
|
<DD>Adds an object to the end of the Collection<>.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>item</CODE> - The object to be added to the end of the Collection<>. The value can be null for reference types.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="iterator()"><!-- --></A><H3>
|
|
iterator</H3>
|
|
<PRE>
|
|
public java.util.Iterator<<A HREF="../../../System/Collections/ObjectModel/Collection.html" title="type parameter in Collection">T</A>> <B>iterator</B>()</PRE>
|
|
<DL>
|
|
<DD><DL>
|
|
<DT><B>Specified by:</B><DD><CODE>iterator</CODE> in interface <CODE>java.lang.Iterable<<A HREF="../../../System/Collections/ObjectModel/Collection.html" title="type parameter in Collection">T</A>></CODE></DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="Clear()"><!-- --></A><H3>
|
|
Clear</H3>
|
|
<PRE>
|
|
public void <B>Clear</B>()</PRE>
|
|
<DL>
|
|
<DD>Removes all elements from the Collection<>.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="ClearItems()"><!-- --></A><H3>
|
|
ClearItems</H3>
|
|
<PRE>
|
|
protected void <B>ClearItems</B>()</PRE>
|
|
<DL>
|
|
<DD>Removes all elements from the Collection<>.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="Count()"><!-- --></A><H3>
|
|
Count</H3>
|
|
<PRE>
|
|
public int <B>Count</B>()</PRE>
|
|
<DL>
|
|
<DD>Gets the number of elements actually contained in the Collection<>.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>The number of elements actually contained in the Collection<>.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="IndexOf(java.lang.Object)"><!-- --></A><A NAME="IndexOf(T)"><!-- --></A><H3>
|
|
IndexOf</H3>
|
|
<PRE>
|
|
public int <B>IndexOf</B>(<A HREF="../../../System/Collections/ObjectModel/Collection.html" title="type parameter in Collection">T</A> item)</PRE>
|
|
<DL>
|
|
<DD>Searches for the specified object and returns the zero-based index of the first occurrence within the entire Collection<>.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>item</CODE> - The object to locate in the List<>. The value can be null for reference types.
|
|
<DT><B>Returns:</B><DD>The zero-based index of the first occurrence of item within the entire Collection<>, if found; otherwise, -1.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="Insert(int,java.lang.Object)"><!-- --></A><A NAME="Insert(int, T)"><!-- --></A><H3>
|
|
Insert</H3>
|
|
<PRE>
|
|
public void <B>Insert</B>(int index,
|
|
<A HREF="../../../System/Collections/ObjectModel/Collection.html" title="type parameter in Collection">T</A> item)</PRE>
|
|
<DL>
|
|
<DD>Inserts an element into the Collection<> at the specified index.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>index</CODE> - The object to insert. The value can be null for reference types.<DD><CODE>item</CODE> - The zero-based index at which item should be inserted.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="InsertItem(int,java.lang.Object)"><!-- --></A><A NAME="InsertItem(int, T)"><!-- --></A><H3>
|
|
InsertItem</H3>
|
|
<PRE>
|
|
protected void <B>InsertItem</B>(int index,
|
|
<A HREF="../../../System/Collections/ObjectModel/Collection.html" title="type parameter in Collection">T</A> item)</PRE>
|
|
<DL>
|
|
<DD>Inserts an element into the Collection<> at the specified index.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>index</CODE> - The object to insert. The value can be null for reference types.<DD><CODE>item</CODE> - The zero-based index at which item should be inserted.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="RemoveItem(int)"><!-- --></A><H3>
|
|
RemoveItem</H3>
|
|
<PRE>
|
|
protected void <B>RemoveItem</B>(int index)</PRE>
|
|
<DL>
|
|
<DD>Removes the element at the specified index of the Collection<>.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>index</CODE> - The zero-based index of the element to remove.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="SetItem(int,java.lang.Object)"><!-- --></A><A NAME="SetItem(int, T)"><!-- --></A><H3>
|
|
SetItem</H3>
|
|
<PRE>
|
|
protected void <B>SetItem</B>(int index,
|
|
<A HREF="../../../System/Collections/ObjectModel/Collection.html" title="type parameter in Collection">T</A> item)</PRE>
|
|
<DL>
|
|
<DD>Replaces the element at the specified index.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>index</CODE> - The zero-based index of the element to replace.<DD><CODE>item</CODE> - The new value for the element at the specified index. The value can be null for reference types.</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=2 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="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
|
<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="class-use/Collection.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </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="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</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="../../../System/Collections/ObjectModel/ReadOnlyCollection.html" title="class in System.Collections.ObjectModel"><B>NEXT CLASS</B></A></FONT></TD>
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
<A HREF="../../../index.html?System/Collections/ObjectModel/Collection.html" target="_top"><B>FRAMES</B></A>
|
|
<A HREF="Collection.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 | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
|
</TR>
|
|
</TABLE>
|
|
<A NAME="skip-navbar_bottom"></A>
|
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
|
|
|
<HR>
|
|
|
|
</BODY>
|
|
</HTML>
|