|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.PingOO.DLAI.lib.util.ValueHashtable
This hashtable is derived from the basic Hashtable, so it can be used with only String keys and can only contain String or ValueHashtable values.
Hashtable| Field Summary | |
private java.util.Hashtable |
hashtable
A private inner Hashtable to which the job is delegated. |
| Constructor Summary | |
ValueHashtable()
Creates a new ValueHashtable for the given module and the given function. |
|
| Method Summary | |
void |
clear()
Clears this hashtable so that it contains no keys. |
java.lang.Object |
clone()
Get a copy of this object. |
boolean |
contains(java.lang.Object value)
Tests if some key maps into the specified value in this hashtable. |
boolean |
containsKey(java.lang.String key)
Tests if the specified object is a key in this hashtable. |
boolean |
containsValue(java.lang.Object value)
Returns true if this Hashtable maps one or more keys to this value. |
java.util.Enumeration |
elements()
Returns an enumeration of the values in this hashtable. |
java.lang.Object |
get(java.lang.String key)
Returns the value to which the specified key is mapped in this hashtable. |
boolean |
isEmpty()
Tests if this hashtable maps no keys to values. |
java.util.Enumeration |
keys()
Returns an enumeration of the keys in this hashtable. |
java.lang.Object |
put(java.lang.String key,
java.lang.String value)
Maps the specified key to the specified value in this hashtable.
|
java.lang.Object |
put(java.lang.String key,
ValueHashtable value)
Maps the specified key to the specified value in this hashtable.
|
java.lang.Object |
remove(java.lang.String key)
Removes the key (and its corresponding value) from this hashtable. |
int |
size()
Returns the number of keys in this hashtable. |
java.lang.String |
toString()
Returns a String representation of this MessageHashtable and of the included values. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private final java.util.Hashtable hashtable
| Constructor Detail |
public ValueHashtable()
| Method Detail |
public final void clear()
public final boolean contains(java.lang.Object value)
throws java.lang.NullPointerException
true if and only if some key maps to the value argument in this hashtable as determined by the equals method;
false otherwise.null.public final boolean containsKey(java.lang.String key)
true if and only if the specified object is a key in this hashtable, as determined by the equals method;
false otherwise.public final boolean containsValue(java.lang.Object value)
true if and only if some key maps to the value argument in this hashtable as determined by the equals method;
false otherwise.public final java.util.Enumeration elements()
public final java.lang.Object get(java.lang.String key)
null if the key is not mapped to any value in this hashtable.public final boolean isEmpty()
true if this hashtable maps no keys to values; false otherwise.public final java.util.Enumeration keys()
public final java.lang.Object put(java.lang.String key,
java.lang.String value)
throws java.lang.NullPointerException
value in this hashtable.
Neither the key nor the value can be null.
The value can be retrieved by calling the get method with a key that is equal to the original key.
key - The hashtable key.value - The String value.null if it did not have one.null.
public final java.lang.Object put(java.lang.String key,
ValueHashtable value)
throws java.lang.NullPointerException
value in this hashtable.
Neither the key nor the value can be null.
The value can be retrieved by calling the get method with a key that is equal to the original key.
key - The hashtable key.value - The ValueHashtable value.null if it did not have one.null.
public final java.lang.Object remove(java.lang.String key)
key - the key that needs to be removed.null if the key did not have a mapping.public final int size()
public java.lang.Object clone()
public final java.lang.String toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||