public enum UserStatus { MIN_LEVEL(1); private final int value; private UserStatus(int value){ this.value=value; } public int getValue() { return value; } }
为枚举赋值
猜你喜欢
转载自286.iteye.com/blog/1138350
今日推荐
周排行