Beispiel #1
0
        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));
        }
Beispiel #2
0
 public bool Equals(SuccessResult other) =>
 NextExpectedStreamRevision == other.NextExpectedStreamRevision && LogPosition.Equals(other.LogPosition);
Beispiel #3
0
        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));
        }
Beispiel #4
0
 public override bool matchesSafely(CheckPoint cp)
 {
     return(cp != null && _position.Equals(cp.LogPosition));
 }
Beispiel #5
0
 public bool Equals(DeleteResult other) => LogPosition.Equals(other.LogPosition);