KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > transport > packet > PacketTypeEnum


1 package transport.packet;
2
3 /*
4  * File: PacketTypeEnum.java
5  * Created: Dec 18, 2003
6  * Author: bruce
7  *
8  * Copyright 2003,2004 Bruce Lowery
9  */

10
11 /**
12  * @author bruce
13  *
14  * To change the template for this generated type comment go to
15  * Window - Preferences - Java - Code Generation - Code and Comments
16  */

17 public class PacketTypeEnum extends Enum JavaDoc
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 JavaDoc n, int v) throws DuplicateEnumException
34     {
35         super(n, v);
36     }
37
38 }
39
Popular Tags