suraj1291993

De-compiled Lombok POJO

Sep 5th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.41 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 com.test;
  7.  
  8. import com.dslplatform.json.CompiledJson;
  9.  
  10. @CompiledJson
  11. public class Employee {
  12.     private String name;
  13.     private int id;
  14.  
  15.     Employee(String name, int id) {
  16.         this.name = name;
  17.         this.id = id;
  18.     }
  19.  
  20.     public static Employee.EmployeeBuilder builder() {
  21.         return new Employee.EmployeeBuilder();
  22.     }
  23.  
  24.     public Employee.EmployeeBuilder toBuilder() {
  25.         return (new Employee.EmployeeBuilder()).name(this.name).id(this.id);
  26.     }
  27.  
  28.     public String name() {
  29.         return this.name;
  30.     }
  31.  
  32.     public int id() {
  33.         return this.id;
  34.     }
  35.  
  36.     public String toString() {
  37.         this.name();
  38.         return this.id();
  39.     }
  40.  
  41.     public static class EmployeeBuilder {
  42.         private String name;
  43.         private int id;
  44.  
  45.         EmployeeBuilder() {
  46.         }
  47.  
  48.         public Employee.EmployeeBuilder name(String name) {
  49.             this.name = name;
  50.             return this;
  51.         }
  52.  
  53.         public Employee.EmployeeBuilder id(int id) {
  54.             this.id = id;
  55.             return this;
  56.         }
  57.  
  58.         public Employee build() {
  59.             return new Employee(this.name, this.id);
  60.         }
  61.  
  62.         public String toString() {
  63.             String var10000 = this.name;
  64.             return this.id;
  65.         }
  66.     }
  67. }
Add Comment
Please, Sign In to add comment