📄 swarm.collections.mapindex.protocol.html
字号:
<HTML><HEAD><TITLE>MapIndex</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="Map"HREF="swarm.collections.map.protocol.html"><LINKREL="NEXT"TITLE="MemberBlock"HREF="swarm.collections.memberblock.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.map.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.memberblock.protocol.html">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><H1><ANAME="SWARM.COLLECTIONS.MAPINDEX.PROTOCOL">MapIndex</A></H1><DIVCLASS="REFNAMEDIV"><ANAME="AEN7412"></A><H2>Name</H2>MapIndex -- The index behavior for a Map.</DIV><DIVCLASS="REFSECT1"><ANAME="AEN7415"></A><H2>Description</H2><P> The index behavior for a Map.</P></DIV><DIVCLASS="REFSECT1"><ANAME="AEN7418"></A><H2>Protocols adopted by MapIndex</H2><P> <AHREF="swarm.collections.keyedcollectionindex.protocol.html">KeyedCollectionIndex</A> <AHREF="swarm.defobj.returnable.protocol.html">RETURNABLE</A></P></DIV><DIVCLASS="REFSECT1"><ANAME="AEN7423"></A><H2>Methods</H2><DIVCLASS="REFSECT2"><ANAME="AEN7425"></A><H3>Phase: Using</H3><P></P><UL><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.COLLECTIONS.MAPINDEX.METHOD.PU.M786"></A><P></P>- <BCLASS="FUNCPROTOTYPE">setKey:</B> <VARCLASS="PDPARAM">aKey</VAR> <BR> The setKey: messages repositions the index to an entry having a key value that matches its argument. If there is more than one entry matching this key value, the index is positioned to the first entry that matches.<P></P></DIV></LI><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.COLLECTIONS.MAPINDEX.METHOD.PU.M408"></A><P></P>- <BCLASS="FUNCPROTOTYPE">getKey</B><BR> The getKey message returns the key value associated with the current location of the index. It returns nil if the index is not currently positioned at a member. <P></P></DIV></LI><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.COLLECTIONS.MAPINDEX.METHOD.PU.M585"></A><P></P>- <BCLASS="FUNCPROTOTYPE">next:</B> (id *)<VARCLASS="PDPARAM">key</VAR> <BR> Return the next item and it's key.<P></P></DIV></LI><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.COLLECTIONS.MAPINDEX.METHOD.PU.M605"></A><P></P>- <BCLASS="FUNCPROTOTYPE">prev:</B> (id *)<VARCLASS="PDPARAM">key</VAR> <BR> Return the previous item and it's key.<P></P></DIV></LI><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.COLLECTIONS.MAPINDEX.METHOD.PU.M295"></A><P></P>- <BCLASS="FUNCPROTOTYPE">get:</B> (id *)<VARCLASS="PDPARAM">key</VAR> <BR> Return the current item and it's key.<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.map.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.memberblock.protocol.html">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">Map</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="swarm.collections.sgml.reference.html">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">MemberBlock</TD></TR></TABLE></DIV></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -