| java.util.Hashtable org.cougaar.lib.util.UIDHashtable
UIDHashtable | public class UIDHashtable extends Hashtable (Code) | | A class that stores items, keying them by a generated UID.
|
Method Summary | |
public synchronized Integer | keyForValue(Object value) | public synchronized Object | put(Object key, Object value) Function puts a new key/value pair in the table. | public synchronized Integer | put(Object value) Use this function to put an object in the table, and let the table
determine the approriate UID
Parameters: value - The object to put in the table. |
UIDHashtable | public UIDHashtable()(Code) | | |
UIDHashtable | public UIDHashtable(int initialCapacity)(Code) | | |
UIDHashtable | public UIDHashtable(int initialCapacity, float loadFactor)(Code) | | |
keyForValue | public synchronized Integer keyForValue(Object value)(Code) | | Return the key for the given value
Parameters: value - to look for the key for the first entry found that matches the given value |
put | public synchronized Object put(Object key, Object value) throws IllegalArgumentException(Code) | | Function puts a new key/value pair in the table. The key
Better be a Integer that represents a UID that is not already
in the table or an IllegalArgumentException is thrown. The
value better not be in the table already under a different key.
(multiple assignements to the same key are permitted though).
|
put | public synchronized Integer put(Object value)(Code) | | Use this function to put an object in the table, and let the table
determine the approriate UID
Parameters: value - The object to put in the table. Note value CAN NOTbe null. an Integer that was used as the key. |
|
|