package com.qianwen.smartman.modules.dnc.dto;
|
|
public class DefaultDncFileNameProcessRule implements DncFileNameProcessRule {
|
public Integer extraSource;
|
public String handleRegexp;
|
public String replaceString;
|
public boolean suffix;
|
public String connectors;
|
|
public void setExtraSource(final Integer extraSource) {
|
this.extraSource = extraSource;
|
}
|
|
public void setHandleRegexp(final String handleRegexp) {
|
this.handleRegexp = handleRegexp;
|
}
|
|
public void setReplaceString(final String replaceString) {
|
this.replaceString = replaceString;
|
}
|
|
public void setSuffix(final boolean suffix) {
|
this.suffix = suffix;
|
}
|
|
public void setConnectors(final String connectors) {
|
this.connectors = connectors;
|
}
|
|
public boolean equals(final Object o) {
|
if (o == this) {
|
return true;
|
}
|
if (o instanceof DefaultDncFileNameProcessRule) {
|
DefaultDncFileNameProcessRule other = (DefaultDncFileNameProcessRule) o;
|
if (other.canEqual(this) && isSuffix() == other.isSuffix()) {
|
Object this$extraSource = getExtraSource();
|
Object other$extraSource = other.getExtraSource();
|
if (this$extraSource == null) {
|
if (other$extraSource != null) {
|
return false;
|
}
|
} else if (!this$extraSource.equals(other$extraSource)) {
|
return false;
|
}
|
Object this$handleRegexp = getHandleRegexp();
|
Object other$handleRegexp = other.getHandleRegexp();
|
if (this$handleRegexp == null) {
|
if (other$handleRegexp != null) {
|
return false;
|
}
|
} else if (!this$handleRegexp.equals(other$handleRegexp)) {
|
return false;
|
}
|
Object this$replaceString = getReplaceString();
|
Object other$replaceString = other.getReplaceString();
|
if (this$replaceString == null) {
|
if (other$replaceString != null) {
|
return false;
|
}
|
} else if (!this$replaceString.equals(other$replaceString)) {
|
return false;
|
}
|
Object this$connectors = getConnectors();
|
Object other$connectors = other.getConnectors();
|
return this$connectors == null ? other$connectors == null : this$connectors.equals(other$connectors);
|
}
|
return false;
|
}
|
return false;
|
}
|
|
protected boolean canEqual(final Object other) {
|
return other instanceof DefaultDncFileNameProcessRule;
|
}
|
|
public int hashCode() {
|
int result = (1 * 59) + (isSuffix() ? 79 : 97);
|
Object $extraSource = getExtraSource();
|
int result2 = (result * 59) + ($extraSource == null ? 43 : $extraSource.hashCode());
|
Object $handleRegexp = getHandleRegexp();
|
int result3 = (result2 * 59) + ($handleRegexp == null ? 43 : $handleRegexp.hashCode());
|
Object $replaceString = getReplaceString();
|
int result4 = (result3 * 59) + ($replaceString == null ? 43 : $replaceString.hashCode());
|
Object $connectors = getConnectors();
|
return (result4 * 59) + ($connectors == null ? 43 : $connectors.hashCode());
|
}
|
|
public String toString() {
|
return "DefaultDncFileNameProcessRule(extraSource=" + getExtraSource() + ", handleRegexp=" + getHandleRegexp() + ", replaceString=" + getReplaceString() + ", suffix=" + isSuffix() + ", connectors=" + getConnectors() + ")";
|
}
|
|
public Integer getExtraSource() {
|
return this.extraSource;
|
}
|
|
public String getHandleRegexp() {
|
return this.handleRegexp;
|
}
|
|
public String getReplaceString() {
|
return this.replaceString;
|
}
|
|
public boolean isSuffix() {
|
return this.suffix;
|
}
|
|
public String getConnectors() {
|
return this.connectors;
|
}
|
}
|