java.util
Class Hashtable
java.lang.Object
java.util.Dictionary
java.util.Hashtable
- All Implemented Interfaces:
- Cloneable, Map, Serializable
- Direct Known Subclasses:
- Properties
- public class Hashtable
- extends Dictionary
- implements Map, Cloneable, Serializable
count
private transient int count
threshold
private int threshold
table
private transient Hashtable.Entry[] table
emptyEnumerator
private static Enumeration emptyEnumerator
loadFactor
private float loadFactor
emptyIterator
private static Iterator emptyIterator
modCount
private transient int modCount
ENTRIES
private static final int ENTRIES
VALUES
private static final int VALUES
keySet
private transient volatile Set keySet
serialVersionUID
private static final long serialVersionUID
entrySet
private transient volatile Set entrySet
values
private transient volatile Collection values
KEYS
private static final int KEYS
Hashtable
public Hashtable(int,
float)
Hashtable
public Hashtable(int)
Hashtable
public Hashtable()
Hashtable
public Hashtable(Map)
size
public int size()
- Specified by:
size in interface Map
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface Map
keys
public Enumeration keys()
elements
public Enumeration elements()
contains
public boolean contains(Object)
containsValue
public boolean containsValue(Object)
- Specified by:
containsValue in interface Map
containsKey
public boolean containsKey(Object)
- Specified by:
containsKey in interface Map
get
public Object get(Object)
- Specified by:
get in interface Map
rehash
protected void rehash()
put
public Object put(Object,
Object)
- Specified by:
put in interface Map
remove
public Object remove(Object)
- Specified by:
remove in interface Map
putAll
public void putAll(Map)
- Specified by:
putAll in interface Map
clear
public void clear()
- Specified by:
clear in interface Map
clone
public Object clone()
- Overrides:
clone in class Object
toString
public String toString()
- Overrides:
toString in class Object
getEnumeration
private Enumeration getEnumeration(int)
getIterator
private Iterator getIterator(int)
keySet
public Set keySet()
- Specified by:
keySet in interface Map
entrySet
public Set entrySet()
- Specified by:
entrySet in interface Map
values
public Collection values()
- Specified by:
values in interface Map
equals
public boolean equals(Object)
- Specified by:
equals in interface Map- Overrides:
equals in class Object
hashCode
public int hashCode()
- Specified by:
hashCode in interface Map- Overrides:
hashCode in class Object
writeObject
private void writeObject(ObjectOutputStream)
throws IOException
- Throws:
IOException
readObject
private void readObject(ObjectInputStream)
throws IOException,
ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
reconstitutionPut
private void reconstitutionPut(Hashtable.Entry[],
Object,
Object)
throws StreamCorruptedException
- Throws:
StreamCorruptedException
JML is Copyright (C) 1998-2002 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the MultiJava project and is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.