1 package transport.packet; 2 3 10 11 17 public class PacketTypeEnum extends Enum 18 { 19 20 public static final PacketTypeEnum APPLICATION = new PacketTypeEnum("application",0); 21 22 public static final PacketTypeEnum REQUEST = new PacketTypeEnum("request", 1); 23 public static final PacketTypeEnum RESPONSE = new PacketTypeEnum("response", 2); 24 public static final PacketTypeEnum HELLO = new PacketTypeEnum("hello", 3); 25 public static final PacketTypeEnum JOIN = new PacketTypeEnum("join", 4); 26 public static final PacketTypeEnum PING = new PacketTypeEnum("ping", 5); 27 public static final PacketTypeEnum PONG = new PacketTypeEnum("pong", 6); 28 public static final PacketTypeEnum BLOCK = new PacketTypeEnum("block", 7); 29 public static final PacketTypeEnum DROP = new PacketTypeEnum("drop", 8); 30 31 public static final PacketTypeEnum WILDCARD = new PacketTypeEnum("wildcard", -1); 32 33 protected PacketTypeEnum(String n, int v) throws DuplicateEnumException 34 { 35 super(n, v); 36 } 37 38 } 39 | Popular Tags |