1 package net.sourceforge.phpeclipse.xdebug.core.xdebug;
3 import java.util.HashMap;
4 import net.sourceforge.phpeclipse.xdebug.core.xdebug.ResponseListener.DebugResponse;
6 public class ResponseList {
10 public ResponseList() {
12 fList = new HashMap();
15 public synchronized void add(DebugResponse response, int id) {
16 fList.put(new Integer(id), response);
21 public synchronized DebugResponse get(int id) {
22 while (id > fLastId) {
25 } catch (InterruptedException e) {
29 if (fList.containsKey(new Integer(id)))
30 return (DebugResponse) fList.remove(new Integer(id));