BiCollector
Paul Sandoz
paul.sandoz at oracle.com
Tue Jun 12 15:17:32 UTC 2018
I don’t have anything publicly available. I’ll see if i can dig something out and send it to you directly.
Paul.
> On Jun 11, 2018, at 11:28 AM, Peter Levart <peter.levart at gmail.com> wrote:
>
> Hi Paul,
>
> Can you point me to some BiStream code (if it is available publicly)?
>
> Thanks, Peter
>
> On 06/11/18 19:10, Paul Sandoz wrote:
>> Hi Peter,
>>
>> I like it and can see it being useful, thanks for sharing.
>>
>> I am hesitating a little about it being in the JDK because there is the larger abstraction of a BiStream, where a similar form of collection would naturally fit (but perhaps without the intersection constraints for the characteristics?). We experimented a few times with BiStream and got quite far but decided pull back due to the lack of value types and specialized generics. So i dunno how this might turn out in the future and if your BiCollector fits nicely into such a future model.
>>
>> What are you thoughts on this?
>>
>> FWIW i would call it a “splitting” or “bisecting" collector e.g. “s.collect(bisecting(…))”
>>
>> Paul.
More information about the core-libs-dev
mailing list