JML

java.util
Class Hashtable

java.lang.Object
  extended byjava.util.Dictionary
      extended byjava.util.Hashtable
All Implemented Interfaces:
Cloneable, Map, Serializable
Direct Known Subclasses:
Properties

public class Hashtable
extends Dictionary
implements Map, Cloneable, Serializable


Nested Class Summary
(package private) static class Hashtable.1
           
private static class Hashtable.EmptyEnumerator
           
private static class Hashtable.EmptyIterator
           
private static class Hashtable.Entry
           
private  class Hashtable.EntrySet
           
private  class Hashtable.Enumerator
           
private  class Hashtable.KeySet
           
private  class Hashtable.ValueCollection
           
 
Field Summary
private  int count
           
private static Enumeration emptyEnumerator
           
private static Iterator emptyIterator
           
private static int ENTRIES
           
private  Set entrySet
           
private static int KEYS
           
private  Set keySet
           
private  float loadFactor
           
private  int modCount
           
private static long serialVersionUID
           
private  Hashtable.Entry[] table
           
private  int threshold
           
private static int VALUES
           
private  Collection values
           
 
Constructor Summary
Hashtable()
           
Hashtable(int)
           
Hashtable(int, float)
           
Hashtable(Map)
           
 
Method Summary
 void clear()
           
 Object clone()
           
 boolean contains(Object)
           
 boolean containsKey(Object)
           
 boolean containsValue(Object)
           
 Enumeration elements()
           
 Set entrySet()
           
 boolean equals(Object)
           
 Object get(Object)
           
private  Enumeration getEnumeration(int)
           
private  Iterator getIterator(int)
           
 int hashCode()
           
 boolean isEmpty()
           
 Enumeration keys()
           
 Set keySet()
           
 Object put(Object, Object)
           
 void putAll(Map)
           
private  void readObject(ObjectInputStream)
           
private  void reconstitutionPut(Hashtable.Entry[], Object, Object)
           
protected  void rehash()
           
 Object remove(Object)
           
 int size()
           
 String toString()
           
 Collection values()
           
private  void writeObject(ObjectOutputStream)
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

Hashtable

public Hashtable(int,
                 float)

Hashtable

public Hashtable(int)

Hashtable

public Hashtable()

Hashtable

public Hashtable(Map)
Method Detail

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

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.