A Map.Entry is probably what it should return. Better, a cache should have a hook method which is called when something is kicked out the back of the cache. Otherwise you stand an excellent chance of missing something being removed in a multithreaded environment.
> -----Original Message----- > From: Morgan Delagrange [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 14, 2002 5:56 PM > To: Jakarta Commons Developers > Subject: [Collections] Comment on LRUMap.removeLRU() > > > Seems like an odd method (besides the fact that it didn't > actually work > until this week ;) It returns the key of the Object that was > removed from > the Map. Don't you think it should return both the key and the value, > perhaps as an Object[] array? After all, you have no way to > use that key; > the value is already gone. > > Technically, there's nothing we can do about it until > Collections 2.x, but > maybe in the Javadocs we should announce an intention to > deprecate it for a > more appropriate call? > > - Morgan > > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
