コード例 #1
0
ファイル: CheckPoint.cs プロジェクト: Neo4Net/Neo4Net
        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));
        }
コード例 #2
0
 public bool Equals(SuccessResult other) =>
 NextExpectedStreamRevision == other.NextExpectedStreamRevision && LogPosition.Equals(other.LogPosition);
コード例 #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));
        }
コード例 #4
0
 public override bool matchesSafely(CheckPoint cp)
 {
     return(cp != null && _position.Equals(cp.LogPosition));
 }
コード例 #5
0
 public bool Equals(DeleteResult other) => LogPosition.Equals(other.LogPosition);