@Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof TArtifactDefinition)) return false; TArtifactDefinition that = (TArtifactDefinition) o; return Objects.equals(getType(), that.getType()) && Objects.equals(getRepository(), that.getRepository()) && Objects.equals(getDescription(), that.getDescription()) && Objects.equals(getDeployPath(), that.getDeployPath()) && Objects.equals(getFiles(), that.getFiles()) && Objects.equals(getProperties(), that.getProperties()); }
@Override public int hashCode() { return Objects.hash(getType(), getRepository(), getDescription(), getDeployPath(), getFiles(), getProperties()); }
public Builder(TArtifactDefinition artifactDefinition) { this.type = artifactDefinition.getType(); this.files = artifactDefinition.getFiles(); this.repository = artifactDefinition.getRepository(); this.description = artifactDefinition.getDescription(); this.deployPath = artifactDefinition.getDeployPath(); this.properties = artifactDefinition.getProperties(); }
@Override public String toString() { return "TArtifactDefinition{" + "type=" + getType() + ", repository='" + getRepository() + '\'' + ", description='" + getDescription() + '\'' + ", deployPath='" + getDeployPath() + '\'' + ", files=" + getFiles() + ", properties=" + getProperties() + '}'; }
public Printer visit(TArtifactDefinition node, Parameter parameter) { return new Printer(parameter.getIndent()) .printKeyValue("type", node.getType()) .printKeyValue("repository", node.getRepository()) .printKeyValue("description", node.getDescription()) .printKeyValue("deploy_path", node.getDeployPath()) .printKeyValue("file", node.getFile()) .printKeyValue("files", node.getFiles()); }