package com.qianwen.smartman.modules.system.vo; import com.google.common.collect.ImmutableMap; import java.util.ArrayList; import java.util.List; import java.util.Map; import com.qianwen.core.tool.utils.Func; import com.qianwen.smartman.modules.system.constant.FieldConstant; /* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/system/vo/ChartNameValueDataVO.class */ public class ChartNameValueDataVO { private List> data = new ArrayList(); public void setData(final List> data) { this.data = data; } public boolean equals(final Object o) { if (o == this) { return true; } if (o instanceof ChartNameValueDataVO) { ChartNameValueDataVO other = (ChartNameValueDataVO) o; if (other.canEqual(this)) { Object this$data = getData(); Object other$data = other.getData(); return this$data == null ? other$data == null : this$data.equals(other$data); } return false; } return false; } protected boolean canEqual(final Object other) { return other instanceof ChartNameValueDataVO; } public int hashCode() { Object $data = getData(); int result = (1 * 59) + ($data == null ? 43 : $data.hashCode()); return result; } public String toString() { return "ChartNameValueDataVO(data=" + getData() + ")"; } public List> getData() { return this.data; } public ChartNameValueDataVO addValue(Object value) { this.data.add(ImmutableMap.of(FieldConstant.OPTION_KEY, value)); return this; } public ChartNameValueDataVO addValue(String name, Object value) { this.data.add(ImmutableMap.of("name", name, FieldConstant.OPTION_KEY, value)); return this; } public ChartNameValueDataVO addValue(String name, Object value, int progress) { this.data.add(ImmutableMap.of("name", name, FieldConstant.OPTION_KEY, value, "data", Integer.valueOf(progress))); return this; } public ChartNameValueDataVO addValue(String name, Object value, String suffixText, String backgroundColor) { this.data.add(ImmutableMap.of("name", name, "prefixText", name, FieldConstant.OPTION_KEY, value, "suffixText", Func.toStr(suffixText, ""), "backgroundColor", backgroundColor)); return this; } }