Open DenWav opened 10 months ago
It would be nice to have an option for something like the following:
@RecordInterface public interface SomeInterface extends SomeInterfaceRecordBuilder.With { String thingOne(); String thingTwo(); static SomeInterfaceRecordBuilder builder() { return SomeInterfaceRecordBuilder.builder(); } }
But when I do that, SomeInterface.builder().build() returns SomeInterfaceRecord rather than just SomeInterface.
SomeInterface.builder().build()
SomeInterfaceRecord
SomeInterface
Similarly an option for the with methods would be nice too.
I can see this. I don't have a lot of time at the moment. A PR would be appreciated otherwise I'll get to it when I can.
It would be nice to have an option for something like the following:
But when I do that,
SomeInterface.builder().build()
returnsSomeInterfaceRecord
rather than justSomeInterface
.Similarly an option for the with methods would be nice too.