public boolean equals()

in java/clickhouse-connector/src/integration-test/java/com/epam/deltix/timebase/connector/clickhouse/timebase/TradeTestMessage.java [253:274]


    public boolean equals(Object obj) {
        if (this == obj) return true;
        boolean superEquals = super.equals(obj);
        if (!superEquals) return false;
        if (!(obj instanceof TradeTestMessage)) return false;
        TradeTestMessage other =(TradeTestMessage)obj;
        if (hasPrice() != other.hasPrice()) return false;
        if (hasPrice() && getPrice() != other.getPrice()) return false;
        if (hasSize() != other.hasSize()) return false;
        if (hasSize() && getSize() != other.getSize()) return false;
        if (hasCondition() != other.hasCondition()) return false;
        if (hasCondition()) {
            if (getCondition().length() != other.getCondition().length()) return false; else {
                String s1 = getCondition().toString();
                String s2 = other.getCondition().toString();
                if (!s1.equals(s2)) return false;
            }
        }
        if (hasSequenceNumber() != other.hasSequenceNumber()) return false;
        if (hasSequenceNumber() && getSequenceNumber() != other.getSequenceNumber()) return false;
        return true;
    }