I didn't intend to kill that discussion with my response. I'm not a
specialist on those Reference classes but I've heard enough to say that
it can be tricky and should probably not be used just because it's sexy.
I'd vote for not using them unless there is a real good reason. I'm not
sure about your use case, but you might just have to do some research.
I'm sorry not to be more of a help.

Here's one URL describing the stuff in short. I'm sure there are better
ones.
http://developer.java.sun.com/developer/TechTips/1999/tt0511.html#tip2

On Thu, 07 Nov 2002 09:54:51 +1000 Peter B. West wrote:
> I was hoping there might be a little more detailed discussion here.  I 
> have no experience of WeakHashMaps or the various Reference objects, but 
> I have been thinking about using Reference objects, rather than direct 
> references, to point to the Nodes in my Tree, with the idea that at 
> least the first iteration in a cache/retrieve cycle on a subtree could 
> be handled transparently within the Tree.


Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to