private boolean removeSubscription(int id) { for (Subscription s : subscription) { if (s.getId() == id) { subscription.remove(s); return true; } } return false; }
@Override public String getSubscription() throws RemoteException { String temp = ""; for (Subscription s : subscription) { temp = temp + s.getFilterString() + "|"; } return temp; }