Beispiel #1
0
 /// <inheritdoc />
 public bool Equals(Partition other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(ErrorCode == other.ErrorCode &&
            PartitionId == other.PartitionId &&
            LeaderId == other.LeaderId &&
            Replicas.HasEqualElementsInOrder(other.Replicas) &&
            Isrs.HasEqualElementsInOrder(other.Isrs));
 }