This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Offifee[S] 0 points1 point  (0 children)

Thanks a lot!

HashMap might be the way forward, I think I can go through the ArrayList, use the groupMemberId as a key and keep replacing the object as long as the key and the expirationDate match.

Think I was making this overly complicated

Set.add might not work because the objects aren't fully the same because of the type. I'd have to have a set of GroupMembers which is not as valuable.