A map where keys are compared using identity comparison (like
IdentityHashMap) but where the presence of an object as a key in
the map does not prevent it being garbage collected (like
WeakHashMap). This class does not implement the Map interface
because it is difficult to ensure correct semantics for iterators
over the entrySet().
Because we do not implement Map, we do not copy the questionable
interface where you can call get(k) or remove(k) for any type of k,
which of course can only have an effect if k is of type K.
This map does not support null keys. |