📄 java.util.hashtable.html
字号:
<DD><A HREF="java.util.Dictionary.html#put(java.lang.Object, java.lang.Object)">put</A> in class <A HREF="java.util.Dictionary.html">Dictionary</A>
<DT><B>Implements:</B>
<DD><A HREF="java.util.Map.html#put(java.lang.Object, java.lang.Object)">put</A> in interface <A HREF="java.util.Map.html">Map</A>
</DL>
<P> <B>See Also:</B>
<A HREF="java.lang.Object.html#equals(Object)">equals</A>, <A HREF="#get(Object)">get</A></BLOCKQUOTE> <BR>
<TABLE WIDTH=100% CELLSPACING=0 CELLPADDING=1 BORDER=0> <TR> <TD WIDTH=80%>
<BR><H3><A NAME="remove"><FONT COLOR="#FF0000">·</FONT></A>
<A NAME="remove(java.lang.Object)">remove</A> </H3>
</TD> <TD ALIGN=right WIDTH=20%> <FONT SIZE="-2"><A HREF="#_Summary_">Summary</A> | <A HREF=#_top_>Top</A></FONT> </TD> </TR> </TABLE>
<PRE>
public synchronized <A HREF="java.lang.Object.html">Object</A> remove(<A HREF="java.lang.Object.html">Object</A> key) </PRE>
<BLOCKQUOTE>
<DL>
<P>
Removes the key (and its corresponding value) from this hashtable. This method does nothing if the key is not in the hashtable.
<P>
<TABLE WIDTH="87%" BORDER=1 CELLPADDING=3 CELLSPACING=0> <TR VALIGN=TOP BGCOLOR="#CCCCCC"> <TD><B>Parameter</B></TD> <TD><B>Description</B></TD> </TR>
<TR VALIGN=TOP> <TD><I> key</I></TD> <TD>the key that needs to be removed.</TD></TR>
</TABLE><P>
<DT> <B>Returns:</B>
<DD> the value to which the key had been mapped in this hashtable, or <code>null</code> if the key did not have a mapping.
<DT><B>Overrides:</B>
<DD><A HREF="java.util.Dictionary.html#remove(java.lang.Object)">remove</A> in class <A HREF="java.util.Dictionary.html">Dictionary</A>
<DT><B>Implements:</B>
<DD><A HREF="java.util.Map.html#remove(java.lang.Object)">remove</A> in interface <A HREF="java.util.Map.html">Map</A>
</DL>
</BLOCKQUOTE> <BR>
<TABLE WIDTH=100% CELLSPACING=0 CELLPADDING=1 BORDER=0> <TR> <TD WIDTH=80%>
<BR><H3><A NAME="putAll"><FONT COLOR="#FF0000">·</FONT></A>
<A NAME="putAll(java.util.Map)">putAll</A> </H3>
</TD> <TD ALIGN=right WIDTH=20%> <FONT SIZE="-2"><A HREF="#_Summary_">Summary</A> | <A HREF=#_top_>Top</A></FONT> </TD> </TR> </TABLE>
<PRE>
public synchronized void putAll(<A HREF="java.util.Map.html">Map</A> t) </PRE>
<BLOCKQUOTE>
<DL>
<P>
Copies all of the mappings from the specified Map to this Hashtable These mappings will replace any mappings that this Hashtable had for any of the keys currently in the specified Map.
<P>
<DT><B>Implements:</B>
<DD><A HREF="java.util.Map.html#putAll(java.util.Map)">putAll</A> in interface <A HREF="java.util.Map.html">Map</A>
</DL>
</BLOCKQUOTE> <BR>
<TABLE WIDTH=100% CELLSPACING=0 CELLPADDING=1 BORDER=0> <TR> <TD WIDTH=80%>
<BR><H3><A NAME="clear"><FONT COLOR="#FF0000">·</FONT></A>
<A NAME="clear()">clear</A> </H3>
</TD> <TD ALIGN=right WIDTH=20%> <FONT SIZE="-2"><A HREF="#_Summary_">Summary</A> | <A HREF=#_top_>Top</A></FONT> </TD> </TR> </TABLE>
<PRE>
public synchronized void clear() </PRE>
<BLOCKQUOTE>
<DL>
<P>
Clears this hashtable so that it contains no keys.
<P>
<DT><B>Implements:</B>
<DD><A HREF="java.util.Map.html#clear()">clear</A> in interface <A HREF="java.util.Map.html">Map</A>
</DL>
</BLOCKQUOTE> <BR>
<TABLE WIDTH=100% CELLSPACING=0 CELLPADDING=1 BORDER=0> <TR> <TD WIDTH=80%>
<BR><H3><A NAME="clone"><FONT COLOR="#FF0000">·</FONT></A>
<A NAME="clone()">clone</A> </H3>
</TD> <TD ALIGN=right WIDTH=20%> <FONT SIZE="-2"><A HREF="#_Summary_">Summary</A> | <A HREF=#_top_>Top</A></FONT> </TD> </TR> </TABLE>
<PRE>
public synchronized <A HREF="java.lang.Object.html">Object</A> clone() </PRE>
<BLOCKQUOTE>
<DL>
<P>
Creates a shallow copy of this hashtable. All the structure of the hashtable itself is copied, but the keys and values are not cloned. This is a relatively expensive operation.
<P>
<DT> <B>Returns:</B>
<DD> a clone of the hashtable.
<DT><B>Overrides:</B>
<DD><A HREF="java.lang.Object.html#clone()">clone</A> in class <A HREF="java.lang.Object.html">Object</A>
</DL>
</BLOCKQUOTE> <BR>
<TABLE WIDTH=100% CELLSPACING=0 CELLPADDING=1 BORDER=0> <TR> <TD WIDTH=80%>
<BR><H3><A NAME="toString"><FONT COLOR="#FF0000">·</FONT></A>
<A NAME="toString()">toString</A> </H3>
</TD> <TD ALIGN=right WIDTH=20%> <FONT SIZE="-2"><A HREF="#_Summary_">Summary</A> | <A HREF=#_top_>Top</A></FONT> </TD> </TR> </TABLE>
<PRE>
public synchronized <A HREF="java.lang.String.html">String</A> toString() </PRE>
<BLOCKQUOTE>
<DL>
<P>
Returns a string representation of this <tt>Hashtable</tt> object in the form of a set of entries, enclosed in braces and separated by the ASCII characters "<tt>, </tt>" (comma and space). Each entry is rendered as the key, an equals sign <tt>=</tt>, and the associated element, where the <tt>toString</tt> method is used to convert the key and element to strings. <p>Overrides to <tt>toString</tt> method of <tt>Object</tt>.
<P>
<DT> <B>Returns:</B>
<DD> a string representation of this hashtable.
<DT><B>Overrides:</B>
<DD><A HREF="java.lang.Object.html#toString()">toString</A> in class <A HREF="java.lang.Object.html">Object</A>
</DL>
</BLOCKQUOTE> <BR>
<TABLE WIDTH=100% CELLSPACING=0 CELLPADDING=1 BORDER=0> <TR> <TD WIDTH=80%>
<BR><H3><A NAME="keySet"><FONT COLOR="#FF0000">·</FONT></A>
<A NAME="keySet()">keySet</A> </H3>
</TD> <TD ALIGN=right WIDTH=20%> <FONT SIZE="-2"><A HREF="#_Summary_">Summary</A> | <A HREF=#_top_>Top</A></FONT> </TD> </TR> </TABLE>
<PRE>
public <A HREF="java.util.Set.html">Set</A> keySet() </PRE>
<BLOCKQUOTE>
<DL>
<P>
Returns a Set view of the keys contained in this Hashtable. The Set is backed by the Hashtable, so changes to the Hashtable are reflected in the Set, and vice-versa. The Set supports element removal (which removes the corresponding entry from the Hashtable), but not element addition.
<P>
<DT><B>Implements:</B>
<DD><A HREF="java.util.Map.html#keySet()">keySet</A> in interface <A HREF="java.util.Map.html">Map</A>
</DL>
</BLOCKQUOTE> <BR>
<TABLE WIDTH=100% CELLSPACING=0 CELLPADDING=1 BORDER=0> <TR> <TD WIDTH=80%>
<BR><H3><A NAME="entrySet"><FONT COLOR="#FF0000">·</FONT></A>
<A NAME="entrySet()">entrySet</A> </H3>
</TD> <TD ALIGN=right WIDTH=20%> <FONT SIZE="-2"><A HREF="#_Summary_">Summary</A> | <A HREF=#_top_>Top</A></FONT> </TD> </TR> </TABLE>
<PRE>
public <A HREF="java.util.Set.html">Set</A> entrySet() </PRE>
<BLOCKQUOTE>
<DL>
<P>
Returns a Set view of the entries contained in this Hashtable. Each element in this collection is a Map.Entry. The Set is backed by the Hashtable, so changes to the Hashtable are reflected in the Set, and vice-versa. The Set supports element removal (which removes the corresponding entry from the Hashtable), but not element addition.
<P>
<DT><B>Implements:</B>
<DD><A HREF="java.util.Map.html#entrySet()">entrySet</A> in interface <A HREF="java.util.Map.html">Map</A>
</DL>
<P> <B>See Also:</B>
<A HREF="java.util.Map.Entry.html">Map.Entry</A></BLOCKQUOTE> <BR>
<TABLE WIDTH=100% CELLSPACING=0 CELLPADDING=1 BORDER=0> <TR> <TD WIDTH=80%>
<BR><H3><A NAME="values"><FONT COLOR="#FF0000">·</FONT></A>
<A NAME="values()">values</A> </H3>
</TD> <TD ALIGN=right WIDTH=20%> <FONT SIZE="-2"><A HREF="#_Summary_">Summary</A> | <A HREF=#_top_>Top</A></FONT> </TD> </TR> </TABLE>
<PRE>
public <A HREF="java.util.Collection.html">Collection</A> values() </PRE>
<BLOCKQUOTE>
<DL>
<P>
Returns a Collection view of the values contained in this Hashtable. The Collection is backed by the Hashtable, so changes to the Hashtable are reflected in the Collection, and vice-versa. The Collection supports element removal (which removes the corresponding entry from the Hashtable), but not element addition.
<P>
<DT><B>Implements:</B>
<DD><A HREF="java.util.Map.html#values()">values</A> in interface <A HREF="java.util.Map.html">Map</A>
</DL>
</BLOCKQUOTE> <BR>
<TABLE WIDTH=100% CELLSPACING=0 CELLPADDING=1 BORDER=0> <TR> <TD WIDTH=80%>
<BR><H3><A NAME="equals"><FONT COLOR="#FF0000">·</FONT></A>
<A NAME="equals(java.lang.Object)">equals</A> </H3>
</TD> <TD ALIGN=right WIDTH=20%> <FONT SIZE="-2"><A HREF="#_Summary_">Summary</A> | <A HREF=#_top_>Top</A></FONT> </TD> </TR> </TABLE>
<PRE>
public synchronized boolean equals(<A HREF="java.lang.Object.html">Object</A> o) </PRE>
<BLOCKQUOTE>
<DL>
<P>
Compares the specified Object with this Map for equality, as per the definition in the Map interface.
<P>
<DT> <B>Returns:</B>
<DD> true if the specified Object is equal to this Map.
<DT><B>Overrides:</B>
<DD><A HREF="java.lang.Object.html#equals(java.lang.Object)">equals</A> in class <A HREF="java.lang.Object.html">Object</A>
<DT><B>Implements:</B>
<DD><A HREF="java.util.Map.html#equals(java.lang.Object)">equals</A> in interface <A HREF="java.util.Map.html">Map</A>
</DL>
<P> <B>See Also:</B>
<A HREF="java.util.Map.html#equals(Object)">equals</A></BLOCKQUOTE> <BR>
<TABLE WIDTH=100% CELLSPACING=0 CELLPADDING=1 BORDER=0> <TR> <TD WIDTH=80%>
<BR><H3><A NAME="hashCode"><FONT COLOR="#FF0000">·</FONT></A>
<A NAME="hashCode()">hashCode</A> </H3>
</TD> <TD ALIGN=right WIDTH=20%> <FONT SIZE="-2"><A HREF="#_Summary_">Summary</A> | <A HREF=#_top_>Top</A></FONT> </TD> </TR> </TABLE>
<PRE>
public synchronized int hashCode() </PRE>
<BLOCKQUOTE>
<DL>
<P>
Returns the hash code value for this Map as per the definition in the Map interface.
<P>
<DT><B>Overrides:</B>
<DD><A HREF="java.lang.Object.html#hashCode()">hashCode</A> in class <A HREF="java.lang.Object.html">Object</A>
<DT><B>Implements:</B>
<DD><A HREF="java.util.Map.html#hashCode()">hashCode</A> in interface <A HREF="java.util.Map.html">Map</A>
</DL>
<P> <B>See Also:</B>
<A HREF="java.util.Map.html#hashCode()">hashCode</A></BLOCKQUOTE> <BR>
<HR SIZE=1 ALIGN=left WIDTH="98%">
<PRE>
<A HREF="Packages.html">All Packages</A> <A HREF="Package-java.util.html">This Package</A> <A HREF="Tree.html">Class Hierarchy</A> <A HREF="Search.html">Class Search</A> <A HREF="AllNames.html">Index</A>
</PRE>
<FONT FACE="Arial,Helvetica" SIZE=-2>
Freshly brewed Java API Documentation automatically generated with <A HREF="http://www.ualberta.ca/~tgee/polardoc">polardoc</A> Version 1.0.7
<BR>
</FONT>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -