public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof Payment)) {
return false;
}
Payment other = (Payment) obj;
if (obj == null) {
return false;
}
if (this == obj) {
return true;
}
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
this.amount == other.getAmount() &&
((this.paymentType == null && other.getPaymentType() == null) ||
(this.paymentType != null &&
this.paymentType.equals(other.getPaymentType())));
__equalsCalc = null;
return _equals;
}