Add OnDemandHashMap and TokenSet
These can be used to store temporary object (such as locks) based on an arbitrary key, which are removed from the internal HashMap when the last reference to them is dropped.
Edited by Lambda
These can be used to store temporary object (such as locks) based on an arbitrary key, which are removed from the internal HashMap when the last reference to them is dropped.