Exemplo n.º 1
0
  private boolean removeSubscription(int id) {

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

    String temp = "";

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

    return temp;
  }