|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectewe.util.Hashtable
A Hashtable is an implementation of a Map. This is a collection that associates Object values with Object keys. You search for an object in the Map by using the key.
| Nested Class Summary |
| Nested classes inherited from class ewe.util.Map |
Map.MapEntry |
| Constructor Summary | |
Hashtable()
Constructs a new hashtable with the default initial capacity and a default load factor of 0.75 |
|
Hashtable(int initialCapacity)
Constructs a new hashtable with the specified initial capacity and a default load factor of 0.75 |
|
Hashtable(int initialCapacity,
float loadFactor)
Constructs a hashtable with the specified initial capacity and the specified load factor. |
|
| Method Summary | |
void |
clear()
Remove all entries in the Map. |
boolean |
containsKey(Object key)
Checks if an entry with the specified key is in the Map. |
boolean |
containsValue(Object value)
Checks if at least one entry with the specified value is in the Map. |
Enumeration |
elements()
|
Iterator |
entries()
Provides an Iterator to iterate through all the entries. |
Object |
get(Object key)
Get the object with the specified key. |
boolean |
isEmpty()
|
Enumeration |
keys()
|
Object |
put(Object key,
Object value)
Put the object and key in the Map. |
protected void |
rehash()
|
Object |
remove(Object key)
Remove the object and key pair from the Map. |
int |
size()
Get the number of entries in the Map. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, toString |
| Constructor Detail |
public Hashtable(int initialCapacity,
float loadFactor)
public Hashtable(int initialCapacity)
public Hashtable()
| Method Detail |
public Iterator entries()
Map
entries in interface Mappublic int size()
Map
size in interface Mappublic boolean isEmpty()
public boolean containsValue(Object value)
Map
containsValue in interface Mapvalue - The value to look for.
public boolean containsKey(Object key)
Map
containsKey in interface Mapkey - The key to look for.
public Object remove(Object key)
Map
remove in interface Mapkey - The key for the Object to replace.
public Object put(Object key,
Object value)
Map
put in interface Mapkey - The key for the object.value - The object to put
public void clear()
Map
clear in interface Mappublic Object get(Object key)
Map
get in interface Mapkey - The key to look for.
protected void rehash()
public Enumeration elements()
public Enumeration keys()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||