@Test(expected = UnsupportedOperationException.class) public void testErrorConstructor() { Engine engine = new Engine(new EngineConfig()); int entity = engine.createEntity(); Mapper<ReallyBadComponent> mReallyBad = engine.getMapper(ReallyBadComponent.class); mReallyBad.create(entity); }
public abstract T create(int entity);
Mapper { public abstract T create(int entity); }
Mapper { public abstract T create(int entity); protected  Mapper(Engine engine, Class<T> type, int typeIndex); }
Mapper { public abstract T create(int entity); protected  Mapper(Engine engine, Class<T> type, int typeIndex); abstract T create(int entity); abstract T get(int entity); final boolean has(int entity); final void remove(int entity); @SuppressWarnings("unchecked") final ComponentState<T> getState(); }
Mapper { public abstract T create(int entity); protected  Mapper(Engine engine, Class<T> type, int typeIndex); abstract T create(int entity); abstract T get(int entity); final boolean has(int entity); final void remove(int entity); @SuppressWarnings("unchecked") final ComponentState<T> getState();  }