Show HN: RecordBuilder v281 points·by Randgalt·5 yıl önce·0 commentshttps://github.com/Randgalt/record-builderThis 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 templateThe 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 commentsPost comment—
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!