Show HN: RecordBuilder v28

by Randgalton 10/7/2021, 3:20 PMwith 0 comments

https://github.com/Randgalt/record-builder

This project is an annotation processor that creates:

- a companion builder class for Java records

- an interface that adds "with" copy methods

- an annotation that generates a Java record from an Interface template

The growing community of RecordBuilder users has resulted in the latest release. Over the past few releases, these features have been added:

- Support single item collection builders

- Include all records from a list of packages

- Special handling for record components of type List, Set,Map and Collection

- Support validation api

- Support for NotNull-style annotations

- Set optional fields to empty by default

- Support copying component annotations to builder

- Custom RecordBuilder annotations

- Much more!

0