[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [e4-dev] HashMap for weak/soft "values"
|
You probably want SoftReference, not WeakReference for a cache. In my
experience, I found that using HashMap<?,SoftReference<?>> is easy enough to
not justify a dedicated implementation.
- Konstantin
-----Original Message-----
From: e4-dev-bounces@xxxxxxxxxxx [mailto:e4-dev-bounces@xxxxxxxxxxx] On
Behalf Of Tom Schindl
Sent: Tuesday, December 21, 2010 3:06 PM
To: E4 Project developer mailing list
Subject: [e4-dev] HashMap for weak/soft "values"
Hi,
I'm in need of a HashMap where the value is weak to build a temporal
cache. Does anybody here know of a such an implementation? All I found
are the implementation from Apache and Google Collections but adding
600KB dependencies only for that feels a bit strange.
I can't believe that Equinox or some other Eclipse Plugin is not
providing a similar implementation.
Tom
--
B e s t S o l u t i o n . a t EDV Systemhaus GmbH
------------------------------------------------------------------------
tom schindl geschaeftsfuehrer/CEO
------------------------------------------------------------------------
eduard-bodem-gasse 5/1 A-6020 innsbruck phone ++43 512 935834
_______________________________________________
e4-dev mailing list
e4-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/e4-dev