re: Builder Design Pattern VIEW POST

FULL DISCUSSION
 

Just use Lombok.

@Builder
public class Burger {
    private int size;

    private boolean cheese = false;
    private boolean tomato = false;
    private boolean lettuce = false;
    private boolean pepperoni = false;
}
code of conduct - report abuse