KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > transport > AddPacketListenerCommand


1
2 package transport;
3 import transport.packet.PacketTypeEnum;
4 import jegg.Port;
5
6 /**
7  *
8  */

9 public class AddPacketListenerCommand
10 {
11     private Port port;
12     private PacketTypeEnum type;
13     
14     public AddPacketListenerCommand(PacketTypeEnum t, Port p)
15     {
16         super();
17         port = p;
18         type = t;
19     }
20     public Port getPort()
21     {
22         return port;
23     }
24     public PacketTypeEnum getType()
25     {
26         return type;
27     }
28 }
29
Popular Tags