protected boolean isSameDSMember(ClientProxyMembershipID memberId) { return this.proxyID.isSameDSMember(memberId); }
protected boolean isSameDSMember(ClientProxyMembershipID memberId) { return this.proxyID.isSameDSMember(memberId); }
/** * Indicates whether some other object is "equal to" this one. * * @param other the reference object with which to compare. * @return true if this object is the same as the obj argument; * false otherwise. */ @Override public boolean equals(Object other) { if (other == this) return true; // if (other == null) return false; if (!(other instanceof HandShake)) return false; final HandShake that = (HandShake) other; /*if (identity != null && identity.length > 0) { for (int i = 0; i < identity.length; i++) { if (this.identity[i] != that.identity[i]) return false; } } if (this.code != that.code) return false; return true;*/ if(this.id.isSameDSMember(that.id) && this.code ==that.code) { return true; } else { return false; } }
/** * Indicates whether some other object is "equal to" this one. * * @param other the reference object with which to compare. * @return true if this object is the same as the obj argument; * false otherwise. */ @Override public boolean equals(Object other) { if (other == this) return true; // if (other == null) return false; if (!(other instanceof HandShake)) return false; final HandShake that = (HandShake) other; /*if (identity != null && identity.length > 0) { for (int i = 0; i < identity.length; i++) { if (this.identity[i] != that.identity[i]) return false; } } if (this.code != that.code) return false; return true;*/ if(this.id.isSameDSMember(that.id) && this.code ==that.code) { return true; } else { return false; } }