1 package net.sourceforge.phpeclipse.xdebug.core.xdebug;
3 import java.util.HashMap;
4 //import net.sourceforge.phpeclipse.xdebug.core.xdebug.ResponseListener.DebugResponse;
5 import net.sourceforge.phpeclipse.xdebug.core.xdebug.ResponseListener.XDebugResponse;
7 public class ResponseList {
11 public ResponseList() {
13 fList = new HashMap();
16 public synchronized void add(XDebugResponse response, int id) {
17 fList.put(new Integer(id), response);
22 public synchronized XDebugResponse get(int id) {
23 while (id > fLastId) {
26 } catch (InterruptedException e) {
30 if (fList.containsKey(new Integer(id)))
31 return (XDebugResponse) fList.remove(new Integer(id));