Code example for Hashtable

Methods: clear

0
 
        public void removeAllElements() 
        { 
                m_intToString.removeAllElements(); 
                if (m_stringToInt != null) 
                        m_stringToInt.clear();
        } 
 
        /** @return string whose value is uniquely identified by this integer index. 
         * @throws java.lang.ArrayIndexOutOfBoundsException 
         *  if index doesn't map to a string. 
         * */ 
        public String indexToString(int i)
        throws java.lang.ArrayIndexOutOfBoundsException 
        { 
                return(String) m_intToString.elementAt(i);
        } 
 
        /** @return integer index uniquely identifying the value of this string. */ 
        public int stringToIndex(String s)
        {