void addSubscription(String id, String destination) { this.subscriptions.put(id, new LocalSimpSubscription(id, destination, this)); }
@Override public int hashCode() { return getId().hashCode() * 31 + getSession().getId().hashCode(); }
@Override public int hashCode() { return getId().hashCode() * 31 + getSession().getId().hashCode(); }
void addSubscription(String id, String destination) { this.subscriptions.put(id, new LocalSimpSubscription(id, destination, this)); }
void addSubscription(String id, String destination) { this.subscriptions.put(id, new LocalSimpSubscription(id, destination, this)); }
@Override public boolean equals(Object other) { if (this == other) { return true; } if (!(other instanceof SimpSubscription)) { return false; } SimpSubscription otherSubscription = (SimpSubscription) other; return (getId().equals(otherSubscription.getId()) && getSession().getId().equals(otherSubscription.getSession().getId())); }
@Override public int hashCode() { return getId().hashCode() * 31 + getSession().getId().hashCode(); }
@Override public boolean equals(Object other) { if (this == other) { return true; } if (!(other instanceof SimpSubscription)) { return false; } SimpSubscription otherSubscription = (SimpSubscription) other; return (getId().equals(otherSubscription.getId()) && getSession().getId().equals(otherSubscription.getSession().getId())); }
@Override public boolean equals(Object other) { if (this == other) { return true; } if (!(other instanceof SimpSubscription)) { return false; } SimpSubscription otherSubscription = (SimpSubscription) other; return (getId().equals(otherSubscription.getId()) && getSession().getId().equals(otherSubscription.getSession().getId())); }