public override bool Equals(object o) { if (this == o) { return(true); } if (o == null || this.GetType() != o.GetType()) { return(false); } ClusterContextImpl that = ( ClusterContextImpl )o; if (_currentlyJoiningInstances != null ?!_currentlyJoiningInstances.Equals(that._currentlyJoiningInstances) : that._currentlyJoiningInstances != null) { return(false); } //JAVA TO C# CONVERTER WARNING: LINQ 'SequenceEqual' is not always identical to Java AbstractList 'equals': //ORIGINAL LINE: if (discoveredInstances != null ? !discoveredInstances.equals(that.discoveredInstances) : that.discoveredInstances != null) if (_discoveredInstances != null ?!_discoveredInstances.SequenceEqual(that._discoveredInstances) : that._discoveredInstances != null) { return(false); } if (_heartbeatContext != null ?!_heartbeatContext.Equals(that._heartbeatContext) : that._heartbeatContext != null) { return(false); } if (_joinDeniedConfigurationResponseState != null ?!_joinDeniedConfigurationResponseState.Equals(that._joinDeniedConfigurationResponseState) : that._joinDeniedConfigurationResponseState != null) { return(false); } if (_joiningInstances != null ?!_joiningInstances.Equals(that._joiningInstances) : that._joiningInstances != null) { return(false); } return(_learnerContext != null?_learnerContext.Equals(that._learnerContext) : that._learnerContext == null); }