public boolean equals()

in spark/common/src/main/java/org/apache/sedona/sql/datasources/osmpbf/build/Fileformat.java [445:476]


    public boolean equals(final Object obj) {
      if (obj == this) {
        return true;
      }
      if (!(obj instanceof Fileformat.Blob)) {
        return super.equals(obj);
      }
      Fileformat.Blob other = (Fileformat.Blob) obj;

      if (hasRaw() != other.hasRaw()) return false;
      if (hasRaw()) {
        if (!getRaw().equals(other.getRaw())) return false;
      }
      if (hasRawSize() != other.hasRawSize()) return false;
      if (hasRawSize()) {
        if (getRawSize() != other.getRawSize()) return false;
      }
      if (hasZlibData() != other.hasZlibData()) return false;
      if (hasZlibData()) {
        if (!getZlibData().equals(other.getZlibData())) return false;
      }
      if (hasLzmaData() != other.hasLzmaData()) return false;
      if (hasLzmaData()) {
        if (!getLzmaData().equals(other.getLzmaData())) return false;
      }
      if (hasOBSOLETEBzip2Data() != other.hasOBSOLETEBzip2Data()) return false;
      if (hasOBSOLETEBzip2Data()) {
        if (!getOBSOLETEBzip2Data().equals(other.getOBSOLETEBzip2Data())) return false;
      }
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }