package com.qianwen.smartman.modules.smis.vo; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.Serializable; @ApiModel(description = "积木报表树结构") public class JimuTreeVO implements Serializable { @ApiModelProperty("标识id") private String id; @ApiModelProperty("下拉树显示的文本值") private String title; @ApiModelProperty("实际查询用到的值") private String value; @ApiModelProperty("父节点的标识,和id一起标识上下级关系") private String pid; @ApiModelProperty("是否禁用勾选") private boolean disabled; public static class JimuTreeVOBuilder { private String id; private String title; private String value; private String pid; private boolean disabled; JimuTreeVOBuilder() { } public JimuTreeVOBuilder id(final String id) { this.id = id; return this; } public JimuTreeVOBuilder title(final String title) { this.title = title; return this; } public JimuTreeVOBuilder value(final String value) { this.value = value; return this; } public JimuTreeVOBuilder pid(final String pid) { this.pid = pid; return this; } public JimuTreeVOBuilder disabled(final boolean disabled) { this.disabled = disabled; return this; } public JimuTreeVO build() { return new JimuTreeVO(this.id, this.title, this.value, this.pid, this.disabled); } public String toString() { return "JimuTreeVO.JimuTreeVOBuilder(id=" + this.id + ", title=" + this.title + ", value=" + this.value + ", pid=" + this.pid + ", disabled=" + this.disabled + ")"; } } public void setId(final String id) { this.id = id; } public void setTitle(final String title) { this.title = title; } public void setValue(final String value) { this.value = value; } public void setPid(final String pid) { this.pid = pid; } public void setDisabled(final boolean disabled) { this.disabled = disabled; } public boolean equals(final Object o) { if (o == this) { return true; } if (o instanceof JimuTreeVO) { JimuTreeVO other = (JimuTreeVO) o; if (other.canEqual(this) && isDisabled() == other.isDisabled()) { Object this$id = getId(); Object other$id = other.getId(); if (this$id == null) { if (other$id != null) { return false; } } else if (!this$id.equals(other$id)) { return false; } Object this$title = getTitle(); Object other$title = other.getTitle(); if (this$title == null) { if (other$title != null) { return false; } } else if (!this$title.equals(other$title)) { return false; } Object this$value = getValue(); Object other$value = other.getValue(); if (this$value == null) { if (other$value != null) { return false; } } else if (!this$value.equals(other$value)) { return false; } Object this$pid = getPid(); Object other$pid = other.getPid(); return this$pid == null ? other$pid == null : this$pid.equals(other$pid); } return false; } return false; } protected boolean canEqual(final Object other) { return other instanceof JimuTreeVO; } public int hashCode() { int result = (1 * 59) + (isDisabled() ? 79 : 97); Object $id = getId(); int result2 = (result * 59) + ($id == null ? 43 : $id.hashCode()); Object $title = getTitle(); int result3 = (result2 * 59) + ($title == null ? 43 : $title.hashCode()); Object $value = getValue(); int result4 = (result3 * 59) + ($value == null ? 43 : $value.hashCode()); Object $pid = getPid(); return (result4 * 59) + ($pid == null ? 43 : $pid.hashCode()); } public String toString() { return "JimuTreeVO(id=" + getId() + ", title=" + getTitle() + ", value=" + getValue() + ", pid=" + getPid() + ", disabled=" + isDisabled() + ")"; } public static JimuTreeVOBuilder builder() { return new JimuTreeVOBuilder(); } public JimuTreeVO() { this.disabled = false; } public JimuTreeVO(final String id, final String title, final String value, final String pid, final boolean disabled) { this.disabled = false; this.id = id; this.title = title; this.value = value; this.pid = pid; this.disabled = disabled; } public String getId() { return this.id; } public String getTitle() { return this.title; } public String getValue() { return this.value; } public String getPid() { return this.pid; } public boolean isDisabled() { return this.disabled; } }