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

📄 swarm.collections.set.protocol.html

📁 set for Swarm2.1是圣菲研究院的开发人员对Swarm的特性及其使用描述的最为完备的指南性文档。从这里可以获得最细致的平台说明。
💻 HTML
字号:
<HTML><HEAD><TITLE>Set</TITLE><METANAME="GENERATOR"CONTENT="Modular DocBook HTML Stylesheet Version 1.53"><LINKREL="HOME"TITLE="Documentation Set for Swarm 2.1.1"HREF="set.html"><LINKREL="UP"TITLE="Collections Library"HREF="swarm.collections.sgml.reference.html"><LINKREL="PREVIOUS"TITLE="PermutedIndex"HREF="swarm.collections.permutedindex.protocol.html"><LINKREL="NEXT"TITLE="String"HREF="swarm.collections.string.protocol.html"></HEAD><BODYCLASS="REFENTRY"BGCOLOR="#FFFFFF"TEXT="#000000"LINK="#0000FF"VLINK="#840084"ALINK="#0000FF"><DIVCLASS="NAVHEADER"><TABLEWIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><THCOLSPAN="3"ALIGN="center">Documentation Set for Swarm 2.1.1</TH></TR><TR><TDWIDTH="10%"ALIGN="left"VALIGN="bottom"><AHREF="swarm.collections.permutedindex.protocol.html">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom">Reference II. Collections Library</TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="swarm.collections.string.protocol.html">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><H1><ANAME="SWARM.COLLECTIONS.SET.PROTOCOL">Set</A></H1><DIVCLASS="REFNAMEDIV"><ANAME="AEN8313"></A><H2>Name</H2>Set&nbsp;--&nbsp; Collection of members each having a defined identity.</DIV><DIVCLASS="REFSECT1"><ANAME="AEN8316"></A><H2>Description</H2><P> Set is a subtype of KeyedCollection in which the key value associated with each member is determined by the member value itself.  The key value may be identical to the member itself, or may be defined as a a function of the member using a create-time option.</P><P> The Set type inherits most of its interface from the KeyedCollection supertype.  Set defines no create-time options beyond those already defined by KeyedCollection.  If a custom compare or bucket function is specified, the member value is passed as the key value arguments of these functions.  These functions determine what part of the member value is part of the key value, by determining which key values will compare equal to any member.</P></DIV><DIVCLASS="REFSECT1"><ANAME="AEN8320"></A><H2>Protocols adopted by Set</H2><P> <AHREF="swarm.collections.set.protocol.html">Set</A> <AHREF="swarm.collections.keyedcollection.protocol.html">KeyedCollection</A> <AHREF="swarm.defobj.creatable.protocol.html">CREATABLE</A></P></DIV><DIVCLASS="REFSECT1"><ANAME="AEN8326"></A><H2>Methods</H2><DIVCLASS="REFSECT2"><ANAME="AEN8328"></A><H3>Phase: Using</H3><P></P><UL><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.COLLECTIONS.SET.METHOD.PU.M644"></A><P></P>- <BCLASS="FUNCPROTOTYPE">replace:</B> <VARCLASS="PDPARAM">anObject</VAR> <BR> The replace: message replaces a member stored at a given key with another member value that matches the same key.  The new value to replace the existing one is passed as the argument.  replace: returns the member value that was replaced, or nil if the collection contained no member with a matching key.<P></P></DIV></LI></UL><P></P><UL><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.COLLECTIONS.SET.METHOD.PU.M78"></A><P></P>- (BOOL)<BCLASS="FUNCPROTOTYPE">add:</B> <VARCLASS="PDPARAM">anObject</VAR> <BR> The add: message adds a new member to a set.<P></P></DIV></LI></UL></DIV></DIV><DIVCLASS="NAVFOOTER"><HRALIGN="LEFT"WIDTH="100%"><TABLEWIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top"><AHREF="swarm.collections.permutedindex.protocol.html">Prev</A></TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="set.html">Home</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top"><AHREF="swarm.collections.string.protocol.html">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">PermutedIndex</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="swarm.collections.sgml.reference.html">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">String</TD></TR></TABLE></DIV></BODY></HTML>

⌨️ 快捷键说明

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