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

public enum MaterialProcessEnum {
   PRELIMINARY(1, "初加工"),
   CUTTING_AND_MATCHING(2, "切配");

   private final Integer key;
   private final String value;

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

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

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

      return null;
   }

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

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

      return null;
   }

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

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

   // $FF: synthetic method
   private static MaterialProcessEnum[] $values() {
      return new MaterialProcessEnum[]{PRELIMINARY, CUTTING_AND_MATCHING};
   }
}
