Re: RFR[8238286]: 'Add new flatMap stream operation that is more amenable to pushing’
forax at univ-mlv.fr
forax at univ-mlv.fr
Thu Aug 13 12:04:28 UTC 2020
----- Mail original -----
> De: "Florian Weimer" <fw at deneb.enyo.de>
> À: "Remi Forax" <forax at univ-mlv.fr>
> Cc: "Patrick Concannon" <patrick.concannon at oracle.com>, "Julia Boes" <julia.boes at oracle.com>, "Anthony Vanelverdinghe"
> <dev at anthonyv.be>, "core-libs-dev" <core-libs-dev at openjdk.java.net>
> Envoyé: Jeudi 13 Août 2020 11:58:38
> Objet: Re: RFR[8238286]: 'Add new flatMap stream operation that is more amenable to pushing’
> * Remi Forax:
>
>> I still don't like the fact that IntMapMultiConsumer,
>> DoubleMapMultiConsumer and LongMapMultiConsumer are not in
>> java.util.function unlike all other functional interfaces used by
>> the Stream API.
>
> They seem rather too specific for java.util.function to me. Maybe we
> should add BiIntObjectConsumer etc., a BiConsumer whose first argument
> is fixed as an int? And the second consumer would be injected as a
> type parameter, specific to the use in IntStream?
yes, you right, the interafce should be changed as you said.
Rémi
More information about the core-libs-dev
mailing list