| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd"> |
| <!--NewPage--> |
| <HTML> |
| <HEAD> |
| <!-- Generated by javadoc on Fri Jun 15 16:53:37 PDT 2001 --> |
| <TITLE> |
| Apache Struts API Documentation: Class FastHashMap |
| </TITLE> |
| <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> |
| </HEAD> |
| <BODY BGCOLOR="white"> |
| |
| <!-- ========== START OF NAVBAR ========== --> |
| <A NAME="navbar_top"><!-- --></A> |
| <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"> |
| <TR> |
| <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
| <A NAME="navbar_top_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="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-all.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> |
| </EM> |
| </TD> |
| </TR> |
| |
| <TR> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../org/apache/struts/util/FastArrayList.html"><B>PREV CLASS</B></A> |
| <A HREF="../../../../org/apache/struts/util/FastTreeMap.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="FastHashMap.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD> |
| </TR> |
| <TR> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| SUMMARY: INNER | <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> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <H2> |
| <FONT SIZE="-1"> |
| org.apache.struts.util</FONT> |
| <BR> |
| Class FastHashMap</H2> |
| <PRE> |
| java.lang.Object |
| | |
| +--java.util.AbstractMap |
| | |
| +--java.util.HashMap |
| | |
| +--<B>org.apache.struts.util.FastHashMap</B> |
| </PRE> |
| <DL> |
| <DT><B>All Implemented Interfaces:</B> <DD>java.lang.Cloneable, java.util.Map, java.io.Serializable</DD> |
| </DL> |
| <HR> |
| <B>Deprecated.</B> <I>At some point after Struts 1.0 final, will be replaced by |
| an equivalent class in the Jakarta Commons Collections package.</I> |
| <P> |
| <DL> |
| <DT>public class <B>FastHashMap</B><DT>extends java.util.HashMap</DL> |
| |
| <P> |
| <p>A customized implementation of <code>java.util.HashMap</code> designed |
| to operate in a multithreaded environment where the large majority of |
| method calls are read-only, instead of structural changes. When operating |
| in "fast" mode, read calls are non-synchronized and write calls perform the |
| following steps:</p> |
| <ul> |
| <li>Clone the existing collection |
| <li>Perform the modification on the clone |
| <li>Replace the existing collection with the (modified) clone |
| </ul> |
| <p>When first created, objects of this class default to "slow" mode, where |
| all accesses of any type are synchronized but no cloning takes place. This |
| is appropriate for initially populating the collection, followed by a switch |
| to "fast" mode (by calling <code>setFast(true)</code>) after initialization |
| is complete.</p> |
| |
| <p><strong>NOTE</strong>: If you are creating and accessing a |
| <code>HashMap</code> only within a single thread, you should use |
| <code>java.util.HashMap</code> directly (with no synchronization), for |
| maximum performance.</p> |
| <P> |
| <DL> |
| <DT><B>Version: </B><DD>$Revision: 1.1 $ $Date$</DD> |
| <DT><B>Author: </B><DD>Craig R. McClanahan</DD> |
| <DT><B>See Also: </B><DD><A HREF="../../../../serialized-form.html#org.apache.struts.util.FastHashMap">Serialized Form</A></DL> |
| <HR> |
| |
| <P> |
| <!-- ======== INNER CLASS SUMMARY ======== --> |
| |
| <A NAME="inner_classes_inherited_from_class_java.util.Map"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
| <TD><B>Inner classes inherited from class java.util.Map</B></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE>java.util.Map.Entry</CODE></TD> |
| </TR> |
| </TABLE> |
| |
| <!-- =========== FIELD SUMMARY =========== --> |
| |
| <A NAME="field_summary"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TD COLSPAN=2><FONT SIZE="+2"> |
| <B>Field Summary</B></FONT></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/FastHashMap.html#fast">fast</A></B></CODE> |
| |
| <BR> |
| <B>Deprecated.</B> Are we operating in "fast" mode?</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected java.util.HashMap</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/FastHashMap.html#map">map</A></B></CODE> |
| |
| <BR> |
| <B>Deprecated.</B> The underlying map we are managing.</TD> |
| </TR> |
| </TABLE> |
| <A NAME="fields_inherited_from_class_java.util.HashMap"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
| <TD><B>Fields inherited from class java.util.HashMap</B></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE>count, emptyHashIterator, ENTRIES, entrySet, KEYS, keySet, loadFactor, modCount, serialVersionUID, table, threshold, values, VALUES</CODE></TD> |
| </TR> |
| </TABLE> |
| |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| |
| <A NAME="constructor_summary"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TD COLSPAN=2><FONT SIZE="+2"> |
| <B>Constructor Summary</B></FONT></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/FastHashMap.html#FastHashMap()">FastHashMap</A></B>()</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> Construct a an empty map.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/FastHashMap.html#FastHashMap(int)">FastHashMap</A></B>(int capacity)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> Construct an empty map with the specified capacity.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/FastHashMap.html#FastHashMap(int, float)">FastHashMap</A></B>(int capacity, |
| float factor)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> Construct an empty map with the specified capacity and load factor.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/FastHashMap.html#FastHashMap(java.util.Map)">FastHashMap</A></B>(java.util.Map map)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> Construct a new map with the same mappings as the specified map.</TD> |
| </TR> |
| </TABLE> |
| |
| <!-- ========== METHOD SUMMARY =========== --> |
| |
| <A NAME="method_summary"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TD COLSPAN=2><FONT SIZE="+2"> |
| <B>Method Summary</B></FONT></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/FastHashMap.html#clear()">clear</A></B>()</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> Remove all mappings from this map.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.lang.Object</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/FastHashMap.html#clone()">clone</A></B>()</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> Return a shallow copy of this <code>FastHashMap</code> instance.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/FastHashMap.html#containsKey(java.lang.Object)">containsKey</A></B>(java.lang.Object key)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> Return <code>true</code> if this map contains a mapping for the |
| specified key.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/FastHashMap.html#containsValue(java.lang.Object)">containsValue</A></B>(java.lang.Object value)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> Return <code>true</code> if this map contains one or more keys mapping |
| to the specified value.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.util.Set</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/FastHashMap.html#entrySet()">entrySet</A></B>()</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> Return a collection view of the mappings contained in this map.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/FastHashMap.html#equals(java.lang.Object)">equals</A></B>(java.lang.Object o)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> Compare the specified object with this list for equality.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.lang.Object</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/FastHashMap.html#get(java.lang.Object)">get</A></B>(java.lang.Object key)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> Return the value to which this map maps the specified key.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/FastHashMap.html#getFast()">getFast</A></B>()</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/FastHashMap.html#hashCode()">hashCode</A></B>()</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> Return the hash code value for this map.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/FastHashMap.html#isEmpty()">isEmpty</A></B>()</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> Return <code>true</code> if this map contains no mappings.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.util.Set</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/FastHashMap.html#keySet()">keySet</A></B>()</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> Return a set view of the keys contained in this map.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.lang.Object</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/FastHashMap.html#put(java.lang.Object, java.lang.Object)">put</A></B>(java.lang.Object key, |
| java.lang.Object value)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> Associate the specified value with the specified key in this map.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/FastHashMap.html#putAll(java.util.Map)">putAll</A></B>(java.util.Map in)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> Copy all of the mappings from the specified map to this one, replacing |
| any mappings with the same keys.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.lang.Object</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/FastHashMap.html#remove(java.lang.Object)">remove</A></B>(java.lang.Object key)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> Remove any mapping for this key, and return any previously |
| mapped value.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/FastHashMap.html#setFast(boolean)">setFast</A></B>(boolean fast)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/FastHashMap.html#size()">size</A></B>()</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> Return the number of key-value mappings in this map.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.util.Collection</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/FastHashMap.html#values()">values</A></B>()</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> Return a collection view of the values contained in this map.</TD> |
| </TR> |
| </TABLE> |
| <A NAME="methods_inherited_from_class_java.util.HashMap"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
| <TD><B>Methods inherited from class java.util.HashMap</B></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><clinit>, capacity, getHashIterator, loadFactor, readObject, rehash, writeObject</CODE></TD> |
| </TR> |
| </TABLE> |
| <A NAME="methods_inherited_from_class_java.util.AbstractMap"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
| <TD><B>Methods inherited from class java.util.AbstractMap</B></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE>toString</CODE></TD> |
| </TR> |
| </TABLE> |
| <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
| <TD><B>Methods inherited from class java.lang.Object</B></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE>finalize, getClass, notify, notifyAll, registerNatives, wait, wait, wait</CODE></TD> |
| </TR> |
| </TABLE> |
| |
| <P> |
| |
| <!-- ============ FIELD DETAIL =========== --> |
| |
| <A NAME="field_detail"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TD COLSPAN=1><FONT SIZE="+2"> |
| <B>Field Detail</B></FONT></TD> |
| </TR> |
| </TABLE> |
| |
| <A NAME="map"><!-- --></A><H3> |
| map</H3> |
| <PRE> |
| protected java.util.HashMap <B>map</B></PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <DD>The underlying map we are managing.</DL> |
| <HR> |
| |
| <A NAME="fast"><!-- --></A><H3> |
| fast</H3> |
| <PRE> |
| protected boolean <B>fast</B></PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <DD>Are we operating in "fast" mode?</DL> |
| |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| |
| <A NAME="constructor_detail"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TD COLSPAN=1><FONT SIZE="+2"> |
| <B>Constructor Detail</B></FONT></TD> |
| </TR> |
| </TABLE> |
| |
| <A NAME="FastHashMap()"><!-- --></A><H3> |
| FastHashMap</H3> |
| <PRE> |
| public <B>FastHashMap</B>()</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <DD>Construct a an empty map.</DL> |
| <HR> |
| |
| <A NAME="FastHashMap(int)"><!-- --></A><H3> |
| FastHashMap</H3> |
| <PRE> |
| public <B>FastHashMap</B>(int capacity)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <DD>Construct an empty map with the specified capacity.<DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>capacity</CODE> - The initial capacity of the empty map</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="FastHashMap(int, float)"><!-- --></A><H3> |
| FastHashMap</H3> |
| <PRE> |
| public <B>FastHashMap</B>(int capacity, |
| float factor)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <DD>Construct an empty map with the specified capacity and load factor.<DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>capacity</CODE> - The initial capacity of the empty map<DD><CODE>factor</CODE> - The load factor of the new map</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="FastHashMap(java.util.Map)"><!-- --></A><H3> |
| FastHashMap</H3> |
| <PRE> |
| public <B>FastHashMap</B>(java.util.Map map)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <DD>Construct a new map with the same mappings as the specified map.<DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>map</CODE> - The map whose mappings are to be copied</DL> |
| </DD> |
| </DL> |
| |
| <!-- ============ METHOD DETAIL ========== --> |
| |
| <A NAME="method_detail"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TD COLSPAN=1><FONT SIZE="+2"> |
| <B>Method Detail</B></FONT></TD> |
| </TR> |
| </TABLE> |
| |
| <A NAME="getFast()"><!-- --></A><H3> |
| getFast</H3> |
| <PRE> |
| public boolean <B>getFast</B>()</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> </DL> |
| <HR> |
| |
| <A NAME="setFast(boolean)"><!-- --></A><H3> |
| setFast</H3> |
| <PRE> |
| public void <B>setFast</B>(boolean fast)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> </DL> |
| <HR> |
| |
| <A NAME="clear()"><!-- --></A><H3> |
| clear</H3> |
| <PRE> |
| public void <B>clear</B>()</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <DD>Remove all mappings from this map.<DD><DL> |
| <DT><B>Overrides:</B><DD><CODE>clear</CODE> in class <CODE>java.util.HashMap</CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="clone()"><!-- --></A><H3> |
| clone</H3> |
| <PRE> |
| public java.lang.Object <B>clone</B>()</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <DD>Return a shallow copy of this <code>FastHashMap</code> instance. |
| The keys and values themselves are not copied.<DD><DL> |
| <DT><B>Overrides:</B><DD><CODE>clone</CODE> in class <CODE>java.util.HashMap</CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="containsKey(java.lang.Object)"><!-- --></A><H3> |
| containsKey</H3> |
| <PRE> |
| public boolean <B>containsKey</B>(java.lang.Object key)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <DD>Return <code>true</code> if this map contains a mapping for the |
| specified key.<DD><DL> |
| <DT><B>Overrides:</B><DD><CODE>containsKey</CODE> in class <CODE>java.util.HashMap</CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>key</CODE> - Key to be searched for</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="containsValue(java.lang.Object)"><!-- --></A><H3> |
| containsValue</H3> |
| <PRE> |
| public boolean <B>containsValue</B>(java.lang.Object value)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <DD>Return <code>true</code> if this map contains one or more keys mapping |
| to the specified value.<DD><DL> |
| <DT><B>Overrides:</B><DD><CODE>containsValue</CODE> in class <CODE>java.util.HashMap</CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>value</CODE> - Value to be searched for</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="entrySet()"><!-- --></A><H3> |
| entrySet</H3> |
| <PRE> |
| public java.util.Set <B>entrySet</B>()</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <DD>Return a collection view of the mappings contained in this map. Each |
| element in the returned collection is a <code>Map.Entry</code>.<DD><DL> |
| <DT><B>Overrides:</B><DD><CODE>entrySet</CODE> in class <CODE>java.util.HashMap</CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="equals(java.lang.Object)"><!-- --></A><H3> |
| equals</H3> |
| <PRE> |
| public boolean <B>equals</B>(java.lang.Object o)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <DD>Compare the specified object with this list for equality. This |
| implementation uses exactly the code that is used to define the |
| list equals function in the documentation for the |
| <code>Map.equals</code> method.<DD><DL> |
| <DT><B>Overrides:</B><DD><CODE>equals</CODE> in class <CODE>java.util.AbstractMap</CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>o</CODE> - Object to be compared to this list</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="get(java.lang.Object)"><!-- --></A><H3> |
| get</H3> |
| <PRE> |
| public java.lang.Object <B>get</B>(java.lang.Object key)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <DD>Return the value to which this map maps the specified key. Returns |
| <code>null</code> if the map contains no mapping for this key, or if |
| there is a mapping with a value of <code>null</code>. Use the |
| <code>containsKey()</code> method to disambiguate these cases.<DD><DL> |
| <DT><B>Overrides:</B><DD><CODE>get</CODE> in class <CODE>java.util.HashMap</CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>key</CODE> - Key whose value is to be returned</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="hashCode()"><!-- --></A><H3> |
| hashCode</H3> |
| <PRE> |
| public int <B>hashCode</B>()</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <DD>Return the hash code value for this map. This implementation uses |
| exactly the code that is used to define the list hash function in the |
| documentation for the <code>Map.hashCode</code> method.<DD><DL> |
| <DT><B>Overrides:</B><DD><CODE>hashCode</CODE> in class <CODE>java.util.AbstractMap</CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="isEmpty()"><!-- --></A><H3> |
| isEmpty</H3> |
| <PRE> |
| public boolean <B>isEmpty</B>()</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <DD>Return <code>true</code> if this map contains no mappings.<DD><DL> |
| <DT><B>Overrides:</B><DD><CODE>isEmpty</CODE> in class <CODE>java.util.HashMap</CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="keySet()"><!-- --></A><H3> |
| keySet</H3> |
| <PRE> |
| public java.util.Set <B>keySet</B>()</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <DD>Return a set view of the keys contained in this map.<DD><DL> |
| <DT><B>Overrides:</B><DD><CODE>keySet</CODE> in class <CODE>java.util.HashMap</CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="put(java.lang.Object, java.lang.Object)"><!-- --></A><H3> |
| put</H3> |
| <PRE> |
| public java.lang.Object <B>put</B>(java.lang.Object key, |
| java.lang.Object value)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <DD>Associate 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 and returned.<DD><DL> |
| <DT><B>Overrides:</B><DD><CODE>put</CODE> in class <CODE>java.util.HashMap</CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>key</CODE> - The key with which the value is to be associated<DD><CODE>value</CODE> - The value to be associated with this key</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="putAll(java.util.Map)"><!-- --></A><H3> |
| putAll</H3> |
| <PRE> |
| public void <B>putAll</B>(java.util.Map in)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <DD>Copy all of the mappings from the specified map to this one, replacing |
| any mappings with the same keys.<DD><DL> |
| <DT><B>Overrides:</B><DD><CODE>putAll</CODE> in class <CODE>java.util.HashMap</CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>in</CODE> - Map whose mappings are to be copied</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="remove(java.lang.Object)"><!-- --></A><H3> |
| remove</H3> |
| <PRE> |
| public java.lang.Object <B>remove</B>(java.lang.Object key)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <DD>Remove any mapping for this key, and return any previously |
| mapped value.<DD><DL> |
| <DT><B>Overrides:</B><DD><CODE>remove</CODE> in class <CODE>java.util.HashMap</CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>key</CODE> - Key whose mapping is to be removed</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="size()"><!-- --></A><H3> |
| size</H3> |
| <PRE> |
| public int <B>size</B>()</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <DD>Return the number of key-value mappings in this map.<DD><DL> |
| <DT><B>Overrides:</B><DD><CODE>size</CODE> in class <CODE>java.util.HashMap</CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="values()"><!-- --></A><H3> |
| values</H3> |
| <PRE> |
| public java.util.Collection <B>values</B>()</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <DD>Return a collection view of the values contained in this map.<DD><DL> |
| <DT><B>Overrides:</B><DD><CODE>values</CODE> in class <CODE>java.util.HashMap</CODE></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="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-all.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> |
| </EM> |
| </TD> |
| </TR> |
| |
| <TR> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../org/apache/struts/util/FastArrayList.html"><B>PREV CLASS</B></A> |
| <A HREF="../../../../org/apache/struts/util/FastTreeMap.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="FastHashMap.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD> |
| </TR> |
| <TR> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| SUMMARY: INNER | <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> |
| Copyright © 2000-2001 - Apache Software Foundation |
| </BODY> |
| </HTML> |