@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (getBlockECReconstructioninfoCount() > 0) { hash = (37 * hash) + BLOCKECRECONSTRUCTIONINFO_FIELD_NUMBER; hash = (53 * hash) + getBlockECReconstructioninfoList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }
public static BlockECReconstructionCommand convert( BlockECReconstructionCommandProto blkECReconstructionCmdProto) { Collection<BlockECReconstructionInfo> blkECReconstructionInfos = new ArrayList<>(); List<BlockECReconstructionInfoProto> blkECRInfoList = blkECReconstructionCmdProto.getBlockECReconstructioninfoList(); for (BlockECReconstructionInfoProto blkECRInfoProto : blkECRInfoList) { blkECReconstructionInfos .add(convertBlockECReconstructionInfo(blkECRInfoProto)); } return new BlockECReconstructionCommand( DatanodeProtocol.DNA_ERASURE_CODING_RECONSTRUCTION, blkECReconstructionInfos); }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.BlockECReconstructionCommandProto)) { return super.equals(obj); } org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.BlockECReconstructionCommandProto other = (org.apache.hadoop.hdfs.protocol.proto.DatanodeProtocolProtos.BlockECReconstructionCommandProto) obj; boolean result = true; result = result && getBlockECReconstructioninfoList() .equals(other.getBlockECReconstructioninfoList()); result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }