Add Custom Validations With Lombok Builders

Categories: java

Introduction Project Lombok will be able to generate the builder pattern class to make a java bean as immutable. But for some use cases you might need to add custom property validations while building an object. Lets go through lombok features to see how it can help us solve this. See It In Action Lombok doesn’t generate any code if you implement something to complement with it’s code generation like getters, setter or any other methods.

Read More →