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

            return(Objects.Equals(LeaderTermConflict, request.LeaderTermConflict) && Objects.Equals(PrevLogIndexConflict, request.PrevLogIndexConflict) && Objects.Equals(PrevLogTermConflict, request.PrevLogTermConflict) && Objects.Equals(LeaderCommitConflict, request.LeaderCommitConflict) && Arrays.Equals(EntriesConflict, request.EntriesConflict));
        }
Exemple #2
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public T handle(RaftMessages_AppendEntries_Request request) throws E
        public override T Handle(RaftMessages_AppendEntries_Request request)
        {
            return(default(T));
        }