com.yourkit.probes
Class ObjectIntWeakMap<Key>

java.lang.Object
  extended by com.yourkit.probes.ObjectIntWeakMap<Key>

public final class ObjectIntWeakMap<Key>
extends java.lang.Object

This utility class implements a map between object and integer. Objects stored in the map are not prevented from being garbage collected. Unlike ordinary weak hash map, this map retains key and value association even inside the key's finalize() method.


Constructor Summary
ObjectIntWeakMap()
           
 
Method Summary
 boolean containsKey(Key key)
           
 java.lang.Integer get(Key key)
           
 void put(Key key, int value)
           
 java.lang.Integer remove(Key key)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectIntWeakMap

public ObjectIntWeakMap()
Method Detail

put

public void put(Key key,
                int value)

get

public java.lang.Integer get(Key key)

containsKey

public boolean containsKey(Key key)

remove

public java.lang.Integer remove(Key key)


Copyright © 2003-2010 YourKit, LLC. All Rights Reserved.