@Test public void testEquals() { Engine engine = new Engine(new EngineConfig()); assertEquals(engine.getFamily(Family.create()), engine.getFamily(Family.create())); assertEquals(engine.getFamily(Family.with(TagA.class)), engine.getFamily(Family.with(TagA.class))); assertEquals(engine.getFamily(Family.exclude(TagA.class)), engine.getFamily(Family.exclude(TagA.class))); assertNotEquals(engine.getFamily(Family.with(TagA.class)), engine.getFamily(Family.exclude(TagA.class))); }
@Override public boolean equals(Object obj) { return this == obj; }
Family { @Override public boolean equals(Object obj) { return this == obj; } }
Family { @Override public boolean equals(Object obj) { return this == obj; } Family(Engine engine,
            int[] components,
            int[] excludedComponents,
            int index); }
Family { @Override public boolean equals(Object obj) { return this == obj; } Family(Engine engine,
            int[] components,
            int[] excludedComponents,
            int index); EntitySet getEntities(); @Override int hashCode(); @Override boolean equals(Object obj); static final FamilyConfig create(); @SafeVarargs static final FamilyConfig with(Class<? extends Component>... componentTypes); @SafeVarargs static final FamilyConfig exclude(Class<? extends Component>... componentTypes); }
Family { @Override public boolean equals(Object obj) { return this == obj; } Family(Engine engine,
            int[] components,
            int[] excludedComponents,
            int index); EntitySet getEntities(); @Override int hashCode(); @Override boolean equals(Object obj); static final FamilyConfig create(); @SafeVarargs static final FamilyConfig with(Class<? extends Component>... componentTypes); @SafeVarargs static final FamilyConfig exclude(Class<? extends Component>... componentTypes);  }