| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
| <!--NewPage-->
|
| <HTML>
|
| <HEAD>
|
| <!-- Generated by javadoc on Thu Nov 22 17:12:56 EST 2007 -->
|
| <TITLE>
|
| Xalan-Java 2.7.1: Class Hashtable
|
| </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="class-use/Hashtable.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-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/xalan/xsltc/runtime/ErrorMessages_zh_TW.html"><B>PREV CLASS</B></A>
|
| <A HREF="../../../../../org/apache/xalan/xsltc/runtime/MessageHandler.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="Hashtable.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
|
| </TR>
|
| <TR>
|
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
| SUMMARY: INNER | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
| DETAIL: FIELD | <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.xalan.xsltc.runtime</FONT>
|
| <BR>
|
| Class Hashtable</H2>
|
| <PRE>
|
| java.lang.Object
|
| |
|
| +--<B>org.apache.xalan.xsltc.runtime.Hashtable</B>
|
| </PRE>
|
| <HR>
|
| <DL>
|
| <DT>public class <B>Hashtable</B><DT>extends java.lang.Object</DL>
|
|
|
| <P>
|
| The main hash-table implementation
|
| <P>
|
| <HR>
|
|
|
| <P>
|
| <!-- ======== INNER CLASS SUMMARY ======== -->
|
|
|
|
|
| <!-- =========== FIELD SUMMARY =========== -->
|
|
|
|
|
| <!-- ======== 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/xalan/xsltc/runtime/Hashtable.html#Hashtable()">Hashtable</A></B>()</CODE>
|
|
|
| <BR>
|
| Constructs a new, empty hashtable with a default capacity and load |
| factor.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD><CODE><B><A HREF="../../../../../org/apache/xalan/xsltc/runtime/Hashtable.html#Hashtable(int)">Hashtable</A></B>(int initialCapacity)</CODE>
|
|
|
| <BR>
|
| Constructs a new, empty hashtable with the specified initial capacity |
| and default load factor.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD><CODE><B><A HREF="../../../../../org/apache/xalan/xsltc/runtime/Hashtable.html#Hashtable(int, float)">Hashtable</A></B>(int initialCapacity, |
| float loadFactor)</CODE>
|
|
|
| <BR>
|
| Constructs a new, empty hashtable with the specified initial |
| capacity and the specified load factor.</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/xalan/xsltc/runtime/Hashtable.html#clear()">clear</A></B>()</CODE>
|
|
|
| <BR>
|
| Clears this hashtable so that it contains no keys.</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/xalan/xsltc/runtime/Hashtable.html#contains(java.lang.Object)">contains</A></B>(java.lang.Object value)</CODE>
|
|
|
| <BR>
|
| Tests if some key maps into the specified value in this hashtable.</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/xalan/xsltc/runtime/Hashtable.html#containsKey(java.lang.Object)">containsKey</A></B>(java.lang.Object key)</CODE>
|
|
|
| <BR>
|
| Tests if the specified object is a key in this hashtable.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> java.util.Enumeration</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../../org/apache/xalan/xsltc/runtime/Hashtable.html#elements()">elements</A></B>()</CODE>
|
|
|
| <BR>
|
| Returns an enumeration of the values in this hashtable.</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/xalan/xsltc/runtime/Hashtable.html#get(java.lang.Object)">get</A></B>(java.lang.Object key)</CODE>
|
|
|
| <BR>
|
| Returns the value to which the specified key is mapped in this hashtable.</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/xalan/xsltc/runtime/Hashtable.html#isEmpty()">isEmpty</A></B>()</CODE>
|
|
|
| <BR>
|
| Tests if this hashtable maps no keys to values.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> java.util.Enumeration</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../../org/apache/xalan/xsltc/runtime/Hashtable.html#keys()">keys</A></B>()</CODE>
|
|
|
| <BR>
|
| Returns an enumeration of the keys in this hashtable.</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/xalan/xsltc/runtime/Hashtable.html#put(java.lang.Object, java.lang.Object)">put</A></B>(java.lang.Object key, |
| java.lang.Object value)</CODE>
|
|
|
| <BR>
|
| Maps the specified <code>key</code> to the specified |
| <code>value</code> in this hashtable.</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/xalan/xsltc/runtime/Hashtable.html#remove(java.lang.Object)">remove</A></B>(java.lang.Object key)</CODE>
|
|
|
| <BR>
|
| Removes the key (and its corresponding value) from this |
| hashtable.</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/xalan/xsltc/runtime/Hashtable.html#size()">size</A></B>()</CODE>
|
|
|
| <BR>
|
| Returns the number of keys in this hashtable.</TD>
|
| </TR>
|
| <TR BGCOLOR="white" CLASS="TableRowColor">
|
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
| <CODE> java.lang.String</CODE></FONT></TD>
|
| <TD><CODE><B><A HREF="../../../../../org/apache/xalan/xsltc/runtime/Hashtable.html#toString()">toString</A></B>()</CODE>
|
|
|
| <BR>
|
| Returns a rather long string representation of this hashtable.</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>equals,
|
| getClass,
|
| hashCode,
|
| notify,
|
| notifyAll,
|
| wait,
|
| wait,
|
| wait</CODE></TD>
|
| </TR>
|
| </TABLE>
|
|
|
| <P>
|
|
|
| <!-- ============ FIELD DETAIL =========== -->
|
|
|
|
|
| <!-- ========= 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="Hashtable(int, float)"><!-- --></A><H3>
|
| Hashtable</H3>
|
| <PRE>
|
| public <B>Hashtable</B>(int initialCapacity, |
| float loadFactor)</PRE>
|
| <DL>
|
| <DD>Constructs a new, empty hashtable with the specified initial |
| capacity and the specified load factor.</DL>
|
| <HR>
|
|
|
| <A NAME="Hashtable(int)"><!-- --></A><H3>
|
| Hashtable</H3>
|
| <PRE>
|
| public <B>Hashtable</B>(int initialCapacity)</PRE>
|
| <DL>
|
| <DD>Constructs a new, empty hashtable with the specified initial capacity |
| and default load factor.</DL>
|
| <HR>
|
|
|
| <A NAME="Hashtable()"><!-- --></A><H3>
|
| Hashtable</H3>
|
| <PRE>
|
| public <B>Hashtable</B>()</PRE>
|
| <DL>
|
| <DD>Constructs a new, empty hashtable with a default capacity and load |
| factor.</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="size()"><!-- --></A><H3>
|
| size</H3>
|
| <PRE>
|
| public int <B>size</B>()</PRE>
|
| <DL>
|
| <DD>Returns the number of keys in this hashtable.</DL>
|
| <HR>
|
|
|
| <A NAME="isEmpty()"><!-- --></A><H3>
|
| isEmpty</H3>
|
| <PRE>
|
| public boolean <B>isEmpty</B>()</PRE>
|
| <DL>
|
| <DD>Tests if this hashtable maps no keys to values.</DL>
|
| <HR>
|
|
|
| <A NAME="keys()"><!-- --></A><H3>
|
| keys</H3>
|
| <PRE>
|
| public java.util.Enumeration <B>keys</B>()</PRE>
|
| <DL>
|
| <DD>Returns an enumeration of the keys in this hashtable.</DL>
|
| <HR>
|
|
|
| <A NAME="elements()"><!-- --></A><H3>
|
| elements</H3>
|
| <PRE>
|
| public java.util.Enumeration <B>elements</B>()</PRE>
|
| <DL>
|
| <DD>Returns an enumeration of the values in this hashtable. |
| Use the Enumeration methods on the returned object to fetch the elements |
| sequentially.</DL>
|
| <HR>
|
|
|
| <A NAME="contains(java.lang.Object)"><!-- --></A><H3>
|
| contains</H3>
|
| <PRE>
|
| public boolean <B>contains</B>(java.lang.Object value)</PRE>
|
| <DL>
|
| <DD>Tests if some key maps into the specified value in this hashtable. |
| This operation is more expensive than the <code>containsKey</code> |
| method.</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>Tests if the specified object is a key in this hashtable.</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>Returns the value to which the specified key is mapped in this hashtable.</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>Maps the specified <code>key</code> to the specified |
| <code>value</code> in this hashtable. Neither the key nor the |
| value can be <code>null</code>. |
| <p> |
| The value can be retrieved by calling the <code>get</code> method |
| with a key that is equal to the original key.</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>Removes the key (and its corresponding value) from this |
| hashtable. This method does nothing if the key is not in the hashtable.</DL>
|
| <HR>
|
|
|
| <A NAME="clear()"><!-- --></A><H3>
|
| clear</H3>
|
| <PRE>
|
| public void <B>clear</B>()</PRE>
|
| <DL>
|
| <DD>Clears this hashtable so that it contains no keys.</DL>
|
| <HR>
|
|
|
| <A NAME="toString()"><!-- --></A><H3>
|
| toString</H3>
|
| <PRE>
|
| public java.lang.String <B>toString</B>()</PRE>
|
| <DL>
|
| <DD>Returns a rather long string representation of this hashtable. |
| Handy for debugging - leave it here!!!<DD><DL>
|
| <DT><B>Overrides:</B><DD>toString in class java.lang.Object</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/Hashtable.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-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/xalan/xsltc/runtime/ErrorMessages_zh_TW.html"><B>PREV CLASS</B></A>
|
| <A HREF="../../../../../org/apache/xalan/xsltc/runtime/MessageHandler.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="Hashtable.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
|
| </TR>
|
| <TR>
|
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
| SUMMARY: INNER | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
| DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
| </TR>
|
| </TABLE>
|
| <!-- =========== END OF NAVBAR =========== -->
|
|
|
| <HR>
|
| Copyright © 2006 Apache XML Project. All Rights Reserved.
|
| </BODY>
|
| </HTML>
|