⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 keyedcollection.html

📁 文件来自swarm.org
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc on Tue Nov 30 14:11:21 MST 2004 --><TITLE>Swarm 2.2 Reference Guide: Interface  KeyedCollection</TITLE><LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style"></HEAD><BODY BGCOLOR="white"><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_top"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../overview-summary.html"><FONT ID="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT ID="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../index-files/index-1.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../swarm/collections/IndexS.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../swarm/collections/KeyedCollectionC.html"><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>  &nbsp;&nbsp;<A HREF="KeyedCollection.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">swarm.collections</FONT><BR>Interface  KeyedCollection</H2><DL><DT><B>All Known Subinterfaces:</B> <DD><A HREF="../../swarm/activity/ConcurrentSchedule.html">ConcurrentSchedule</A>, <A HREF="../../swarm/collections/Map.html">Map</A>, <A HREF="../../swarm/activity/Schedule.html">Schedule</A></DD></DL><DL><DT><B>All Known Implementing Classes:</B> <DD><A HREF="../../swarm/collections/MapImpl.html">MapImpl</A></DD></DL><HR><DL><DT>public interface <B>KeyedCollection</B><DT>extends <A HREF="../../swarm/collections/Collection.html">Collection</A>, <A HREF="../../swarm/collections/CollectionS.html">CollectionS</A>, <A HREF="../../swarm/collections/ForEachKey.html">ForEachKey</A>, <A HREF="../../swarm/collections/ForEachKeyS.html">ForEachKeyS</A></DL><P><strong> Member identity definition shared by Set and Map types.</strong>.A keyed collection is a collection in which each member can be compared with some other value that identifies the member.  This value is referred to as the member key.  The key value may be determined either by the member value itself, which defines a Set, or by external association with the member when the member is first added, which defines a Map. The KeyedCollection type inherits all standard behavior of Collection. The KeyedCollection type is not itself creatable; it only serves as a common supertype for Set and Map collection types. The keyed collection type establishes the common behavior shared by both Set and Map.  Standard options are provided to declare ordering of members in the collection.<P><HR><P><!-- ======== INNER CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><!-- ======== CONSTRUCTOR SUMMARY ======== --><!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><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>&nbsp;java.lang.Object</CODE></FONT></TD><TD><CODE><B><A HREF="../../swarm/collections/KeyedCollection.html#at(java.lang.Object)">at</A></B>(java.lang.Object&nbsp;aKey)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The at: message returns the existing member of the collection which matches the key value passed as its argument, or nil if there is no key value in the collection which matches.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../swarm/collections/KeyedCollection.html#containsKey(java.lang.Object)">containsKey</A></B>(java.lang.Object&nbsp;aKey)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The containsKey: message returns true if the key value passed as its argument is contained in the collection, and false otherwise.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.Object</CODE></FONT></TD><TD><CODE><B><A HREF="../../swarm/collections/KeyedCollection.html#createIndex$fromMember(swarm.defobj.Zone, java.lang.Object)">createIndex$fromMember</A></B>(<A HREF="../../swarm/defobj/Zone.html">Zone</A>&nbsp;aZone,                       java.lang.Object&nbsp;anObject)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.Object</CODE></FONT></TD><TD><CODE><B><A HREF="../../swarm/collections/KeyedCollection.html#removeKey(java.lang.Object)">removeKey</A></B>(java.lang.Object&nbsp;aKey)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The removeKey: message removes a member matching a key value from the collection, and returns the member just removed.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_swarm.collections.Collection"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface swarm.collections.<A HREF="../../swarm/collections/Collection.html">Collection</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../swarm/collections/Collection.html#allSameClass()">allSameClass</A>, <A HREF="../../swarm/collections/Collection.html#begin(swarm.defobj.Zone)">begin</A>, <A HREF="../../swarm/collections/Collection.html#beginPermuted(swarm.defobj.Zone)">beginPermuted</A>, <A HREF="../../swarm/collections/Collection.html#contains(java.lang.Object)">contains</A>, <A HREF="../../swarm/collections/Collection.html#copy(swarm.defobj.Zone)">copy</A>, <A HREF="../../swarm/collections/Collection.html#deleteAll()">deleteAll</A>, <A HREF="../../swarm/collections/Collection.html#getCount()">getCount</A>, <A HREF="../../swarm/collections/Collection.html#getReplaceOnly()">getReplaceOnly</A>, <A HREF="../../swarm/collections/Collection.html#remove(java.lang.Object)">remove</A>, <A HREF="../../swarm/collections/Collection.html#removeAll()">removeAll</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_swarm.collections.ForEachKey"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface swarm.collections.<A HREF="../../swarm/collections/ForEachKey.html">ForEachKey</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../swarm/collections/ForEachKey.html#forEachKey(swarm.Selector)">forEachKey</A>, <A HREF="../../swarm/collections/ForEachKey.html#forEachKey(swarm.Selector, java.lang.Object)">forEachKey</A>, <A HREF="../../swarm/collections/ForEachKey.html#forEachKey(swarm.Selector, java.lang.Object, java.lang.Object)">forEachKey</A>, <A HREF="../../swarm/collections/ForEachKey.html#forEachKey(swarm.Selector, java.lang.Object, java.lang.Object, java.lang.Object)">forEachKey</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_swarm.defobj.Drop"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface swarm.defobj.<A HREF="../../swarm/defobj/Drop.html">Drop</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../swarm/defobj/Drop.html#drop()">drop</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_swarm.collections.Offsets"><!-- --></A>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -