tag:blogger.com,1999:blog-8779027097922009803.post6566013187799027869..comments2023-08-16T04:59:05.497-07:00Comments on Share your knowledge: Grouping objects from Java CollectionAnonymoushttp://www.blogger.com/profile/08988603608690509267noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-8779027097922009803.post-90099300828788821232014-08-20T00:53:48.904-07:002014-08-20T00:53:48.904-07:00To use a Class with different attributes as the gr...To use a Class with different attributes as the grouping key, it's also needed you implement the equals method in the key class.vilojonahttps://www.blogger.com/profile/16235341779038431107noreply@blogger.comtag:blogger.com,1999:blog-8779027097922009803.post-74927699255270290112014-08-19T08:10:45.283-07:002014-08-19T08:10:45.283-07:00Thank you for your contribution.....
I have used ...Thank you for your contribution.....<br /><br />I have used this code ( modified a bit as I am group for a union of 3 fields instead of one ) and solved my need.<br />vilojonahttps://www.blogger.com/profile/16235341779038431107noreply@blogger.comtag:blogger.com,1999:blog-8779027097922009803.post-14249787044295504542013-04-26T10:56:53.437-07:002013-04-26T10:56:53.437-07:00This comment has been removed by the author.Kumar Shirish Ranjanhttps://www.blogger.com/profile/09959297536250338739noreply@blogger.com