mirror of
https://github.com/openjdk/jdk.git
synced 2026-04-21 12:20:29 +00:00
8381418: Clarifying the identity Parameter in the Java Stream.reduce() Method Documentation
Reviewed-by: liach, alanb
This commit is contained in:
parent
5ddc36786a
commit
b418cbcdd4
@ -1002,8 +1002,8 @@ public interface Stream<T> extends BaseStream<T, Stream<T>> {
|
||||
|
||||
/**
|
||||
* Performs a <a href="package-summary.html#Reduction">reduction</a> on the
|
||||
* elements of this stream, using the provided identity, accumulation and
|
||||
* combining functions. This is equivalent to:
|
||||
* elements of this stream using the provided identity value, accumulation
|
||||
* function, and combining function. This is equivalent to:
|
||||
* <pre>{@code
|
||||
* U result = identity;
|
||||
* for (T element : this stream)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user