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

public enum AllocCanteenTreeTypeEnum {
   MERCHANT(-1, "商户"),
   AREA(0, "区域"),
   CANTEEN(1, "食堂"),
   STALL(2, "档口"),
   SUPER_MARKET(3, "超市"),
   MEAL_LINE(4, "餐线");

   private final Integer key;
   private final String desc;

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

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

      for(int var3 = 0; var3 < var2; ++var3) {
         AllocCanteenTreeTypeEnum 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 AllocCanteenTreeTypeEnum[] $values() {
      return new AllocCanteenTreeTypeEnum[]{MERCHANT, AREA, CANTEEN, STALL, SUPER_MARKET, MEAL_LINE};
   }
}
