java.util.Hashtable (JDK 1.0)
This class implements a hashtable data structure, which allows you to associate values with a key and to efficiently look up the value associated with a given key. A hashtable is essentially an associative array, which stores objects with non-numeric array indices.
put() associates a value with a key in a Hashtable. get() retrieves a value for a specified key. remove() deletes a key/value association. keys() and elements() return Enumeration objects that allow you to iterate through the complete set of keys and values stored in the table.
public classHashtableextends Dictionary implements Cloneable, Serializable { //Public ConstructorspublicHashtable(intinitialCapacity, floatloadFactor); publicHashtable(intinitialCapacity); publicHashtable(); //Public Instance Methodspublic synchronized voidclear(); public synchronized Objectclone(); //Overrides Objectpublic synchronized booleancontains(Objectvalue); public synchronized booleancontainsKey(Objectkey); public synchronized Enumerationelements(); //Defines Dictionarypublic synchronized Objectget(Objectkey); //Defines Dictionarypublic booleanisEmpty(); //Defines Dictionarypublic synchronized Enumerationkeys(); //Defines Dictionarypublic synchronized Objectput(Objectkey, Objectvalue); //Defines Dictionarypublic synchronized Objectremove(Objectkey); //Defines Dictionarypublic intsize(); //Defines Dictionarypublic synchronized StringtoString(); //Overrides Object//Protected Instance Methodsprotected voidrehash(); }
Hierarchy:
Object->Dictionary->Hashtable(Cloneable, Serializable)
Extended By:
Properties
Passed To:
CropImageFilter.setProperties(), ImageConsumer.setProperties(), ImageFilter.setProperties(), MemoryImageSource(), PixelGrabber.setProperties(), ReplicateScaleFilter.setProperties()
Type Of:
GridBagLayout.comptable