Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // Source code recreated from a .class file by IntelliJ IDEA
- // (powered by Fernflower decompiler)
- //
- package ru.dz.tele2.wsc.privateweb.vo;
- import java.beans.ConstructorProperties;
- import javax.validation.constraints.NotNull;
- import org.hibernate.validator.constraints.NotBlank;
- import ru.dz.tele2.wsc.commons.Language;
- import ru.dz.tele2.wsc.commons.dto.FrontendLogEventType;
- public class SmsMessageVO {
- @NotNull(
- message = "{templates.sms.error}"
- )
- private FrontendLogEventType type;
- private Language lang;
- @NotBlank
- private String template;
- public static SmsMessageVO.SmsMessageVOBuilder builder() {
- return new SmsMessageVO.SmsMessageVOBuilder();
- }
- public FrontendLogEventType getType() {
- return this.type;
- }
- public Language getLang() {
- return this.lang;
- }
- public String getTemplate() {
- return this.template;
- }
- public void setType(FrontendLogEventType type) {
- this.type = type;
- }
- public void setLang(Language lang) {
- this.lang = lang;
- }
- public void setTemplate(String template) {
- this.template = template;
- }
- public String toString() {
- return "SmsMessageVO(type=" + this.getType() + ", lang=" + this.getLang() + ", template=" + this.getTemplate() + ")";
- }
- public boolean equals(Object o) {
- if(o == this) {
- return true;
- } else if(!(o instanceof SmsMessageVO)) {
- return false;
- } else {
- SmsMessageVO other = (SmsMessageVO)o;
- if(!other.canEqual(this)) {
- return false;
- } else {
- label47: {
- FrontendLogEventType this$type = this.getType();
- FrontendLogEventType other$type = other.getType();
- if(this$type == null) {
- if(other$type == null) {
- break label47;
- }
- } else if(this$type.equals(other$type)) {
- break label47;
- }
- return false;
- }
- Language this$lang = this.getLang();
- Language other$lang = other.getLang();
- if(this$lang == null) {
- if(other$lang != null) {
- return false;
- }
- } else if(!this$lang.equals(other$lang)) {
- return false;
- }
- String this$template = this.getTemplate();
- String other$template = other.getTemplate();
- if(this$template == null) {
- if(other$template != null) {
- return false;
- }
- } else if(!this$template.equals(other$template)) {
- return false;
- }
- return true;
- }
- }
- }
- protected boolean canEqual(Object other) {
- return other instanceof SmsMessageVO;
- }
- public int hashCode() {
- boolean PRIME = true;
- byte result = 1;
- FrontendLogEventType $type = this.getType();
- int result1 = result * 59 + ($type == null?43:$type.hashCode());
- Language $lang = this.getLang();
- result1 = result1 * 59 + ($lang == null?43:$lang.hashCode());
- String $template = this.getTemplate();
- result1 = result1 * 59 + ($template == null?43:$template.hashCode());
- return result1;
- }
- @ConstructorProperties({"type", "lang", "template"})
- public SmsMessageVO(FrontendLogEventType type, Language lang, String template) {
- this.type = type;
- this.lang = lang;
- this.template = template;
- }
- public static class SmsMessageVOBuilder {
- private FrontendLogEventType type;
- private Language lang;
- private String template;
- SmsMessageVOBuilder() {
- }
- public SmsMessageVO.SmsMessageVOBuilder type(FrontendLogEventType type) {
- this.type = type;
- return this;
- }
- public SmsMessageVO.SmsMessageVOBuilder lang(Language lang) {
- this.lang = lang;
- return this;
- }
- public SmsMessageVO.SmsMessageVOBuilder template(String template) {
- this.template = template;
- return this;
- }
- public SmsMessageVO build() {
- return new SmsMessageVO(this.type, this.lang, this.template);
- }
- public String toString() {
- return "SmsMessageVO.SmsMessageVOBuilder(type=" + this.type + ", lang=" + this.lang + ", template=" + this.template + ")";
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement