Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// augo-generated builder and getters
@Builder
@Getter
class Person {
private final int age;
private final String firstName;
@Builder.Default
private final String lastName = "Brown";
}
Person mary = Person.builder()
.age(25)
.firstName("Mary")
.lastName("Watson")
.build();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment