public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof Order)) {
return false;
}
Order other = (Order) obj;
if (obj == null) {
return false;
}
if (this == obj) {
return true;
}
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
((this.businessPartner == null && other.getBusinessPartner() == null) ||
(this.businessPartner != null &&
this.businessPartner.equals(other.getBusinessPartner()))) &&
((this.lines == null && other.getLines() == null) ||
(this.lines != null &&
java.util.Arrays.equals(this.lines, other.getLines()))) &&
((this.orderId == null && other.getOrderId() == null) ||
(this.orderId != null &&
this.orderId.equals(other.getOrderId()))) &&
((this.payment == null && other.getPayment() == null) ||
(this.payment != null &&
java.util.Arrays.equals(this.payment, other.getPayment()))) &&
this.state == other.getState();
__equalsCalc = null;
return _equals;
}