This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"brands": { | |
"SASSAFRAS": [{ | |
"seller": "Elixirnet", | |
"addr": "Freeway Clothing Company, 351/1, Bijwasan, New Delhi 110061" | |
}], | |
"PANIT": [{ | |
"seller": "5171 CREATIONS", | |
"addr": "5171 Creations , C-25 New Janki Puri Gali No 4 , Uttam Nagar New Delhi" | |
}], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Person { | |
private String firstName; | |
private String middleName; | |
private String lastName; | |
private String city; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public final class CreateAPerson { | |
private CreateAPerson() {} | |
public static Person doIt() { | |
// Class name PersonBuilder here can't be updated automatically by IDE refactoring | |
PersonBuilder bildr = Person.builder(); | |
bildr.firstName("John").lastName("Smith").city("Albuquerque"); | |
return bildr.build(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Builder | |
public class Person { | |
private String firstName; | |
private String middleName; | |
private String lastName; | |
private String city; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Builder | |
public class Person { | |
private String firstName; | |
private String middleName; | |
private String lastName; | |
private String city; |