📄 attributes.html
字号:
<DL><DD>Removes the attribute with the specified name (key) from this Map. Returns the previous attribute value, or null if none.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../java/util/Map.html#remove(java.lang.Object)">remove</A></CODE> in interface <CODE><A HREF="../../../java/util/Map.html">Map</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - attribute name<DT><B>Returns:</B><DD>the previous value of the attribute, or null if none</DL></DD></DL><HR><A NAME="containsValue(java.lang.Object)"><!-- --></A><H3>containsValue</H3><PRE>public boolean <B>containsValue</B>(<A HREF="../../../java/lang/Object.html">Object</A> value)</PRE><DL><DD>Returns true if this Map maps one or more attribute names (keys) to the specified value.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../java/util/Map.html#containsValue(java.lang.Object)">containsValue</A></CODE> in interface <CODE><A HREF="../../../java/util/Map.html">Map</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - the attribute value<DT><B>Returns:</B><DD>true if this Map maps one or more attribute names to the specified value</DL></DD></DL><HR><A NAME="containsKey(java.lang.Object)"><!-- --></A><H3>containsKey</H3><PRE>public boolean <B>containsKey</B>(<A HREF="../../../java/lang/Object.html">Object</A> name)</PRE><DL><DD>Returns true if this Map contains the specified attribute name (key).<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../java/util/Map.html#containsKey(java.lang.Object)">containsKey</A></CODE> in interface <CODE><A HREF="../../../java/util/Map.html">Map</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the attribute name<DT><B>Returns:</B><DD>true if this Map contains the specified attribute name</DL></DD></DL><HR><A NAME="putAll(java.util.Map)"><!-- --></A><H3>putAll</H3><PRE>public void <B>putAll</B>(<A HREF="../../../java/util/Map.html">Map</A> attr)</PRE><DL><DD>Copies all of the attribute name-value mappings from the specified Attributes to this Map. Duplicate mappings will be replaced.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../java/util/Map.html#putAll(java.util.Map)">putAll</A></CODE> in interface <CODE><A HREF="../../../java/util/Map.html">Map</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>attr</CODE> - the Attributes to be stored in this map<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/ClassCastException.html">ClassCastException</A></CODE> - if attr is not an Attributes</DL></DD></DL><HR><A NAME="clear()"><!-- --></A><H3>clear</H3><PRE>public void <B>clear</B>()</PRE><DL><DD>Removes all attributes from this Map.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../java/util/Map.html#clear()">clear</A></CODE> in interface <CODE><A HREF="../../../java/util/Map.html">Map</A></CODE></DL></DD><DD>Following copied from interface: <CODE>java.util.Map</CODE></DD><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/UnsupportedOperationException.html">UnsupportedOperationException</A></CODE> - clear is not supported by this map.</DL></DD></DL><HR><A NAME="size()"><!-- --></A><H3>size</H3><PRE>public int <B>size</B>()</PRE><DL><DD>Returns the number of attributes in this Map.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../java/util/Map.html#size()">size</A></CODE> in interface <CODE><A HREF="../../../java/util/Map.html">Map</A></CODE></DL></DD><DD>Following copied from interface: <CODE>java.util.Map</CODE></DD><DD><DL><DT><B>Returns:</B><DD>the number of key-value mappings in this map.</DL></DD></DL><HR><A NAME="isEmpty()"><!-- --></A><H3>isEmpty</H3><PRE>public boolean <B>isEmpty</B>()</PRE><DL><DD>Returns true if this Map contains no attributes.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../java/util/Map.html#isEmpty()">isEmpty</A></CODE> in interface <CODE><A HREF="../../../java/util/Map.html">Map</A></CODE></DL></DD><DD>Following copied from interface: <CODE>java.util.Map</CODE></DD><DD><DL><DT><B>Returns:</B><DD><tt>true</tt> if this map contains no key-value mappings.</DL></DD></DL><HR><A NAME="keySet()"><!-- --></A><H3>keySet</H3><PRE>public <A HREF="../../../java/util/Set.html">Set</A> <B>keySet</B>()</PRE><DL><DD>Returns a Set view of the attribute names (keys) contained in this Map.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../java/util/Map.html#keySet()">keySet</A></CODE> in interface <CODE><A HREF="../../../java/util/Map.html">Map</A></CODE></DL></DD><DD>Following copied from interface: <CODE>java.util.Map</CODE></DD><DD><DL><DT><B>Returns:</B><DD>a set view of the keys contained in this map.</DL></DD></DL><HR><A NAME="values()"><!-- --></A><H3>values</H3><PRE>public <A HREF="../../../java/util/Collection.html">Collection</A> <B>values</B>()</PRE><DL><DD>Returns a Collection view of the attribute values contained in this Map.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../java/util/Map.html#values()">values</A></CODE> in interface <CODE><A HREF="../../../java/util/Map.html">Map</A></CODE></DL></DD><DD>Following copied from interface: <CODE>java.util.Map</CODE></DD><DD><DL><DT><B>Returns:</B><DD>a collection view of the values contained in this map.</DL></DD></DL><HR><A NAME="entrySet()"><!-- --></A><H3>entrySet</H3><PRE>public <A HREF="../../../java/util/Set.html">Set</A> <B>entrySet</B>()</PRE><DL><DD>Returns a Collection view of the attribute name-value mappings contained in this Map.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../java/util/Map.html#entrySet()">entrySet</A></CODE> in interface <CODE><A HREF="../../../java/util/Map.html">Map</A></CODE></DL></DD><DD>Following copied from interface: <CODE>java.util.Map</CODE></DD><DD><DL><DT><B>Returns:</B><DD>a set view of the mappings contained in this map.</DL></DD></DL><HR><A NAME="equals(java.lang.Object)"><!-- --></A><H3>equals</H3><PRE>public boolean <B>equals</B>(<A HREF="../../../java/lang/Object.html">Object</A> o)</PRE><DL><DD>Compares the specified Attributes object with this Map for equality. Returns true if the given object is also an instance of Attributes and the two Attributes objects represent the same mappings.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../java/util/Map.html#equals(java.lang.Object)">equals</A></CODE> in interface <CODE><A HREF="../../../java/util/Map.html">Map</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../java/lang/Object.html#equals(java.lang.Object)">equals</A></CODE> in class <CODE><A HREF="../../../java/lang/Object.html">Object</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>o</CODE> - the Object to be compared<DT><B>Returns:</B><DD>true if the specified Object is equal to this Map</DL></DD></DL><HR><A NAME="hashCode()"><!-- --></A><H3>hashCode</H3><PRE>public int <B>hashCode</B>()</PRE><DL><DD>Returns the hash code value for this Map.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../java/util/Map.html#hashCode()">hashCode</A></CODE> in interface <CODE><A HREF="../../../java/util/Map.html">Map</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../java/lang/Object.html#hashCode()">hashCode</A></CODE> in class <CODE><A HREF="../../../java/lang/Object.html">Object</A></CODE></DL></DD><DD>Following copied from interface: <CODE>java.util.Map</CODE></DD><DD><DL><DT><B>Returns:</B><DD>the hash code value for this map.<DT><B>See Also: </B><DD><A HREF="../../../java/util/Map.Entry.html#hashCode()"><CODE>Map.Entry.hashCode()</CODE></A>, <A HREF="../../../java/lang/Object.html#hashCode()"><CODE>Object.hashCode()</CODE></A>, <A HREF="../../../java/lang/Object.html#equals(java.lang.Object)"><CODE>Object.equals(Object)</CODE></A>, <A HREF="../../../java/util/Map.html#equals(java.lang.Object)"><CODE>Map.equals(Object)</CODE></A></DL></DD></DL><HR><A NAME="clone()"><!-- --></A><H3>clone</H3><PRE>public <A HREF="../../../java/lang/Object.html">Object</A> <B>clone</B>()</PRE><DL><DD>Returns a copy of the Attributes, implemented as follows: <pre> public Object clone() { return new Attributes(this); } </pre> Since the attribute names and values are themselves immutable, the Attributes returned can be safely modified without affecting the original.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../java/lang/Object.html#clone()">clone</A></CODE> in class <CODE><A HREF="../../../java/lang/Object.html">Object</A></CODE></DL></DD><DD>Following copied from class: <CODE>java.lang.Object</CODE></DD><DD><DL><DT><B>Returns:</B><DD>a clone of this instance.<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/CloneNotSupportedException.html">CloneNotSupportedException</A></CODE> - if the object's class does not support the <code>Cloneable</code> interface. Subclasses that override the <code>clone</code> method can also throw this exception to indicate that an instance cannot be cloned.<DD><CODE><A HREF="../../../java/lang/OutOfMemoryError.html">OutOfMemoryError</A></CODE> - if there is not enough memory.<DT><B>See Also: </B><DD><A HREF="../../../java/lang/Cloneable.html"><CODE>Cloneable</CODE></A></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_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 CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Attributes.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Std. Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV CLASS <A HREF="../../../java/util/jar/Attributes.Name.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> <A HREF="Attributes.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: <A HREF="#inner_class_summary">INNER</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><font size="-1"><a href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug or feature</a><br>For further API reference and developer documentation, see <a href="http://java.sun.com/products/jdk/1.3/devdocs-vs-specs.html">Java 2 SDK SE Developer Documentation</a>. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. <p>Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.<br>Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road<br>Palo Alto, California, 94303, U.S.A. All Rights Reserved.</font></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -