Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return interface type for @RecordInterface #166

Open
DenWav opened this issue Jan 30, 2024 · 1 comment
Open

Return interface type for @RecordInterface #166

DenWav opened this issue Jan 30, 2024 · 1 comment
Labels
enhancement New feature or request PR welcome A PR submitted for this issue would be welcome

Comments

@DenWav
Copy link

DenWav commented Jan 30, 2024

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.

Similarly an option for the with methods would be nice too.

@Randgalt Randgalt added enhancement New feature or request PR welcome A PR submitted for this issue would be welcome labels Feb 4, 2024
@Randgalt
Copy link
Owner

Randgalt commented Feb 4, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request PR welcome A PR submitted for this issue would be welcome
Projects
None yet
Development

No branches or pull requests

2 participants