package com.bonus.canteen.core.allocation.canteen.enums;

public enum AllocCanteenEnableTypeEnum {
   PAY(1, "支付"),
   DELIVERY(2, "配送"),
   ORDER(3, "点餐");

   private final Integer key;
   private final String desc;

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

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

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

      return null;
   }

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

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

   // $FF: synthetic method
   private static AllocCanteenEnableTypeEnum[] $values() {
      return new AllocCanteenEnableTypeEnum[]{PAY, DELIVERY, ORDER};
   }
}
