package com.qianwen.core.i18n.dto;
|
|
import javax.validation.constraints.NotEmpty;
|
|
/* loaded from: blade-starter-i18n-9.3.0.0-SNAPSHOT.jar:org/springblade/core/i18n/dto/I18nMessage.class */
|
public class I18nMessage {
|
@NotEmpty(message = "{i18nMessage.code}:{}")
|
private String code;
|
@NotEmpty(message = "{i18nMessage.message}:{}")
|
private String message;
|
@NotEmpty(message = "{i18nMessage.languageTag}:{}")
|
private String languageTag;
|
|
public void setCode(final String code) {
|
this.code = code;
|
}
|
|
public void setMessage(final String message) {
|
this.message = message;
|
}
|
|
public void setLanguageTag(final String languageTag) {
|
this.languageTag = languageTag;
|
}
|
|
public boolean equals(final Object o) {
|
if (o == this) {
|
return true;
|
}
|
if (o instanceof I18nMessage) {
|
I18nMessage other = (I18nMessage) o;
|
if (other.canEqual(this)) {
|
Object this$code = getCode();
|
Object other$code = other.getCode();
|
if (this$code == null) {
|
if (other$code != null) {
|
return false;
|
}
|
} else if (!this$code.equals(other$code)) {
|
return false;
|
}
|
Object this$message = getMessage();
|
Object other$message = other.getMessage();
|
if (this$message == null) {
|
if (other$message != null) {
|
return false;
|
}
|
} else if (!this$message.equals(other$message)) {
|
return false;
|
}
|
Object this$languageTag = getLanguageTag();
|
Object other$languageTag = other.getLanguageTag();
|
return this$languageTag == null ? other$languageTag == null : this$languageTag.equals(other$languageTag);
|
}
|
return false;
|
}
|
return false;
|
}
|
|
protected boolean canEqual(final Object other) {
|
return other instanceof I18nMessage;
|
}
|
|
public int hashCode() {
|
Object $code = getCode();
|
int result = (1 * 59) + ($code == null ? 43 : $code.hashCode());
|
Object $message = getMessage();
|
int result2 = (result * 59) + ($message == null ? 43 : $message.hashCode());
|
Object $languageTag = getLanguageTag();
|
return (result2 * 59) + ($languageTag == null ? 43 : $languageTag.hashCode());
|
}
|
|
public String toString() {
|
return "I18nMessage(code=" + getCode() + ", message=" + getMessage() + ", languageTag=" + getLanguageTag() + ")";
|
}
|
|
public String getCode() {
|
return this.code;
|
}
|
|
public String getMessage() {
|
return this.message;
|
}
|
|
public String getLanguageTag() {
|
return this.languageTag;
|
}
|
}
|