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

public enum MenuDishesCookEnum {
   SALAD(1, "凉拌"),
   STEAM(2, "蒸"),
   COOK(3, "煮"),
   STEW(4, "炖"),
   FRY(5, "炒"),
   BRAISED(6, "红烧"),
   DRY_STIR_FRY(7, "干煸"),
   SWEET_SOUR(8, "糖醋");

   private final Integer key;
   private final String value;

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

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

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

      return null;
   }

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

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

      return null;
   }

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

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

   // $FF: synthetic method
   private static MenuDishesCookEnum[] $values() {
      return new MenuDishesCookEnum[]{SALAD, STEAM, COOK, STEW, FRY, BRAISED, DRY_STIR_FRY, SWEET_SOUR};
   }
}
