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 Hashtable.EmptyEnumerator emptyEnumerator
loadFactor
private float loadFactor
emptyIterator
private static Hashtable.EmptyIterator 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()
Hashtable
public Hashtable(int)
Hashtable
public Hashtable(int,
float)
Hashtable
public Hashtable(Map)
hashCode
public int hashCode()
- Specified by:
hashCode in interface Map- Overrides:
hashCode in class Object
size
public int size()
- Specified by:
size in interface Map
clear
public void clear()
- Specified by:
clear in interface Map
rehash
protected void rehash()
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface Map
readObject
private void readObject(ObjectInputStream)
throws IOException,
ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
writeObject
private void writeObject(ObjectOutputStream)
throws IOException
- Throws:
IOException
clone
public Object clone()
- Overrides:
clone in class Object
contains
public boolean contains(Object)
containsKey
public boolean containsKey(Object)
- Specified by:
containsKey in interface Map
containsValue
public boolean containsValue(Object)
- Specified by:
containsValue in interface Map
equals
public boolean equals(Object)
- Specified by:
equals in interface Map- Overrides:
equals in class Object
toString
public String toString()
- Overrides:
toString in class Object
values
public Collection values()
- Specified by:
values in interface Map
elements
public Enumeration elements()
keys
public Enumeration keys()
getEnumeration
private Enumeration getEnumeration(int)
getIterator
private Iterator getIterator(int)
putAll
public void putAll(Map)
- Specified by:
putAll in interface Map
entrySet
public Set entrySet()
- Specified by:
entrySet in interface Map
keySet
public Set keySet()
- Specified by:
keySet in interface Map
get
public Object get(Object)
- Specified by:
get in interface Map
remove
public Object remove(Object)
- Specified by:
remove in interface Map
put
public Object put(Object,
Object)
- Specified by:
put in interface Map
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.