I think StreamSupport has most of the glue code used by the collections, and 
ReferencePipeline must of the stream implementations, for example the reduce 
here makes use of the ReduceOps operation class!

https://github.com/openjdk/jdk/blob/4da99158754c25c5d0650f2d042aad3e94a9b0c5/src/java.base/share/classes/java/util/stream/ReferencePipeline.java#L696

The special things with steams is, that the Stream class only sets up the 
evaluation pipeline.

Gruss
Bernd

Anil wrote on 21. July 2024 21:19 (GMT +02:00):
> As mentioned in my post, I know where the package is, but I cannot find
> the
> implementing classes.
> For instance, where is this implemented?
> 
> T reduce(T identity, BinaryOperator<T> accumulator);
> 
> 
> 
> On Sun, Jul 21, 2024, 1:52 AM Bernd Eckenfels <e...@zusammenkunft.net>
> wrote:
> 
>> Anil wrote on 21. July 2024 04:44 (GMT +02:00):
>> > However, I am unable to find the implementing class of
>> java.util.Stream.
>>
>> You find the package in Java.base module:
>>
>>
>> https://github.com/openjdk/jdk/tree/master/src/java.base/share/classes/java/util/stream
>>
>>
>> Gruß
>> Bernd
>> —
>> https://bernd.eckenfels.net
>>
> 


Gruß
Bernd
— 
https://bernd.eckenfels.net

Reply via email to