@Test public void testHashcode() { EntitySet a = new EntitySet(); EntitySet b = new EntitySet(); assertEquals(a.hashCode(), b.hashCode()); assertEquals(a.hashCode(), b.hashCode()); a.edit().addEntity(0); assertNotEquals(a.hashCode(), b.hashCode()); a.edit().addEntity(54); assertNotEquals(a.hashCode(), b.hashCode()); }
@Override public int hashCode() { return content.entities.hashCode(); }
EntitySet { @Override public int hashCode() { return content.entities.hashCode(); } }
EntitySet { @Override public int hashCode() { return content.entities.hashCode(); } EntitySet();  EntitySet(EntitySet set); private  EntitySet(EntitySetContent content); }
EntitySet { @Override public int hashCode() { return content.entities.hashCode(); } EntitySet();  EntitySet(EntitySet set); private  EntitySet(EntitySetContent content); EntitySetEdit edit(); EntitySet view(); boolean contains(int entity); Mask getMask(); IntBag getIndices(); int size(); boolean isEmpty(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); }
EntitySet { @Override public int hashCode() { return content.entities.hashCode(); } EntitySet();  EntitySet(EntitySet set); private  EntitySet(EntitySetContent content); EntitySetEdit edit(); EntitySet view(); boolean contains(int entity); Mask getMask(); IntBag getIndices(); int size(); boolean isEmpty(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }