@Test public void testEquals() { EntitySet a = new EntitySet(); EntitySet b = new EntitySet(); assertEquals(a, b); assertEquals(a, b); a.edit().addEntity(0); assertNotEquals(a, b); a.edit().addEntity(54); assertNotEquals(a, b); assertNotEquals(a, new Object()); }
@Override public boolean equals(Object obj) { if (!(obj instanceof EntitySet)) return false; return ((EntitySet) obj).content.entities.equals(content.entities); }
EntitySet { @Override public boolean equals(Object obj) { if (!(obj instanceof EntitySet)) return false; return ((EntitySet) obj).content.entities.equals(content.entities); } }
EntitySet { @Override public boolean equals(Object obj) { if (!(obj instanceof EntitySet)) return false; return ((EntitySet) obj).content.entities.equals(content.entities); } EntitySet();  EntitySet(EntitySet set); private  EntitySet(EntitySetContent content); }
EntitySet { @Override public boolean equals(Object obj) { if (!(obj instanceof EntitySet)) return false; return ((EntitySet) obj).content.entities.equals(content.entities); } 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 boolean equals(Object obj) { if (!(obj instanceof EntitySet)) return false; return ((EntitySet) obj).content.entities.equals(content.entities); } 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();  }