immutables-vavr icon indicating copy to clipboard operation
immutables-vavr copied to clipboard

Customized with() methods

Open tmtron opened this issue 6 years ago • 1 comments

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

tmtron avatar Oct 09 '17 10:10 tmtron