tag:blogger.com,1999:blog-4815481734454081491.post5599885093088012205..comments2023-10-24T02:15:03.269-07:00Comments on Minborg's Java Pot: Java 8, Implementing a ConcurrentHashSetPer Minborghttp://www.blogger.com/profile/08526963148025854611noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-4815481734454081491.post-58693754338483645732016-07-06T02:25:04.744-07:002016-07-06T02:25:04.744-07:00A synchronized Set is not concurrent. A synchroniz...A synchronized Set is not concurrent. A synchronized Set will only accept one thread at a time whereas a concurrent Set can accept a plurality of concurrent threads. Hence its name.Per Minborghttps://www.blogger.com/profile/08526963148025854611noreply@blogger.comtag:blogger.com,1999:blog-4815481734454081491.post-63763945903129294732016-07-04T15:35:05.573-07:002016-07-04T15:35:05.573-07:00What about using Collections.synchronizedSet(new H...What about using Collections.synchronizedSet(new HashSet(...)); ?Toolmanhttps://www.blogger.com/profile/00351556847237003891noreply@blogger.comtag:blogger.com,1999:blog-4815481734454081491.post-7980887181088300182015-12-04T14:35:30.497-08:002015-12-04T14:35:30.497-08:00Hi Anonymous. I have improved the look of the code...Hi Anonymous. I have improved the look of the code examples from now on. Checkout http://minborgsjavapot.blogspot.com/2015/12/do-not-let-your-java-objects-escape.html and tell me what you think.Per Minborghttps://www.blogger.com/profile/08526963148025854611noreply@blogger.comtag:blogger.com,1999:blog-4815481734454081491.post-45292644841371791882015-10-23T02:19:36.250-07:002015-10-23T02:19:36.250-07:00Dude when you write articles why don't you col...Dude when you write articles why don't you colorise the source code???? WHY?? Why is everything half finished? Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4815481734454081491.post-39413119644598713732014-12-06T14:02:36.074-08:002014-12-06T14:02:36.074-08:00You are absolutely right Louis. Thanks for pointin...You are absolutely right Louis. Thanks for pointing out that. I have updated the post accordingly.Per Minborghttps://www.blogger.com/profile/08526963148025854611noreply@blogger.comtag:blogger.com,1999:blog-4815481734454081491.post-46508062939800515872014-12-05T13:42:50.028-08:002014-12-05T13:42:50.028-08:00Your addIfAbsent method seems exactly equivalent t...Your addIfAbsent method seems exactly equivalent to the perfectly normal Set.add method, which already returns true if and only if the element was previously absent and has since been added.Anonymoushttps://www.blogger.com/profile/13913733508180234280noreply@blogger.com