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

Customized with() methods #12

Open
tmtron opened this issue Oct 9, 2017 · 1 comment
Open

Customized with() methods #12

tmtron opened this issue Oct 9, 2017 · 1 comment

Comments

@tmtron
Copy link
Contributor

tmtron commented Oct 9, 2017

Can we add customized with methods as explained in the immutables docs: "Customize with methods"?

e.g. for a Set we could add with methods like these:

public final ImmutableExampleSetType withIntegers(Integer... elements) {}
public final ImmutableExampleSetType withIntegers(Iterable<? extends Integer> elements) {}

I've already tried this in a new branch of my fork. See this commit

@io7m
Copy link
Member

io7m commented Oct 11, 2017

I don't have a problem with this. Can you create a PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants