comparison rep/channel/REPSelector.java @ 219:13e0520470dc

*** empty log message ***
author kono
date Sun, 31 Aug 2008 10:59:34 +0900
parents 3e0cd34d625d
children 168dd841be51
comparison
equal deleted inserted replaced
218:827c439d0da4 219:13e0520470dc
77 77
78 public Set<REPSelectionKey<P>> selectedKeys1() { 78 public Set<REPSelectionKey<P>> selectedKeys1() {
79 Set<SelectionKey> keys = selector.selectedKeys(); 79 Set<SelectionKey> keys = selector.selectedKeys();
80 HashSet<REPSelectionKey<P>> newKeys = new HashSet<REPSelectionKey<P>>(); 80 HashSet<REPSelectionKey<P>> newKeys = new HashSet<REPSelectionKey<P>>();
81 for(SelectionKey k: keys) { 81 for(SelectionKey k: keys) {
82 newKeys.add(new REPSelectionKey<P>(k)); 82 newKeys.add(new REPSelectionKey<P>(k,this));
83 } 83 }
84 return newKeys; 84 return newKeys;
85 } 85 }
86 86
87 87