package com.qianwen.core.datascope.model; import java.io.Serializable; import com.qianwen.core.datascope.constant.DataScopeConstant; import com.qianwen.core.datascope.enums.DataScopeEnum; /* loaded from: blade-starter-datascope-9.3.0.1-SNAPSHOT.jar:org/springblade/core/datascope/model/DataScopeModel.class */ public class DataScopeModel implements Serializable { private static final long serialVersionUID = 1; private Boolean searched; private String resourceCode; private String scopeColumn; private Integer scopeType; private String scopeField; private String scopeValue; public void setSearched(final Boolean searched) { this.searched = searched; } public void setResourceCode(final String resourceCode) { this.resourceCode = resourceCode; } public void setScopeColumn(final String scopeColumn) { this.scopeColumn = scopeColumn; } public void setScopeType(final Integer scopeType) { this.scopeType = scopeType; } public void setScopeField(final String scopeField) { this.scopeField = scopeField; } public void setScopeValue(final String scopeValue) { this.scopeValue = scopeValue; } public boolean equals(final Object o) { if (o == this) { return true; } if (o instanceof DataScopeModel) { DataScopeModel other = (DataScopeModel) o; if (other.canEqual(this)) { Object this$searched = getSearched(); Object other$searched = other.getSearched(); if (this$searched == null) { if (other$searched != null) { return false; } } else if (!this$searched.equals(other$searched)) { return false; } Object this$scopeType = getScopeType(); Object other$scopeType = other.getScopeType(); if (this$scopeType == null) { if (other$scopeType != null) { return false; } } else if (!this$scopeType.equals(other$scopeType)) { return false; } Object this$resourceCode = getResourceCode(); Object other$resourceCode = other.getResourceCode(); if (this$resourceCode == null) { if (other$resourceCode != null) { return false; } } else if (!this$resourceCode.equals(other$resourceCode)) { return false; } Object this$scopeColumn = getScopeColumn(); Object other$scopeColumn = other.getScopeColumn(); if (this$scopeColumn == null) { if (other$scopeColumn != null) { return false; } } else if (!this$scopeColumn.equals(other$scopeColumn)) { return false; } Object this$scopeField = getScopeField(); Object other$scopeField = other.getScopeField(); if (this$scopeField == null) { if (other$scopeField != null) { return false; } } else if (!this$scopeField.equals(other$scopeField)) { return false; } Object this$scopeValue = getScopeValue(); Object other$scopeValue = other.getScopeValue(); return this$scopeValue == null ? other$scopeValue == null : this$scopeValue.equals(other$scopeValue); } return false; } return false; } protected boolean canEqual(final Object other) { return other instanceof DataScopeModel; } public int hashCode() { Object $searched = getSearched(); int result = (1 * 59) + ($searched == null ? 43 : $searched.hashCode()); Object $scopeType = getScopeType(); int result2 = (result * 59) + ($scopeType == null ? 43 : $scopeType.hashCode()); Object $resourceCode = getResourceCode(); int result3 = (result2 * 59) + ($resourceCode == null ? 43 : $resourceCode.hashCode()); Object $scopeColumn = getScopeColumn(); int result4 = (result3 * 59) + ($scopeColumn == null ? 43 : $scopeColumn.hashCode()); Object $scopeField = getScopeField(); int result5 = (result4 * 59) + ($scopeField == null ? 43 : $scopeField.hashCode()); Object $scopeValue = getScopeValue(); return (result5 * 59) + ($scopeValue == null ? 43 : $scopeValue.hashCode()); } public String toString() { return "DataScopeModel(searched=" + getSearched() + ", resourceCode=" + getResourceCode() + ", scopeColumn=" + getScopeColumn() + ", scopeType=" + getScopeType() + ", scopeField=" + getScopeField() + ", scopeValue=" + getScopeValue() + ")"; } public DataScopeModel() { this.searched = Boolean.FALSE; this.scopeColumn = DataScopeConstant.DEFAULT_COLUMN; this.scopeType = Integer.valueOf(DataScopeEnum.ALL.getType()); } public DataScopeModel(Boolean searched) { this.searched = Boolean.FALSE; this.scopeColumn = DataScopeConstant.DEFAULT_COLUMN; this.scopeType = Integer.valueOf(DataScopeEnum.ALL.getType()); this.searched = searched; } public Boolean getSearched() { return this.searched; } public String getResourceCode() { return this.resourceCode; } public String getScopeColumn() { return this.scopeColumn; } public Integer getScopeType() { return this.scopeType; } public String getScopeField() { return this.scopeField; } public String getScopeValue() { return this.scopeValue; } }