package com.bonus.canteen.core.cook.enums;

public enum MenuDishesTypeDefaultFlagEnum {
   DEFAULT(1, "默认"),
   NOT_DEFAULT(2, "非默认");

   private final Integer key;
   private final String value;

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

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

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

      return null;
   }

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

      for(int var4 = 0; var4 < var3; ++var4) {
         MenuDishesTypeDefaultFlagEnum 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 MenuDishesTypeDefaultFlagEnum[] $values() {
      return new MenuDishesTypeDefaultFlagEnum[]{DEFAULT, NOT_DEFAULT};
   }
}
