private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof Ad)) return false;
Ad other = (Ad) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
this.adGroupId == other.getAdGroupId() &&
((this.adType==null && other.getAdType()==null) ||
(this.adType!=null &&
this.adType.equals(other.getAdType()))) &&
((this.destinationUrl==null && other.getDestinationUrl()==null) ||
(this.destinationUrl!=null &&
this.destinationUrl.equals(other.getDestinationUrl()))) &&
this.disapproved == other.isDisapproved() &&
((this.displayUrl==null && other.getDisplayUrl()==null) ||
(this.displayUrl!=null &&
this.displayUrl.equals(other.getDisplayUrl()))) &&
((this.exemptionRequest==null && other.getExemptionRequest()==null) ||
(this.exemptionRequest!=null &&
this.exemptionRequest.equals(other.getExemptionRequest()))) &&
this.id == other.getId() &&
((this.status==null && other.getStatus()==null) ||
(this.status!=null &&
this.status.equals(other.getStatus())));
__equalsCalc = null;
return _equals;
}
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof Ad)) return false;
Ad other = (Ad) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
this.adGroupId == other.getAdGroupId() &&
((this.adType==null && other.getAdType()==null) ||
(this.adType!=null &&
this.adType.equals(other.getAdType()))) &&
((this.destinationUrl==null && other.getDestinationUrl()==null) ||
(this.destinationUrl!=null &&
this.destinationUrl.equals(other.getDestinationUrl()))) &&
this.disapproved == other.isDisapproved() &&
((this.displayUrl==null && other.getDisplayUrl()==null) ||
(this.displayUrl!=null &&
this.displayUrl.equals(other.getDisplayUrl()))) &&
((this.exemptionRequest==null && other.getExemptionRequest()==null) ||
(this.exemptionRequest!=null &&
this.exemptionRequest.equals(other.getExemptionRequest()))) &&
this.id == other.getId() &&
((this.status==null && other.getStatus()==null) ||
(this.status!=null &&
this.status.equals(other.getStatus())));
__equalsCalc = null;
return _equals;
}
//对__equalsCalc加锁
synchronized (equalsCalc )
if (!(obj instanceof Ad)) return false;
Ad other = (Ad) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
this.adGroupId == other.getAdGroupId() &&
((this.adType==null && other.getAdType()==null) ||
(this.adType!=null &&
this.adType.equals(other.getAdType()))) &&
((this.destinationUrl==null && other.getDestinationUrl()==null) ||
(this.destinationUrl!=null &&
this.destinationUrl.equals(other.getDestinationUrl()))) &&
this.disapproved == other.isDisapproved() &&
((this.displayUrl==null && other.getDisplayUrl()==null) ||
(this.displayUrl!=null &&
this.displayUrl.equals(other.getDisplayUrl()))) &&
((this.exemptionRequest==null && other.getExemptionRequest()==null) ||
(this.exemptionRequest!=null &&
this.exemptionRequest.equals(other.getExemptionRequest()))) &&
this.id == other.getId() &&
((this.status==null && other.getStatus()==null) ||
(this.status!=null &&
this.status.equals(other.getStatus())));
__equalsCalc = null;
}
return _equals;
}