Weak Concurrent HashMap

111 views
Skip to first unread message

ramus

unread,
Aug 10, 2009, 3:03:03 PM8/10/09
to Google Collections Library - users list
I want a WeakHashMap that supports Concurrent Access (similar to
j.u.c.ConcurrentHashMap)

Would I be right in implementing this with
CustomConcurrentHashMap.Builder where the strategy is implemented
using WeakHashMap internally?

Thanks!

Kevin Bourrillion

unread,
Aug 10, 2009, 3:29:10 PM8/10/09
to ramus, Google Collections Library - users list
All you need to do is

Map<Foo, Bar> map = new MapMaker().weakKeys().makeMap();
--
Kevin Bourrillion @ Google
internal:  http://go/javalibraries
google-collections.googlecode.com
google-guice.googlecode.com

Reply all
Reply to author
Forward
0 new messages