Re: [collections] new feature request: org.apache.commons.collections.map.ReferenceMap (WeakIdentityHashMap)

2004-01-29 Thread Andy Malakov
nesday, January 28, 2004 3:18 PM Subject: Re: [collections] new feature request: org.apache.commons.collections.map.ReferenceMap (WeakIdentityHashMap) > The ideal solution IMO would be for ReferenceMap to extend the new > AbstractHashedMap class. I wanted to do this but ran out of time before 3.0.

Re: [collections] new feature request: org.apache.commons.collections.map.ReferenceMap (WeakIdentityHashMap)

2004-01-29 Thread Stephen Colebourne
The ideal solution IMO would be for ReferenceMap to extend the new AbstractHashedMap class. I wanted to do this but ran out of time before 3.0. If this was done, the identity part becomes natural in the same way as the IdentityMap works. The alternative solution is to just tweak ReferenceMap as yo

[collections] new feature request: org.apache.commons.collections.map.ReferenceMap (WeakIdentityHashMap)

2004-01-28 Thread Andy Malakov
Hello All, I would like to ask your opinion on providing WeakIdentityHashMap features to ReferenceMap. Object cache is often implemented using ReferenceMap (WeakHashMap). This class delegates decision on when to de-cache an objects on Java GC. In many systems Java objects that represent datab