public override bool Equals(object o) { if (this == o) { return(true); } if (o == null || this.GetType() != o.GetType()) { return(false); } CheckPoint that = ( CheckPoint )o; return(!(_logPosition != null ?!_logPosition.Equals(that._logPosition) : that._logPosition != null)); }
public bool Equals(SuccessResult other) => NextExpectedStreamRevision == other.NextExpectedStreamRevision && LogPosition.Equals(other.LogPosition);
public override bool Equals(object o) { if (this == o) { return(true); } if (o == null || this.GetType() != o.GetType()) { return(false); } LogEntryStart start = ( LogEntryStart )o; return(_authorId == start._authorId && _lastCommittedTxWhenTransactionStarted == start._lastCommittedTxWhenTransactionStarted && _masterId == start._masterId && _timeWritten == start._timeWritten && Arrays.Equals(_additionalHeader, start._additionalHeader) && _startPosition.Equals(start._startPosition)); }
public override bool matchesSafely(CheckPoint cp) { return(cp != null && _position.Equals(cp.LogPosition)); }
public bool Equals(DeleteResult other) => LogPosition.Equals(other.LogPosition);