Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Blog post about Data Management - PersonBuilder code snippet
public class PersonBuilder {
private String name;
private int age;
public PersonBuilder setName(String name) { = name;
return this;
public PersonBuilder setAge(int age) {
this.age = age;
return this;
public Person build() {
return new Person(name, age);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.