示例#1
0
  private boolean removeSubscription(int id) {

    for (Subscription s : subscription) {
      if (s.getId() == id) {
        subscription.remove(s);
        return true;
      }
    }
    return false;
  }
示例#2
0
  @Override
  public String getSubscription() throws RemoteException {

    String temp = "";

    for (Subscription s : subscription) {
      temp = temp + s.getFilterString() + "|";
    }

    return temp;
  }