Re: RFR: 8317993: Add capturing factories to classes in java.util.function package [v5]

2023-10-18 Thread Per Minborg
On Wed, 18 Oct 2023 09:00:09 GMT, Per Minborg wrote: >> This PR proposes to add a number of "capturing factories" in classes in the >> `java.util.function` package. >> >> The PR additionally (an optionally) proposes to add a new function >> `UnaryOperator::andThenUnary` to allow composition wh

Re: RFR: 8317993: Add capturing factories to classes in java.util.function package [v5]

2023-10-18 Thread Maurizio Cimadamore
On Wed, 18 Oct 2023 09:00:09 GMT, Per Minborg wrote: >> This PR proposes to add a number of "capturing factories" in classes in the >> `java.util.function` package. >> >> The PR additionally (an optionally) proposes to add a new function >> `UnaryOperator::andThenUnary` to allow composition wh

Re: RFR: 8317993: Add capturing factories to classes in java.util.function package [v5]

2023-10-18 Thread Maurizio Cimadamore
On Wed, 18 Oct 2023 09:00:09 GMT, Per Minborg wrote: >> This PR proposes to add a number of "capturing factories" in classes in the >> `java.util.function` package. >> >> The PR additionally (an optionally) proposes to add a new function >> `UnaryOperator::andThenUnary` to allow composition wh

Re: RFR: 8317993: Add capturing factories to classes in java.util.function package [v5]

2023-10-18 Thread Per Minborg
On Wed, 18 Oct 2023 09:22:39 GMT, Per Minborg wrote: >> Just curious, do we have any idea how extensively `UnaryOperator` is used as >> a parameter type in user code compared to plain `Function`? If it's >> not preferred over `Function`, this new method might not be very >> useful. > > General

Re: RFR: 8317993: Add capturing factories to classes in java.util.function package [v5]

2023-10-18 Thread Per Minborg
On Wed, 18 Oct 2023 09:12:23 GMT, Chen Liang wrote: >> src/java.base/share/classes/java/util/function/UnaryOperator.java line 68: >> >>> 66: * @see Function#andThen(Function) >>> 67: */ >>> 68: default UnaryOperator andThenUnary(UnaryOperator after) { >> >> What are your comments

Re: RFR: 8317993: Add capturing factories to classes in java.util.function package [v5]

2023-10-18 Thread Chen Liang
On Tue, 17 Oct 2023 08:22:05 GMT, Per Minborg wrote: >> Per Minborg has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Pretty > > src/java.base/share/classes/java/util/function/UnaryOperator.java line 68: > >> 66: * @see Function#andT

Re: RFR: 8317993: Add capturing factories to classes in java.util.function package [v5]

2023-10-18 Thread Per Minborg
> This PR proposes to add a number of "capturing factories" in classes in the > `java.util.function` package. > > The PR additionally (an optionally) proposes to add a new function > `UnaryOperator::andThenUnary` to allow composition while retaining the > `UnaryOperator` type. > > With the new

Re: RFR: 8317993: Add capturing factories to classes in java.util.function package [v4]

2023-10-18 Thread Per Minborg
> This PR proposes to add a number of "capturing factories" in classes in the > `java.util.function` package. > > The PR additionally (an optionally) proposes to add a new function > `UnaryOperator::andThenUnary` to allow composition while retaining the > `UnaryOperator` type. > > With the new

Re: RFR: 8317993: Add capturing factories to classes in java.util.function package [v3]

2023-10-18 Thread Per Minborg
On Tue, 17 Oct 2023 13:22:29 GMT, Raffaello Giulietti wrote: >> Per Minborg has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Update naming and javadocs > > src/java.base/share/classes/java/util/function/BiConsumer.java line 105: > >> 10

Re: RFR: 8317993: Add capturing factories to classes in java.util.function package [v3]

2023-10-18 Thread Per Minborg
> This PR proposes to add a number of "capturing factories" in classes in the > `java.util.function` package. > > The PR additionally (an optionally) proposes to add a new function > `UnaryOperator::andThenUnary` to allow composition while retaining the > `UnaryOperator` type. > > With the new

Re: RFR: 8317993: Add capturing factories to classes in java.util.function package [v2]

2023-10-18 Thread Per Minborg
> This PR proposes to add a number of "capturing factories" in classes in the > `java.util.function` package. > > The PR additionally (an optionally) proposes to add a new function > `UnaryOperator::andThenUnary` to allow composition while retaining the > `UnaryOperator` type. > > With the new

Re: RFR: 8317993: Add capturing factories to classes in java.util.function package

2023-10-17 Thread Raffaello Giulietti
On Tue, 17 Oct 2023 13:12:08 GMT, Raffaello Giulietti wrote: >> This PR proposes to add a number of "capturing factories" in classes in the >> `java.util.function` package. >> >> The PR additionally (an optionally) proposes to add a new function >> `UnaryOperator::andThenUnary` to allow compo

Re: RFR: 8317993: Add capturing factories to classes in java.util.function package

2023-10-17 Thread Raffaello Giulietti
On Tue, 17 Oct 2023 08:05:09 GMT, Per Minborg wrote: > This PR proposes to add a number of "capturing factories" in classes in the > `java.util.function` package. > > The PR additionally (an optionally) proposes to add a new function > `UnaryOperator::andThenUnary` to allow composition while r

Re: RFR: 8317993: Add capturing factories to classes in java.util.function package

2023-10-17 Thread Raffaello Giulietti
On Tue, 17 Oct 2023 12:16:54 GMT, ExE Boss wrote: >> This PR proposes to add a number of "capturing factories" in classes in the >> `java.util.function` package. >> >> The PR additionally (an optionally) proposes to add a new function >> `UnaryOperator::andThenUnary` to allow composition while

Re: RFR: 8317993: Add capturing factories to classes in java.util.function package

2023-10-17 Thread Per Minborg
On Tue, 17 Oct 2023 08:05:09 GMT, Per Minborg wrote: > This PR proposes to add a number of "capturing factories" in classes in the > `java.util.function` package. > > The PR additionally (an optionally) proposes to add a new function > `UnaryOperator::andThenUnary` to allow composition while r

Re: RFR: 8317993: Add capturing factories to classes in java.util.function package

2023-10-17 Thread ExE Boss
On Tue, 17 Oct 2023 08:05:09 GMT, Per Minborg wrote: > This PR proposes to add a number of "capturing factories" in classes in the > `java.util.function` package. > > The PR additionally (an optionally) proposes to add a new function > `UnaryOperator::andThenUnary` to allow composition while r

Re: RFR: 8317993: Add capturing factories to classes in java.util.function package

2023-10-17 Thread Per Minborg
On Tue, 17 Oct 2023 08:05:09 GMT, Per Minborg wrote: > This PR proposes to add a number of "capturing factories" in classes in the > `java.util.function` package. > > The PR additionally (an optionally) proposes to add a new function > `UnaryOperator::andThenUnary` to allow composition while r