com.ls.util.container
Class StableHashtable
java.lang.Object
|
+--java.util.Dictionary
|
+--java.util.Hashtable
|
+--com.ls.util.container.StableHashtable
- All Implemented Interfaces:
- Cloneable, Map, Serializable
- public class StableHashtable
- extends Hashtable
This class is to have a nullpointer save hashtable
- Version:
- $Revision: 1.1 $
- Author:
- Last modified by $Author: TBerk $
- See Also:
- Serialized Form
Method Summary |
Object |
put(Object key,
Object value)
Maps the specified key to the specified value in this hashtable, if the key or the value is not null |
Methods inherited from class java.util.Hashtable |
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, putAll, rehash, remove, size, toString, values |
StableHashtable
public StableHashtable()
put
public Object put(Object key,
Object value)
- Maps the specified key to the specified value in this hashtable, if the key or the value is not null
- Overrides:
put
in class Hashtable
- Parameters:
key
- The hashtable key.value
- The value.- Returns:
- The previous value of the specified key in this hashtable, or null if it did not have one.