package com.qianwen.smartman.modules.dnc.context; import com.qianwen.smartman.modules.dnc.entity.DncArtBag; public class DncFileNameProcessRuleContext { private String fileName; private String directoryPath; private DncArtBag artBag; public static class DncFileNameProcessRuleContextBuilder { private String fileName; private String directoryPath; private DncArtBag artBag; DncFileNameProcessRuleContextBuilder() { } public DncFileNameProcessRuleContextBuilder fileName(final String fileName) { this.fileName = fileName; return this; } public DncFileNameProcessRuleContextBuilder directoryPath(final String directoryPath) { this.directoryPath = directoryPath; return this; } public DncFileNameProcessRuleContextBuilder artBag(final DncArtBag artBag) { this.artBag = artBag; return this; } public DncFileNameProcessRuleContext build() { return new DncFileNameProcessRuleContext(this.fileName, this.directoryPath, this.artBag); } public String toString() { return "DncFileNameProcessRuleContext.DncFileNameProcessRuleContextBuilder(fileName=" + this.fileName + ", directoryPath=" + this.directoryPath + ", artBag=" + this.artBag + ")"; } } public void setFileName(final String fileName) { this.fileName = fileName; } public void setDirectoryPath(final String directoryPath) { this.directoryPath = directoryPath; } public void setArtBag(final DncArtBag artBag) { this.artBag = artBag; } public boolean equals(final Object o) { if (o == this) { return true; } if (o instanceof DncFileNameProcessRuleContext) { DncFileNameProcessRuleContext other = (DncFileNameProcessRuleContext) o; if (other.canEqual(this)) { Object this$fileName = getFileName(); Object other$fileName = other.getFileName(); if (this$fileName == null) { if (other$fileName != null) { return false; } } else if (!this$fileName.equals(other$fileName)) { return false; } Object this$directoryPath = getDirectoryPath(); Object other$directoryPath = other.getDirectoryPath(); if (this$directoryPath == null) { if (other$directoryPath != null) { return false; } } else if (!this$directoryPath.equals(other$directoryPath)) { return false; } Object this$artBag = getArtBag(); Object other$artBag = other.getArtBag(); return this$artBag == null ? other$artBag == null : this$artBag.equals(other$artBag); } return false; } return false; } protected boolean canEqual(final Object other) { return other instanceof DncFileNameProcessRuleContext; } public int hashCode() { Object $fileName = getFileName(); int result = (1 * 59) + ($fileName == null ? 43 : $fileName.hashCode()); Object $directoryPath = getDirectoryPath(); int result2 = (result * 59) + ($directoryPath == null ? 43 : $directoryPath.hashCode()); Object $artBag = getArtBag(); return (result2 * 59) + ($artBag == null ? 43 : $artBag.hashCode()); } public String toString() { return "DncFileNameProcessRuleContext(fileName=" + getFileName() + ", directoryPath=" + getDirectoryPath() + ", artBag=" + getArtBag() + ")"; } DncFileNameProcessRuleContext(final String fileName, final String directoryPath, final DncArtBag artBag) { this.fileName = fileName; this.directoryPath = directoryPath; this.artBag = artBag; } public static DncFileNameProcessRuleContextBuilder builder() { return new DncFileNameProcessRuleContextBuilder(); } public String getFileName() { return this.fileName; } public String getDirectoryPath() { return this.directoryPath; } public DncArtBag getArtBag() { return this.artBag; } }