Mercurial > hg > RemoteEditor > REPSessionManager
comparison rep/EditorPlus.java @ 126:291c62984ba0
*** empty log message ***
author | kono |
---|---|
date | Wed, 27 Aug 2008 17:58:09 +0900 |
parents | b774b87cc2c1 |
children | dfed28488274 |
comparison
equal
deleted
inserted
replaced
125:9faacdd6c9cb | 126:291c62984ba0 |
---|---|
1 package rep; | 1 package rep; |
2 | 2 |
3 import java.nio.channels.SocketChannel; | 3 import rep.channel.REPSocketChannel; |
4 | 4 |
5 public class EditorPlus { | 5 public class EditorPlus<P> { |
6 | 6 |
7 private int eid; | 7 private int eid; |
8 private SocketChannel channel; | 8 private REPSocketChannel<P> channel; |
9 public EditorPlus(int eid, SocketChannel channel) { | 9 public EditorPlus(int eid, REPSocketChannel<P> channel) { |
10 this.eid = eid; | 10 this.eid = eid; |
11 this.channel = channel; | 11 this.channel = channel; |
12 } | 12 } |
13 public String toString(){ | 13 public String toString(){ |
14 return ("Editor:" + eid); | 14 return ("Editor:" + eid); |
15 } | 15 } |
16 public int getEID(){ | 16 public int getEID(){ |
17 return eid; | 17 return eid; |
18 } | 18 } |
19 public SocketChannel getChannel(){ | 19 public REPSocketChannel<P> getChannel(){ |
20 return channel; | 20 return channel; |
21 | 21 |
22 } | 22 } |
23 } | 23 } |