标签:
遍历枚类型的方法: public static EActChannel getEnumByCode(int code) { for (EActChannel enm : EActChannel.values()) { if (code == enm.getCode()) { return enm; } } return null; }
今天接触枚举类型,感觉是C里面应该才有的东西
原文地址:http://www.cnblogs.com/Baronboy/p/5920824.html