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

public enum DrpOrderGoodsPayAndRefundTypeEnum {
   APPLY(1, "申请"),
   PAY_OR_REFUND(2, "付款/退款");

   private final Integer key;
   private final String value;

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

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

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

      return null;
   }

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

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