collection.html
来自「j2se5-api-zh,java文档的中文版本」· HTML 代码 · 共 1,104 行 · 第 1/5 页
HTML
1,104 行
<BR>T</CODE></FONT></TD></TR></TABLE></CODE></FONT></TD><TD><CODE><B>Collections.</B><B><A HREF="../Collections.html#max(java.util.Collection)">max</A></B>(<A HREF="../Collection.html" title="java.util 中的接口">Collection</A><? extends T> coll)</CODE><BR> 根据元素的<i>自然顺序</i>,返回给定 collection 的最大元素。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""><TR ALIGN="right" VALIGN=""><TD NOWRAP><FONT SIZE="-1"><CODE><T> T</CODE></FONT></TD></TR></TABLE></CODE></FONT></TD><TD><CODE><B>Collections.</B><B><A HREF="../Collections.html#max(java.util.Collection, java.util.Comparator)">max</A></B>(<A HREF="../Collection.html" title="java.util 中的接口">Collection</A><? extends T> coll, <A HREF="../Comparator.html" title="java.util 中的接口">Comparator</A><? super T> comp)</CODE><BR> 根据指定比较器产生的顺序,返回给定 collection 的最大元素。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""><TR ALIGN="right" VALIGN=""><TD NOWRAP><FONT SIZE="-1"><CODE><T extends <A HREF="../../lang/Object.html" title="java.lang 中的类">Object</A> & <A HREF="../../lang/Comparable.html" title="java.lang 中的接口">Comparable</A><? super T>> <BR>T</CODE></FONT></TD></TR></TABLE></CODE></FONT></TD><TD><CODE><B>Collections.</B><B><A HREF="../Collections.html#min(java.util.Collection)">min</A></B>(<A HREF="../Collection.html" title="java.util 中的接口">Collection</A><? extends T> coll)</CODE><BR> 根据元素的<i>自然顺序</i> 返回给定 collection 的最小元素。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""><TR ALIGN="right" VALIGN=""><TD NOWRAP><FONT SIZE="-1"><CODE><T> T</CODE></FONT></TD></TR></TABLE></CODE></FONT></TD><TD><CODE><B>Collections.</B><B><A HREF="../Collections.html#min(java.util.Collection, java.util.Comparator)">min</A></B>(<A HREF="../Collection.html" title="java.util 中的接口">Collection</A><? extends T> coll, <A HREF="../Comparator.html" title="java.util 中的接口">Comparator</A><? super T> comp)</CODE><BR> 根据指定比较器产生的顺序,返回给定 collection 的最小元素。</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>Collection.</B><B><A HREF="../Collection.html#removeAll(java.util.Collection)">removeAll</A></B>(<A HREF="../Collection.html" title="java.util 中的接口">Collection</A><?> c)</CODE><BR> 移除此 collection 中那些也包含在指定 collection 中的所有元素(可选操作)。</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>List.</B><B><A HREF="../List.html#removeAll(java.util.Collection)">removeAll</A></B>(<A HREF="../Collection.html" title="java.util 中的接口">Collection</A><?> c)</CODE><BR> 从列表中移除指定 collection 中包含的所有元素(可选操作)。</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>AbstractCollection.</B><B><A HREF="../AbstractCollection.html#removeAll(java.util.Collection)">removeAll</A></B>(<A HREF="../Collection.html" title="java.util 中的接口">Collection</A><?> c)</CODE><BR> 从此 collection 中移除包含在指定 collection 中的所有元素(可选操作)。</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>Vector.</B><B><A HREF="../Vector.html#removeAll(java.util.Collection)">removeAll</A></B>(<A HREF="../Collection.html" title="java.util 中的接口">Collection</A><?> c)</CODE><BR> 从此向量中移除包含在指定 Collection 中的所有元素。</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>Set.</B><B><A HREF="../Set.html#removeAll(java.util.Collection)">removeAll</A></B>(<A HREF="../Collection.html" title="java.util 中的接口">Collection</A><?> c)</CODE><BR> 移除 set 中那些包含在指定 collection 中的元素(可选操作)。</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>AbstractSet.</B><B><A HREF="../AbstractSet.html#removeAll(java.util.Collection)">removeAll</A></B>(<A HREF="../Collection.html" title="java.util 中的接口">Collection</A><?> c)</CODE><BR> 从此 set 中移除包含在指定 collection 中的所有元素(可选操作)。</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>Collection.</B><B><A HREF="../Collection.html#retainAll(java.util.Collection)">retainAll</A></B>(<A HREF="../Collection.html" title="java.util 中的接口">Collection</A><?> c)</CODE><BR> 仅保留此 collection 中那些也包含在指定 collection 的元素(可选操作)。</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>List.</B><B><A HREF="../List.html#retainAll(java.util.Collection)">retainAll</A></B>(<A HREF="../Collection.html" title="java.util 中的接口">Collection</A><?> c)</CODE><BR> 仅在列表中保留指定 collection 中所包含的元素(可选操作)。</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>AbstractCollection.</B><B><A HREF="../AbstractCollection.html#retainAll(java.util.Collection)">retainAll</A></B>(<A HREF="../Collection.html" title="java.util 中的接口">Collection</A><?> c)</CODE><BR> 仅在此 collection 中保留指定 collection 中所包含的元素(可选操作)。</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>Vector.</B><B><A HREF="../Vector.html#retainAll(java.util.Collection)">retainAll</A></B>(<A HREF="../Collection.html" title="java.util 中的接口">Collection</A><?> c)</CODE><BR> 在此向量中仅保留包含在指定 Collection 中的元素。</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>Set.</B><B><A HREF="../Set.html#retainAll(java.util.Collection)">retainAll</A></B>(<A HREF="../Collection.html" title="java.util 中的接口">Collection</A><?> c)</CODE><BR> 仅保留 set 中那些包含在指定 collection 中的元素(可选操作)。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""><TR ALIGN="right" VALIGN=""><TD NOWRAP><FONT SIZE="-1"><CODE><T> <A HREF="../Collection.html" title="java.util 中的接口">Collection</A><T></CODE></FONT></TD></TR></TABLE></CODE></FONT></TD><TD><CODE><B>Collections.</B><B><A HREF="../Collections.html#synchronizedCollection(java.util.Collection)">synchronizedCollection</A></B>(<A HREF="../Collection.html" title="java.util 中的接口">Collection</A><T> c)</CODE><BR> 返回由指定 collection 支持的同步(线程安全的)collection。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""><TR ALIGN="right" VALIGN=""><TD NOWRAP><FONT SIZE="-1"><CODE><T> <A HREF="../Collection.html" title="java.util 中的接口">Collection</A><T></CODE></FONT></TD></TR></TABLE></CODE></FONT></TD><TD><CODE><B>Collections.</B><B><A HREF="../Collections.html#unmodifiableCollection(java.util.Collection)">unmodifiableCollection</A></B>(<A HREF="../Collection.html" title="java.util 中的接口">Collection</A><? extends T> c)</CODE><BR> 返回指定 collection 的不可修改视图。</TD></TR></TABLE> <P><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TH ALIGN="left" COLSPAN="2">参数类型为 <A HREF="../Collection.html" title="java.util 中的接口">Collection</A> 的 <A HREF="../package-summary.html">java.util</A> 中的构造方法</FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../ArrayList.html#ArrayList(java.util.Collection)">ArrayList</A></B>(<A HREF="../Collection.html" title="java.util 中的接口">Collection</A><? extends <A HREF="../ArrayList.html" title="ArrayList 中的类型参数">E</A>> c)</CODE><BR> 构造一个包含指定 collection 的元素的列表,这些元素是按照该 collection 的迭代器返回它们的顺序排列的。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../HashSet.html#HashSet(java.util.Collection)">HashSet</A></B>(<A HREF="../Collection.html" title="java.util 中的接口">Collection</A><? extends <A HREF="../HashSet.html" title="HashSet 中的类型参数">E</A>> c)</CODE><BR> 构造一个包含指定 collection 中的元素的新 set。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../LinkedHashSet.html#LinkedHashSet(java.util.Collection)">LinkedHashSet</A></B>(<A HREF="../Collection.html" title="java.util 中的接口">Collection</A><? extends <A HREF="../LinkedHashSet.html" title="LinkedHashSet 中的类型参数">E</A>> c)</CODE><BR> 构造一个与指定集合中的元素相同的新链接哈希集合。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../LinkedList.html#LinkedList(java.util.Collection)">LinkedList</A></B>(<A HREF="../Collection.html" title="java.util 中的接口">Collection</A><? extends <A HREF="../LinkedList.html" title="LinkedList 中的类型参数">E</A>> c)</CODE><BR> 构造一个包含指定集合中的元素的列表,这些元素按其集合的迭代器返回的顺序排列。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../PriorityQueue.html#PriorityQueue(java.util.Collection)">PriorityQueue</A></B>(<A HREF="../Collection.html" title="java.util 中的接口">Collection</A><? extends <A HREF="../PriorityQueue.html" title="PriorityQueue 中的类型参数">E</A>> c)</CODE><BR> 创建包含指定集合中元素的 <tt>PriorityQueue</tt>。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../TreeSet.html#TreeSet(java.util.Collection)">TreeSet</A></B>(<A HREF="../Collection.html" title="java.util 中的接口">Collection</A><? extends <A HREF="../TreeSet.html" title="TreeSet 中的类型参数">E</A>> c)</CODE><BR> 构造一个新 set,包含指定 collection 中的元素,这个新 set 按照元素的<i>自然顺序</i> 排序。</TD></TR>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?