Hi,

Well I think I want both because I'd like to give people a choice.

Using HashMap like you suggest means that the map is not cleared from
old SoftReference instances right? Anyways it is at least better because
at least the big instance with the messages is gone?

Tom

Am 22.12.10 00:12, schrieb Konstantin Komissarchik:
> 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: [email protected] [mailto:[email protected]] 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
[email protected]
https://dev.eclipse.org/mailman/listinfo/e4-dev

Reply via email to