tag:blogger.com,1999:blog-11593374.post7567691259569781762..comments2024-03-22T08:46:57.166+00:00Comments on Andrew Beacock's Blog: How to lose a Java object in a Collection (Set)Andrew Beacockhttp://www.blogger.com/profile/01039992884679308726noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-11593374.post-26331571427017835192008-11-23T10:18:00.000+00:002008-11-23T10:18:00.000+00:00Forgive me, I'm not a Java developer (besides the ...Forgive me, I'm not a Java developer (besides the odd bit of Eclipse editor work).<BR/><BR/>So, because the state of the member changed, its hashcode changed, and the Set didn't automacially update to reflect that fact?<BR/><BR/>Doesn't this cause problems all over the place; doesn't this mean that objects added to collections that use the return from hashcode as their key must immediately beome read-only?<BR/><BR/>That sounds a tad restrictive - so I presume my understanding may be wrong...Rob Bailliehttps://www.blogger.com/profile/06513796097645814224noreply@blogger.com