3 ms·
I like Lombok. The best annotation is @Builder. It makes working with records much more convenient.
by throwaway92422 2y ago
I like Lombok. The best annotation is @Builder. It makes working with records much more convenient.
- JanecekPetr 2y agohttps://github.com/Randgalt/record-builder https://github.com/Randgalt/record-builder The upsides are: - it generates code and does not do anything funky with internals, - it has a lot of knobs if you need something a little different. The downside is that it does not provide you with the other Lombok annotations. In practice that has been OK!
- cogman10 2y agoBesides this I'd also point to Immutables and AutoValue which both can make builders without touching jvm internals.