定义枚举类没看见有values方法
public static SeckillStatEnum stateOf(int index){ for (SeckillStatEnum state : ()) { if(state.getState() == index){ return state; } } return null; }
public static SeckillStatEnum stateOf(int index){ for (SeckillStatEnum state : ()) { if(state.getState() == index){ return state; } } return null; }
2019-04-01
举报