Randgalt / record-builder

Record builder generator for Java records

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Invoker builder

gdupontf opened this issue · comments

I was wondering if it was possible to add functionality to create a builder around a method, with the "build" method actually invoking the target method?

I can in fact emulate this using Lombok, but this library is much more flexible.

On the surface, it looks like "just" an underlying record and a builder with a non-constructor target method and return type but in practice I know there might be gotchas.

Can you write an pseudo example of what that would be?