Example #1
0
        public override bool Equals(object o)
        {
            if (this == o)
            {
                return(true);
            }
            if (o == null || this.GetType() != o.GetType())
            {
                return(false);
            }
            InMemoryRaftLog that = ( InMemoryRaftLog )o;

            return(Objects.Equals(_appendIndex, that._appendIndex) && Objects.Equals(_commitIndex, that._commitIndex) && Objects.Equals(_term, that._term) && Objects.Equals(_raftLog, that._raftLog));
        }
Example #2
0
 public RaftLogCursorAnonymousInnerClass(InMemoryRaftLog outerInstance, long fromIndex)
 {
     this.outerInstance = outerInstance;
     this._fromIndex    = fromIndex;
     currentIndex       = fromIndex - 1;
 }