package com.bonus.canteen.core.menu.constant;

public enum MenuFailTypeEnum {
   DISHES(1, "菜谱导入失败"),
   MATERIAL(2, "原料导入失败"),
   PRODUCT(3, "商品导入失败");

   private final Integer key;
   private final String value;

   private MenuFailTypeEnum(Integer key, String value) {
      this.key = key;
      this.value = value;
   }

   public static Integer getKey(String value) {
      MenuFailTypeEnum[] enums = values();
      MenuFailTypeEnum[] var2 = enums;
      int var3 = enums.length;

      for(int var4 = 0; var4 < var3; ++var4) {
         MenuFailTypeEnum item = var2[var4];
         if (item.value().equals(value)) {
            return item.key();
         }
      }

      return null;
   }

   public static String getValue(Integer key) {
      MenuFailTypeEnum[] enums = values();
      MenuFailTypeEnum[] var2 = enums;
      int var3 = enums.length;

      for(int var4 = 0; var4 < var3; ++var4) {
         MenuFailTypeEnum item = var2[var4];
         if (item.key().equals(key)) {
            return item.value();
         }
      }

      return null;
   }

   public Integer key() {
      return this.key;
   }

   public String value() {
      return this.value;
   }

   // $FF: synthetic method
   private static MenuFailTypeEnum[] $values() {
      return new MenuFailTypeEnum[]{DISHES, MATERIAL, PRODUCT};
   }
}
