String destination = accessor.getDestination(); if (id != null && destination != null) { session.addSubscription(id, destination); this.users.put(name, simpUser); LocalSimpSession session = new LocalSimpSession(sessionId, simpUser); simpUser.addSession(session); this.sessions.put(sessionId, session); LocalSimpSession session = this.sessions.remove(sessionId); if (session != null) { LocalSimpUser user = session.getUser(); user.removeSession(sessionId); if (!user.hasSessions()) { String subscriptionId = accessor.getSubscriptionId(); if (subscriptionId != null) { session.removeSubscription(subscriptionId);
@Override public int hashCode() { return getId().hashCode(); }
String destination = accessor.getDestination(); if (id != null && destination != null) { session.addSubscription(id, destination); this.users.put(name, simpUser); LocalSimpSession session = new LocalSimpSession(sessionId, simpUser); simpUser.addSession(session); this.sessions.put(sessionId, session); LocalSimpSession session = this.sessions.remove(sessionId); if (session != null) { LocalSimpUser user = session.getUser(); user.removeSession(sessionId); if (!user.hasSessions()) { String subscriptionId = accessor.getSubscriptionId(); if (subscriptionId != null) { session.removeSubscription(subscriptionId);
String destination = accessor.getDestination(); if (id != null && destination != null) { session.addSubscription(id, destination); this.users.put(name, simpUser); LocalSimpSession session = new LocalSimpSession(sessionId, simpUser); simpUser.addSession(session); this.sessions.put(sessionId, session); LocalSimpSession session = this.sessions.remove(sessionId); if (session != null) { LocalSimpUser user = session.getUser(); user.removeSession(sessionId); if (!user.hasSessions()) { String subscriptionId = accessor.getSubscriptionId(); if (subscriptionId != null) { session.removeSubscription(subscriptionId);
@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 String toString() { return "id=" + getId() + ", subscriptions=" + this.subscriptions; } }
@Override public int hashCode() { return 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 String toString() { return "id=" + getId() + ", subscriptions=" + this.subscriptions; } }
@Override public boolean equals(Object other) { return (this == other || (other instanceof SimpSubscription && getId().equals(((SimpSubscription) other).getId()))); }
@Override public int hashCode() { return getId().hashCode() * 31 + getSession().getId().hashCode(); }
@Override public int hashCode() { return getId().hashCode(); }
@Override public boolean equals(Object other) { return (this == other || (other instanceof SimpSubscription && getId().equals(((SimpSubscription) other).getId()))); }
@Override public int hashCode() { return getId().hashCode() * 31 + getSession().getId().hashCode(); }
@Override public String toString() { return "id=" + getId() + ", subscriptions=" + this.subscriptions; } }
@Override public boolean equals(Object other) { return (this == other || (other instanceof SimpSubscription && getId().equals(((SimpSubscription) other).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())); }