toString模板
equals模板
@Override
public boolean equals(Object obj) {
if (obj == null) {
return false;
}
// 是否属于同一类型
if (!(obj instanceof ApplicationAttachInfo)) {
return false;
}
// 强转成同一类型
ApplicationAttachInfo aa = (ApplicationAttachInfo) obj;
// 属性是否相等
if (this.attrName != null && this.attrName.equals(aa.getAttrName())) {
return this.attrValue != null && this.attrValue.equals(aa.getAttrValue());
}
return false;
}
@Override
public String toString() {
return "ApplyRiskAuditDTO{" +
"applicationOrigin='" + applicationOrigin + '\'' +
", auditorID='" + auditorID + '\'' +
", auditorName='" + auditorName + '\'' +
", riskRemark='" + riskRemark + '\'' +
", auditFeedback='" + auditFeedback + '\'' +
", merchantBusinessType=" + merchantBusinessType +
", passedPiTypeList=" + passedPiTypeList +
", rejectedPiTypeList=" + rejectedPiTypeList +
", applicationID=" + applicationID +
", auditResult=" + auditResult +
", merchantIndustryId=" + merchantIndustryId +
", merchantNO='" + merchantNO + '\'' +
", industryLimitQuotas='" + industryLimitQuotas + '\'' +
", jdThirdIndustryCode='" + jdThirdIndustryCode + '\'' +
", jdThirdIndustryName='" + jdThirdIndustryName + '\'' +
", riskLevel=" + riskLevel +
", applicationReviewInfo=" + applicationReviewInfo +
", innerMerchantNo='" + innerMerchantNo + '\'' +
", productId=" + productId +
'}';
}
public int hashCode() {
int PRIME = true;
int result = 1;
int result = result * 59 + (this.isSuccess() ? 79 : 97);
Object $code = this.getCode();
result = result * 59 + ($code == null ? 43 : $code.hashCode());
Object $message = this.getMessage();
result = result * 59 + ($message == null ? 43 : $message.hashCode());
Object $data = this.getData();
result = result * 59 + ($data == null ? 43 : $data.hashCode());
return result;
}