package com.qianwen.core.coderule.model;
|
|
import java.util.HashMap;
|
import java.util.Map;
|
|
/* loaded from: blade-starter-coderule-9.3.0.0-SNAPSHOT.jar:org/springblade/core/coderule/model/CodeRuleContext.class */
|
public class CodeRuleContext {
|
private CodeRuleModel codeRuleModel;
|
private Map<String, Object> objectData = new HashMap();
|
private Map<Integer, String> entryData = new HashMap();
|
|
public void setCodeRuleModel(final CodeRuleModel codeRuleModel) {
|
this.codeRuleModel = codeRuleModel;
|
}
|
|
public void setObjectData(final Map<String, Object> objectData) {
|
this.objectData = objectData;
|
}
|
|
public void setEntryData(final Map<Integer, String> entryData) {
|
this.entryData = entryData;
|
}
|
|
public boolean equals(final Object o) {
|
if (o == this) {
|
return true;
|
}
|
if (o instanceof CodeRuleContext) {
|
CodeRuleContext other = (CodeRuleContext) o;
|
if (other.canEqual(this)) {
|
Object this$codeRuleModel = getCodeRuleModel();
|
Object other$codeRuleModel = other.getCodeRuleModel();
|
if (this$codeRuleModel == null) {
|
if (other$codeRuleModel != null) {
|
return false;
|
}
|
} else if (!this$codeRuleModel.equals(other$codeRuleModel)) {
|
return false;
|
}
|
Object this$objectData = getObjectData();
|
Object other$objectData = other.getObjectData();
|
if (this$objectData == null) {
|
if (other$objectData != null) {
|
return false;
|
}
|
} else if (!this$objectData.equals(other$objectData)) {
|
return false;
|
}
|
Object this$entryData = getEntryData();
|
Object other$entryData = other.getEntryData();
|
return this$entryData == null ? other$entryData == null : this$entryData.equals(other$entryData);
|
}
|
return false;
|
}
|
return false;
|
}
|
|
protected boolean canEqual(final Object other) {
|
return other instanceof CodeRuleContext;
|
}
|
|
public int hashCode() {
|
Object $codeRuleModel = getCodeRuleModel();
|
int result = (1 * 59) + ($codeRuleModel == null ? 43 : $codeRuleModel.hashCode());
|
Object $objectData = getObjectData();
|
int result2 = (result * 59) + ($objectData == null ? 43 : $objectData.hashCode());
|
Object $entryData = getEntryData();
|
return (result2 * 59) + ($entryData == null ? 43 : $entryData.hashCode());
|
}
|
|
public String toString() {
|
return "CodeRuleContext(codeRuleModel=" + getCodeRuleModel() + ", objectData=" + getObjectData() + ", entryData=" + getEntryData() + ")";
|
}
|
|
public CodeRuleModel getCodeRuleModel() {
|
return this.codeRuleModel;
|
}
|
|
public Map<String, Object> getObjectData() {
|
return this.objectData;
|
}
|
|
public Map<Integer, String> getEntryData() {
|
return this.entryData;
|
}
|
}
|