Class WeakIdentityMap

java.lang.Object
com.sun.jini.collection.WeakIdentityMap

public class WeakIdentityMap extends Object
Identity-based weak hash map.
Since:
2.0
Author:
Sun Microsystems, Inc.
  • Constructor Details

    • WeakIdentityMap

      public WeakIdentityMap()
  • Method Details

    • put

      public Object put(Object key, Object value)
      Associates value with given key, returning value previously associated with key, or null if none.
    • get

      public Object get(Object key)
      Returns value associated with given key, or null if none.
    • remove

      public Object remove(Object key)
      Removes association for given key, returning value previously associated with key, or null if none.
    • values

      public Collection values()
      Returns collection containing all values currently held in this map.
    • clear

      public void clear()
      Removes all associations from this map.