Mercurial > hg > openjdk > lambda > jdk
changeset 7533:6dbfee22c2ff
JavaDoc improvements.
author | psandoz |
---|---|
date | Mon, 25 Feb 2013 18:44:20 +0100 |
parents | 3e50294c68ea |
children | 05e2d3863cec |
files | src/share/classes/java/util/stream/PipelineHelper.java src/share/classes/java/util/stream/StreamShape.java |
diffstat | 2 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/classes/java/util/stream/PipelineHelper.java Mon Feb 25 18:11:42 2013 +0100 +++ b/src/share/classes/java/util/stream/PipelineHelper.java Mon Feb 25 18:44:20 2013 +0100 @@ -37,7 +37,7 @@ * Execution of the stream pipeline begins when the terminal operation is executed. * A {@code PipelineHelper} describes the portion of a stream pipeline including its source, some or all of its * intermediate operations, and certain information about the terminal (or stateful) operation which follows - * the last intermediate operation described by this {@code PipelineHelper}.The + * the last intermediate operation described by this {@code PipelineHelper}. The * {@code PipelineHelper} is passed to the {@link TerminalOp#evaluateParallel(PipelineHelper)}, * {@link TerminalOp#evaluateSequential(PipelineHelper)}, and {@link StatefulOp#evaluateParallel(PipelineHelper)}, * methods, which can use the {@code PipelineHelper} to access the source {@code Spliterator} for the pipeline,
--- a/src/share/classes/java/util/stream/StreamShape.java Mon Feb 25 18:11:42 2013 +0100 +++ b/src/share/classes/java/util/stream/StreamShape.java Mon Feb 25 18:44:20 2013 +0100 @@ -41,14 +41,18 @@ * <p>Some APIs require you to specify both a generic type and a stream shape for input or output elements, such as * {@link IntermediateOp} which has both generic type parameters for its input and output types, and getters for * the input and output shape. When representing primitive streams in this way, the generic type parameter should - * correspond to the wrapper type for that primitive type. Accordingly, the {@code IntermediateOp} implementating + * correspond to the wrapper type for that primitive type. Accordingly, the {@code IntermediateOp} implementing * {@link Stream#map(ToIntFunction)} would have an output type parameter of {@code Integer} and an output * shape of @{code INT_VALUE}. * @since 1.8 */ enum StreamShape { + /** The shape specialization corresponding to {@code Stream} and elements that are object references */ REFERENCE, + /** The shape specialization corresponding to {@code IntStream} and elements that are {@code int} values */ INT_VALUE, + /** The shape specialization corresponding to {@code LongStream} and elements that are {@code long} values */ LONG_VALUE, + /** The shape specialization corresponding to {@code DoubleStream} and elements that are {@code double} values */ DOUBLE_VALUE }