I have the simple ArrayLists of the member class:
ArrayList mGroupMembers = new ArrayList<>();
ArrayList mFriends = new Arr
You have to know that
ArrayList#removeAll(Collection)
makes a call to
ArrayList#contains(Object)
which makes a call to
ArrayList#indexOf(Object)
which finally calls
Object#equals
So if equals
is not correctly overridden (following the equals contract rules), you're not getting the correct behaviour.