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

public enum MerchantStatusEnum {
   NORMAL(1, "正常"),
   PULL_BLACK(2, "拉黑"),
   MATURITY(3, "到期"),
   UNAUDITED(4, "未审核"),
   INITIALIZING(5, "初始化中");

   private final Integer key;
   private final String value;

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

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

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

      return null;
   }

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

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

      return null;
   }

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

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

   // $FF: synthetic method
   private static MerchantStatusEnum[] $values() {
      return new MerchantStatusEnum[]{NORMAL, PULL_BLACK, MATURITY, UNAUDITED, INITIALIZING};
   }
}
