1 MIN JAVA QUICK TIP | USING THE BUILDER PATTERN
ฝัง
- เผยแพร่เมื่อ 26 ม.ค. 2023
- Is some of your Java code suffering from "Constructor bloat"?
This can happen when (over time) you have multiple constructors for the same Object!
public Foo() {}
public Foo(String){}
public Foo(String, String){}
public Foo(String, String, Date){}
Solve all this bloat by making use of the Builder pattern available to you in Lombok!
#Java
#Tutorial
#springboot
🔗Resources & Links mentioned in this video:
- Visual Studio Code - code.visualstudio.com/
- Lombok Documentation - projectlombok.org/features/Bu...
👋🏻Connect with me:
Twitter: / eyuzwa - วิทยาศาสตร์และเทคโนโลยี
Hey everyone! Just trying to provide a suggestion on some ways to help out your Java codebase. Hope it helps you out!
3rd...Thanks