Ejemplo n.º 1
0
 public override bool Equals(object obj)
 {
     if (this == obj)
     {
         return(true);
     }
     if (obj == null || !(obj is Org.Apache.Hadoop.Hdfs.Server.Datanode.ReportBadBlockAction
                          ))
     {
         return(false);
     }
     Org.Apache.Hadoop.Hdfs.Server.Datanode.ReportBadBlockAction other = (Org.Apache.Hadoop.Hdfs.Server.Datanode.ReportBadBlockAction
                                                                          )obj;
     if (block == null)
     {
         if (other.block != null)
         {
             return(false);
         }
     }
     else
     {
         if (!block.Equals(other.block))
         {
             return(false);
         }
     }
     if (storageType != other.storageType)
     {
         return(false);
     }
     if (storageUuid == null)
     {
         if (other.storageUuid != null)
         {
             return(false);
         }
     }
     else
     {
         if (!storageUuid.Equals(other.storageUuid))
         {
             return(false);
         }
     }
     return(true);
 }