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

public enum MenuCustomIfUseEnum {
   IS_USED(1, "使用中"),
   UNUSED(2, "未使用");

   private final Integer key;
   private final String value;

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

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

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

      return null;
   }

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

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

      return null;
   }

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

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

   // $FF: synthetic method
   private static MenuCustomIfUseEnum[] $values() {
      return new MenuCustomIfUseEnum[]{IS_USED, UNUSED};
   }
}
