将枚举存入map集合

遍历枚举存入集合:

Map<String,Object> deptLevel = new HashMap<>();
for(OrgBussinessEnum orgBussinessEnum : OrgBussinessEnum.values()){
    deptLevel.put(orgBussinessEnum.name(),orgBussinessEnum.getType());
}
原文地址:https://www.cnblogs.com/super-chao/p/9522462.html