changeset 176:9cf8147591ea

*** empty log message ***
author kent
date Thu, 28 Aug 2008 21:35:26 +0900
parents 5653cf8e3c8b
children 723187e39311
files rep/channel/SelectorSimulator.java
diffstat 1 files changed, 5 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/rep/channel/SelectorSimulator.java	Thu Aug 28 21:22:07 2008 +0900
+++ b/rep/channel/SelectorSimulator.java	Thu Aug 28 21:35:26 2008 +0900
@@ -5,27 +5,22 @@
 import java.nio.channels.SelectionKey;
 import java.nio.channels.Selector;
 import java.nio.channels.spi.SelectorProvider;
-import java.util.ArrayList;
+import java.util.HashSet;
 import java.util.Set;
-import java.util.TreeSet;
-//import java.util.Set; //書き直す?
-import java.util.Set;
-
-
 
 public class SelectorSimulator extends REPSelector{
 	
-	private TreeSet<SelectionKey> keyList;
-	private TreeSet<SelectionKey> selectedKeys;
+	private Set<SelectionKey> keyList;
+	private Set<SelectionKey> selectedKeys;
 	
 	public SelectorSimulator() {
 		super(null);
-		keyList = new TreeSet<SelectionKey>();
+		keyList = new HashSet<SelectionKey>();
 	}
 
 	//@SuppressWarnings("unchecked")
 	public int select() throws IOException {
-		selectedKeys = new TreeSet<SelectionKey>();
+		selectedKeys = new HashSet<SelectionKey>();
 		
 		synchronized(this) {