public boolean equals()

in java/ws-messages/src/main/java/com/epam/deltix/tbwg/messages/BarMessage.java [370:389]


    public boolean equals(Object obj) {
        if (this == obj) return true;
        boolean superEquals = super.equals(obj);
        if (!superEquals) return false;
        if (!(obj instanceof BarMessage)) return false;
        BarMessage other =(BarMessage)obj;
        if (hasOpen() != other.hasOpen()) return false;
        if (hasOpen() && getOpen() != other.getOpen()) return false;
        if (hasHigh() != other.hasHigh()) return false;
        if (hasHigh() && getHigh() != other.getHigh()) return false;
        if (hasLow() != other.hasLow()) return false;
        if (hasLow() && getLow() != other.getLow()) return false;
        if (hasClose() != other.hasClose()) return false;
        if (hasClose() && getClose() != other.getClose()) return false;
        if (hasVolume() != other.hasVolume()) return false;
        if (hasVolume() && getVolume() != other.getVolume()) return false;
        if (hasExchangeId() != other.hasExchangeId()) return false;
        if (hasExchangeId() && getExchangeId() != other.getExchangeId()) return false;
        return true;
    }