package com.qianwen.core.excel.extend.vo;
|
|
import java.util.HashSet;
|
import java.util.Set;
|
|
/* loaded from: blade-starter-excel-9.3.0.0-SNAPSHOT.jar:org/springblade/core/excel/extend/vo/ErrorMessage.class */
|
public class ErrorMessage {
|
private Long lineNum;
|
private Set<String> errors;
|
|
public void setLineNum(final Long lineNum) {
|
this.lineNum = lineNum;
|
}
|
|
public void setErrors(final Set<String> errors) {
|
this.errors = errors;
|
}
|
|
public boolean equals(final Object o) {
|
if (o == this) {
|
return true;
|
}
|
if (o instanceof ErrorMessage) {
|
ErrorMessage other = (ErrorMessage) o;
|
if (other.canEqual(this)) {
|
Object this$lineNum = getLineNum();
|
Object other$lineNum = other.getLineNum();
|
if (this$lineNum == null) {
|
if (other$lineNum != null) {
|
return false;
|
}
|
} else if (!this$lineNum.equals(other$lineNum)) {
|
return false;
|
}
|
Object this$errors = getErrors();
|
Object other$errors = other.getErrors();
|
return this$errors == null ? other$errors == null : this$errors.equals(other$errors);
|
}
|
return false;
|
}
|
return false;
|
}
|
|
protected boolean canEqual(final Object other) {
|
return other instanceof ErrorMessage;
|
}
|
|
public int hashCode() {
|
Object $lineNum = getLineNum();
|
int result = (1 * 59) + ($lineNum == null ? 43 : $lineNum.hashCode());
|
Object $errors = getErrors();
|
return (result * 59) + ($errors == null ? 43 : $errors.hashCode());
|
}
|
|
public String toString() {
|
return "ErrorMessage(lineNum=" + getLineNum() + ", errors=" + getErrors() + ")";
|
}
|
|
public ErrorMessage() {
|
this.errors = new HashSet();
|
}
|
|
public ErrorMessage(final Long lineNum, final Set<String> errors) {
|
this.errors = new HashSet();
|
this.lineNum = lineNum;
|
this.errors = errors;
|
}
|
|
public Long getLineNum() {
|
return this.lineNum;
|
}
|
|
public Set<String> getErrors() {
|
return this.errors;
|
}
|
|
public ErrorMessage(Set<String> errors) {
|
this.errors = new HashSet();
|
this.errors = errors;
|
}
|
|
public ErrorMessage(String error) {
|
this.errors = new HashSet();
|
HashSet<String> objects = new HashSet<>();
|
objects.add(error);
|
this.errors = objects;
|
}
|
}
|