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 com.test;
- import com.dslplatform.json.CompiledJson;
- @CompiledJson
- public class Employee {
- private String name;
- private int id;
- Employee(String name, int id) {
- this.name = name;
- this.id = id;
- }
- public static Employee.EmployeeBuilder builder() {
- return new Employee.EmployeeBuilder();
- }
- public Employee.EmployeeBuilder toBuilder() {
- return (new Employee.EmployeeBuilder()).name(this.name).id(this.id);
- }
- public String name() {
- return this.name;
- }
- public int id() {
- return this.id;
- }
- public String toString() {
- this.name();
- return this.id();
- }
- public static class EmployeeBuilder {
- private String name;
- private int id;
- EmployeeBuilder() {
- }
- public Employee.EmployeeBuilder name(String name) {
- this.name = name;
- return this;
- }
- public Employee.EmployeeBuilder id(int id) {
- this.id = id;
- return this;
- }
- public Employee build() {
- return new Employee(this.name, this.id);
- }
- public String toString() {
- String var10000 = this.name;
- return this.id;
- }
- }
- }
Add Comment
Please, Sign In to add comment