I\'m having problems with Iterator.remove() called on a HashSet.
I\'ve a Set of time stamped objects. Before adding a new item to the Set, I loop through the set, i
Have you tried something like
boolean removed = allResults.remove(oldData)
if (!removed) // COMPLAIN BITTERLY!
In other words, remove the object from the Set and break the loop. That won't cause the Iterator to complain. I don't think this is a long term solution but would probably give you some information about the hashCode, equals and equalsData methods