map.html

来自「维信SDK文档。源码要求为至少5个C或Java源码」· HTML 代码 · 共 492 行 · 第 1/2 页

HTML
492
字号
</TABLE><A NAME="Map()"><!-- --></A><H3>Map</H3><PRE>       <B>Map</B>()</PRE><DL><DD>Constructs a new Map instance.<P></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="size()"><!-- --></A><H3>size</H3><PRE>       int <B>size</B>()</PRE><DL><DD>Returns the number of key-value mappings in this map.<P><DD><DL><DT><B>Returns:</B><DD>the number of key-value mappings in this map.</DL></DD></DL><HR><A NAME="clear()"><!-- --></A><H3>clear</H3><PRE>       void <B>clear</B>()</PRE><DL><DD>Removes all mappings from this map.<P><DD><DL></DL></DD></DL><HR><A NAME="put(Object, Object)"><!-- --></A><H3>put</H3><PRE>       <A HREF="../../widsets/api/Map.html" title="class in ">Map</A> <B>put</B>(<A HREF="../../widsets/api/Object.html" title="class in ">Object</A>&nbsp;key,               <A HREF="../../widsets/api/Object.html" title="class in ">Object</A>&nbsp;value)</PRE><DL><DD>Associates the specified value with the specified key in this map. If the map previously contained a mapping for this key, the old value is replaced by the specified value.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>key</CODE> - key with which the specified value is to be associated.<DD><CODE>value</CODE> - value to be associated with the specified key.<DT><B>Returns:</B><DD>this <code>Map</code> instance.</DL></DD></DL><HR><A NAME="remove(Object)"><!-- --></A><H3>remove</H3><PRE>       <A HREF="../../widsets/api/Object.html" title="class in ">Object</A> <B>remove</B>(<A HREF="../../widsets/api/Object.html" title="class in ">Object</A>&nbsp;key)</PRE><DL><DD>Removes the mapping for this key from this map if it is present. <p>Returns the value to which the map previously associated the key, or <tt>null</tt> if the map contained no mapping for this key.  The map will not contain a mapping for the specified  key once the call returns.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>key</CODE> - key whose mapping is to be removed from the map.<DT><B>Returns:</B><DD>previous value associated with specified key, or <tt>null</tt>               if there was no mapping for key.</DL></DD></DL><HR><A NAME="containsKey(Object)"><!-- --></A><H3>containsKey</H3><PRE>       boolean <B>containsKey</B>(<A HREF="../../widsets/api/Object.html" title="class in ">Object</A>&nbsp;key)</PRE><DL><DD>Returns <tt>true</tt> if this map contains a mapping for the specified key.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>key</CODE> - key whose presence in this map is to be tested.<DT><B>Returns:</B><DD><tt>true</tt> if this map contains a mapping for the specified         key.</DL></DD></DL><HR><A NAME="containsValue(Object)"><!-- --></A><H3>containsValue</H3><PRE>       boolean <B>containsValue</B>(<A HREF="../../widsets/api/Object.html" title="class in ">Object</A>&nbsp;value)</PRE><DL><DD>Returns <tt>true</tt> if this map maps one or more keys to the specified value.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - value whose presence in this map is to be tested.<DT><B>Returns:</B><DD><tt>true</tt> if this map maps one or more keys to the         specified value.</DL></DD></DL><HR><A NAME="keys()"><!-- --></A><H3>keys</H3><PRE>       <A HREF="../../widsets/api/List.html" title="class in ">List</A> <B>keys</B>()</PRE><DL><DD>Returns a list containing all the keys on this map. Order of keys on list is unspecified.<P><DD><DL><DT><B>Returns:</B><DD>List containing all the keys on this Map</DL></DD></DL><HR><A NAME="values()"><!-- --></A><H3>values</H3><PRE>       <A HREF="../../widsets/api/List.html" title="class in ">List</A> <B>values</B>()</PRE><DL><DD>Returns a list containing all the values on this map. Order of values on list is unspecified.<P><DD><DL><DT><B>Returns:</B><DD>List containing all the values on this Map</DL></DD></DL><HR><A NAME="operator_get(Object)"><!-- --></A><H3>operator_get</H3><PRE>       <A HREF="../../widsets/api/Object.html" title="class in ">Object</A> <B>operator_get</B>(<A HREF="../../widsets/api/Object.html" title="class in ">Object</A>&nbsp;key)</PRE><DL><DD>Operator to return the value to which this map maps the specified key.   Returns <tt>null</tt> if the map contains no mapping for this key.  <p> <code>Map map = ...;<br>String s = map["name"];</code><P><DD><DL><DT><B>Parameters:</B><DD><CODE>key</CODE> - key whose associated value is to be returned.<DT><B>Returns:</B><DD>the value to which this map maps the specified key, or               <tt>null</tt> if the map contains no mapping for this key.<DT><B>See Also:</B><DD><a href="package-summary.html#operator_get">get</a></DL></DD></DL><HR><A NAME="operator_set(Object, Object)"><!-- --></A><H3>operator_set</H3><PRE>       <A HREF="../../widsets/api/Object.html" title="class in ">Object</A> <B>operator_set</B>(<A HREF="../../widsets/api/Object.html" title="class in ">Object</A>&nbsp;key,                           <A HREF="../../widsets/api/Object.html" title="class in ">Object</A>&nbsp;value)</PRE><DL><DD>Associates the specified value with the specified key in this map. If the map previously contained a mapping for this key, the old value is replaced by the specified value.   <p> <code>Map map = ...;<br>map["city"] = "Rome";</code><P><DD><DL><DT><B>Parameters:</B><DD><CODE>key</CODE> - key with which the specified value is to be associated.<DD><CODE>value</CODE> - value to be associated with the specified key.<DT><B>Returns:</B><DD>the associated value<DT><B>See Also:</B><DD><a href="package-summary.html#operator_set">set</a></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="../../widsets/api/package-summary.html"><FONT CLASS="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 CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../help-doc.html"><FONT CLASS="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="../../widsets/api/List.html" title="class in "><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../widsets/api/Menu.html" title="class in "><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../index.html?widsets/api/Map.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="Map.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>

⌨️ 快捷键说明

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