immutables / immutables-vavr

Immutables encodings for Vavr
Other
33 stars 7 forks source link

Customized with() methods #12

Open tmtron opened 7 years ago

tmtron commented 7 years ago

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 commented 7 years ago

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