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

public enum DrpQuantityMainFlagEnum {
   MAIN(1, "主"),
   OTHER(2, "次");

   private final Integer key;
   private final String desc;

   private DrpQuantityMainFlagEnum(Integer key, String desc) {
      this.key = key;
      this.desc = desc;
   }

   public static DrpQuantityMainFlagEnum getDrpPurOfferStatusEnum(Integer key) {
      DrpQuantityMainFlagEnum[] var1 = values();
      int var2 = var1.length;

      for(int var3 = 0; var3 < var2; ++var3) {
         DrpQuantityMainFlagEnum e = var1[var3];
         if (e.getKey().equals(key)) {
            return e;
         }
      }

      return null;
   }

   public static String getDesc(Integer key) {
      DrpQuantityMainFlagEnum[] var1 = values();
      int var2 = var1.length;

      for(int var3 = 0; var3 < var2; ++var3) {
         DrpQuantityMainFlagEnum e = var1[var3];
         if (e.getKey().equals(key)) {
            return e.getDesc();
         }
      }

      return null;
   }

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

   public String getDesc() {
      return this.desc;
   }

   // $FF: synthetic method
   private static DrpQuantityMainFlagEnum[] $values() {
      return new DrpQuantityMainFlagEnum[]{MAIN, OTHER};
   }
}
