| Please reconsider implementing equals and hashcode differently. As PersistenBag implements List it should adhere to the interface truthfully. Given a LinkedList l and a PersistentBag b, each containing only Objects having the same value, but not being the same instance leads to the following behavior:
b.equals(l) == false
l.equals(b) == true
This violates the contract of equals, which states:
The violated attribute is the symmetry:
l.equals(b) != b.equals(l)
|