in messages/src/main/java/com/epam/deltix/timebase/messages/universal/TradeEntry.java [594:685]
public boolean equals(Object obj) {
if (this == obj) return true;
boolean superEquals = super.equals(obj);
if (!superEquals) return false;
if (!(obj instanceof TradeEntryInfo)) return false;
TradeEntryInfo other =(TradeEntryInfo)obj;
if (hasPrice() != other.hasPrice()) return false;
if (hasPrice() && !Decimal64Utils.equals(getPrice(), other.getPrice())) return false;
if (hasSize() != other.hasSize()) return false;
if (hasSize() && !Decimal64Utils.equals(getSize(), other.getSize())) return false;
if (hasCondition() != other.hasCondition()) return false;
if (hasCondition()) {
if (getCondition().length() != other.getCondition().length()) return false; else {
CharSequence s1 = getCondition();
CharSequence s2 = other.getCondition();
if ((s1 instanceof MutableString && s2 instanceof MutableString) || (s1 instanceof String && s2 instanceof String) || (s1 instanceof BinaryAsciiString && s2 instanceof BinaryAsciiString)) {
if (!s1.equals(s2)) return false;
} else {
if (!CharSequenceUtils.equals(s1, s2)) return false;
}
}
}
if (hasTradeType() != other.hasTradeType()) return false;
if (hasTradeType() && getTradeType() != other.getTradeType()) return false;
if (hasSellerNumberOfOrders() != other.hasSellerNumberOfOrders()) return false;
if (hasSellerNumberOfOrders() && getSellerNumberOfOrders() != other.getSellerNumberOfOrders()) return false;
if (hasBuyerNumberOfOrders() != other.hasBuyerNumberOfOrders()) return false;
if (hasBuyerNumberOfOrders() && getBuyerNumberOfOrders() != other.getBuyerNumberOfOrders()) return false;
if (hasSellerOrderId() != other.hasSellerOrderId()) return false;
if (hasSellerOrderId()) {
if (getSellerOrderId().length() != other.getSellerOrderId().length()) return false; else {
CharSequence s1 = getSellerOrderId();
CharSequence s2 = other.getSellerOrderId();
if ((s1 instanceof MutableString && s2 instanceof MutableString) || (s1 instanceof String && s2 instanceof String) || (s1 instanceof BinaryAsciiString && s2 instanceof BinaryAsciiString)) {
if (!s1.equals(s2)) return false;
} else {
if (!CharSequenceUtils.equals(s1, s2)) return false;
}
}
}
if (hasBuyerOrderId() != other.hasBuyerOrderId()) return false;
if (hasBuyerOrderId()) {
if (getBuyerOrderId().length() != other.getBuyerOrderId().length()) return false; else {
CharSequence s1 = getBuyerOrderId();
CharSequence s2 = other.getBuyerOrderId();
if ((s1 instanceof MutableString && s2 instanceof MutableString) || (s1 instanceof String && s2 instanceof String) || (s1 instanceof BinaryAsciiString && s2 instanceof BinaryAsciiString)) {
if (!s1.equals(s2)) return false;
} else {
if (!CharSequenceUtils.equals(s1, s2)) return false;
}
}
}
if (hasSellerParticipantId() != other.hasSellerParticipantId()) return false;
if (hasSellerParticipantId()) {
if (getSellerParticipantId().length() != other.getSellerParticipantId().length()) return false; else {
CharSequence s1 = getSellerParticipantId();
CharSequence s2 = other.getSellerParticipantId();
if ((s1 instanceof MutableString && s2 instanceof MutableString) || (s1 instanceof String && s2 instanceof String) || (s1 instanceof BinaryAsciiString && s2 instanceof BinaryAsciiString)) {
if (!s1.equals(s2)) return false;
} else {
if (!CharSequenceUtils.equals(s1, s2)) return false;
}
}
}
if (hasBuyerParticipantId() != other.hasBuyerParticipantId()) return false;
if (hasBuyerParticipantId()) {
if (getBuyerParticipantId().length() != other.getBuyerParticipantId().length()) return false; else {
CharSequence s1 = getBuyerParticipantId();
CharSequence s2 = other.getBuyerParticipantId();
if ((s1 instanceof MutableString && s2 instanceof MutableString) || (s1 instanceof String && s2 instanceof String) || (s1 instanceof BinaryAsciiString && s2 instanceof BinaryAsciiString)) {
if (!s1.equals(s2)) return false;
} else {
if (!CharSequenceUtils.equals(s1, s2)) return false;
}
}
}
if (hasSide() != other.hasSide()) return false;
if (hasSide() && getSide() != other.getSide()) return false;
if (hasMatchId() != other.hasMatchId()) return false;
if (hasMatchId()) {
if (getMatchId().length() != other.getMatchId().length()) return false; else {
CharSequence s1 = getMatchId();
CharSequence s2 = other.getMatchId();
if ((s1 instanceof MutableString && s2 instanceof MutableString) || (s1 instanceof String && s2 instanceof String) || (s1 instanceof BinaryAsciiString && s2 instanceof BinaryAsciiString)) {
if (!s1.equals(s2)) return false;
} else {
if (!CharSequenceUtils.equals(s1, s2)) return false;
}
}
}
return true;
}