@Test public void testHashCode() { Engine engine = new Engine(new EngineConfig()); assertEquals(0, engine.getFamily(Family.create()).hashCode()); assertEquals(1, engine.getFamily(Family.with(TagA.class)).hashCode()); assertEquals(2, engine.getFamily(Family.exclude(TagA.class)).hashCode()); }
@Override public int hashCode() { return index; }
Family { @Override public int hashCode() { return index; } }
Family { @Override public int hashCode() { return index; } Family(Engine engine,
            int[] components,
            int[] excludedComponents,
            int index); }
Family { @Override public int hashCode() { return index; } 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 int hashCode() { return index; } 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);  }