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

public enum MenuMealTypeEnum {
   DISHES(1, "菜品"),
   PACKAGE_MEAL(2, "套餐"),
   PRODUCT(3, "商品");

   private final Integer key;
   private final String value;

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

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

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

      return null;
   }

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

      for(int var4 = 0; var4 < var3; ++var4) {
         MenuMealTypeEnum 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 MenuMealTypeEnum[] $values() {
      return new MenuMealTypeEnum[]{DISHES, PACKAGE_MEAL, PRODUCT};
   }
}
