Package com.sun.jini.collection
Class WeakIdentityMap
java.lang.Object
com.sun.jini.collection.WeakIdentityMap
Identity-based weak hash map.
- Since:
- 2.0
- Author:
- Sun Microsystems, Inc.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Removes all associations from this map.Returns value associated with given key, or null if none.Associates value with given key, returning value previously associated with key, or null if none.Removes association for given key, returning value previously associated with key, or null if none.values()Returns collection containing all values currently held in this map.
-
Constructor Details
-
WeakIdentityMap
public WeakIdentityMap()
-
-
Method Details
-
put
Associates value with given key, returning value previously associated with key, or null if none. -
get
Returns value associated with given key, or null if none. -
remove
Removes association for given key, returning value previously associated with key, or null if none. -
values
Returns collection containing all values currently held in this map. -
clear
public void clear()Removes all associations from this map.
-