Advertisement
Guest User

Untitled

a guest
Aug 28th, 2015
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 4.78 KB | None | 0 0
  1. //
  2. // Source code recreated from a .class file by IntelliJ IDEA
  3. // (powered by Fernflower decompiler)
  4. //
  5.  
  6. package ru.dz.tele2.wsc.privateweb.vo;
  7.  
  8. import java.beans.ConstructorProperties;
  9. import javax.validation.constraints.NotNull;
  10. import org.hibernate.validator.constraints.NotBlank;
  11. import ru.dz.tele2.wsc.commons.Language;
  12. import ru.dz.tele2.wsc.commons.dto.FrontendLogEventType;
  13.  
  14. public class SmsMessageVO {
  15.     @NotNull(
  16.         message = "{templates.sms.error}"
  17.     )
  18.     private FrontendLogEventType type;
  19.     private Language lang;
  20.     @NotBlank
  21.     private String template;
  22.  
  23.     public static SmsMessageVO.SmsMessageVOBuilder builder() {
  24.         return new SmsMessageVO.SmsMessageVOBuilder();
  25.     }
  26.  
  27.     public FrontendLogEventType getType() {
  28.         return this.type;
  29.     }
  30.  
  31.     public Language getLang() {
  32.         return this.lang;
  33.     }
  34.  
  35.     public String getTemplate() {
  36.         return this.template;
  37.     }
  38.  
  39.     public void setType(FrontendLogEventType type) {
  40.         this.type = type;
  41.     }
  42.  
  43.     public void setLang(Language lang) {
  44.         this.lang = lang;
  45.     }
  46.  
  47.     public void setTemplate(String template) {
  48.         this.template = template;
  49.     }
  50.  
  51.     public String toString() {
  52.         return "SmsMessageVO(type=" + this.getType() + ", lang=" + this.getLang() + ", template=" + this.getTemplate() + ")";
  53.     }
  54.  
  55.     public boolean equals(Object o) {
  56.         if(o == this) {
  57.             return true;
  58.         } else if(!(o instanceof SmsMessageVO)) {
  59.             return false;
  60.         } else {
  61.             SmsMessageVO other = (SmsMessageVO)o;
  62.             if(!other.canEqual(this)) {
  63.                 return false;
  64.             } else {
  65.                 label47: {
  66.                     FrontendLogEventType this$type = this.getType();
  67.                     FrontendLogEventType other$type = other.getType();
  68.                     if(this$type == null) {
  69.                         if(other$type == null) {
  70.                             break label47;
  71.                         }
  72.                     } else if(this$type.equals(other$type)) {
  73.                         break label47;
  74.                     }
  75.  
  76.                     return false;
  77.                 }
  78.  
  79.                 Language this$lang = this.getLang();
  80.                 Language other$lang = other.getLang();
  81.                 if(this$lang == null) {
  82.                     if(other$lang != null) {
  83.                         return false;
  84.                     }
  85.                 } else if(!this$lang.equals(other$lang)) {
  86.                     return false;
  87.                 }
  88.  
  89.                 String this$template = this.getTemplate();
  90.                 String other$template = other.getTemplate();
  91.                 if(this$template == null) {
  92.                     if(other$template != null) {
  93.                         return false;
  94.                     }
  95.                 } else if(!this$template.equals(other$template)) {
  96.                     return false;
  97.                 }
  98.  
  99.                 return true;
  100.             }
  101.         }
  102.     }
  103.  
  104.     protected boolean canEqual(Object other) {
  105.         return other instanceof SmsMessageVO;
  106.     }
  107.  
  108.     public int hashCode() {
  109.         boolean PRIME = true;
  110.         byte result = 1;
  111.         FrontendLogEventType $type = this.getType();
  112.         int result1 = result * 59 + ($type == null?43:$type.hashCode());
  113.         Language $lang = this.getLang();
  114.         result1 = result1 * 59 + ($lang == null?43:$lang.hashCode());
  115.         String $template = this.getTemplate();
  116.         result1 = result1 * 59 + ($template == null?43:$template.hashCode());
  117.         return result1;
  118.     }
  119.  
  120.     @ConstructorProperties({"type", "lang", "template"})
  121.     public SmsMessageVO(FrontendLogEventType type, Language lang, String template) {
  122.         this.type = type;
  123.         this.lang = lang;
  124.         this.template = template;
  125.     }
  126.  
  127.     public static class SmsMessageVOBuilder {
  128.         private FrontendLogEventType type;
  129.         private Language lang;
  130.         private String template;
  131.  
  132.         SmsMessageVOBuilder() {
  133.         }
  134.  
  135.         public SmsMessageVO.SmsMessageVOBuilder type(FrontendLogEventType type) {
  136.             this.type = type;
  137.             return this;
  138.         }
  139.  
  140.         public SmsMessageVO.SmsMessageVOBuilder lang(Language lang) {
  141.             this.lang = lang;
  142.             return this;
  143.         }
  144.  
  145.         public SmsMessageVO.SmsMessageVOBuilder template(String template) {
  146.             this.template = template;
  147.             return this;
  148.         }
  149.  
  150.         public SmsMessageVO build() {
  151.             return new SmsMessageVO(this.type, this.lang, this.template);
  152.         }
  153.  
  154.         public String toString() {
  155.             return "SmsMessageVO.SmsMessageVOBuilder(type=" + this.type + ", lang=" + this.lang + ", template=" + this.template + ")";
  156.         }
  157.     }
  158. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement