Ejemplo n.º 1
0
        public override bool Equals(object o)
        {
            if (this == o)
            {
                return(true);
            }
            if (o == null || this.GetType() != o.GetType())
            {
                return(false);
            }
            if (!base.Equals(o))
            {
                return(false);
            }

            RaftMessages_Heartbeat heartbeat = ( RaftMessages_Heartbeat )o;

            return(LeaderTermConflict == heartbeat.LeaderTermConflict && CommitIndexConflict == heartbeat.CommitIndexConflict && CommitIndexTermConflict == heartbeat.CommitIndexTermConflict);
        }
Ejemplo n.º 2
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public T handle(RaftMessages_Heartbeat heartbeat) throws E
        public override T Handle(RaftMessages_Heartbeat heartbeat)
        {
            return(default(T));
        }