public boolean equals()

in tablestore/src/main/java/com/alicloud/openservices/tablestore/core/protocol/PlainBufferCell.java [118:152]


    public boolean equals(Object o) {
        if (o == null || ! (o instanceof PlainBufferCell)) {
            return false;
        }

        try {
            if (getChecksum() != ((PlainBufferCell) o).getChecksum()) {
                return false;
            }
        } catch (IOException e) {
            throw new ClientException("Error when getChecksum.", e);
        }

        if ((hasCellName() != ((PlainBufferCell) o).hasCellName())
                || (hasCellName() && !getCellName().equals(((PlainBufferCell) o).getCellName()))) {
            return false;
        };
        if ((hasCellValue() != ((PlainBufferCell) o).hasCellValue())
                || (hasCellValue() && !getCellValue().equals(((PlainBufferCell) o).getCellValue()))) {
            return false;
        }
        if ((isPk() != ((PlainBufferCell) o).isPk())
                || (isPk() && !getPkCellValue().equals(((PlainBufferCell) o).getPkCellValue()))) {
            return false;
        }
        if ((hasCellType() != ((PlainBufferCell) o).hasCellType())
                || (hasCellType() && (getCellType() != ((PlainBufferCell) o).getCellType()))) {
            return false;
        }
        if ((hasCellTimestamp() != ((PlainBufferCell) o).hasCellTimestamp())
                || (hasCellTimestamp() && (getCellTimestamp() != ((PlainBufferCell) o).getCellTimestamp()))) {
            return false;
        }
        return true;
    }