Пример #1
0
 public static DeviceType getStatus(Integer code) {
   for (DeviceType status : DeviceType.values()) {
     if (status.getCode() == code) {
       return status;
     }
   }
   throw new IllegalArgumentException("未能找到匹配的AutoInvestStatus:" + code);
 }