提交 b0513ae3 编写于 作者: P psandoz

8014393: Minor typo in the spec for j.u.stream.Stream.findFirst()

Reviewed-by: alanb, chegar
上级 eb49caf1
...@@ -603,7 +603,7 @@ public interface DoubleStream extends BaseStream<Double, DoubleStream> { ...@@ -603,7 +603,7 @@ public interface DoubleStream extends BaseStream<Double, DoubleStream> {
/** /**
* Returns an {@link OptionalDouble} describing the first element of this * Returns an {@link OptionalDouble} describing the first element of this
* stream (in the encounter order), or an empty {@code OptionalDouble} if * stream (in the encounter order), or an empty {@code OptionalDouble} if
* the stream is empty. If the stream has no encounter order, than any * the stream is empty. If the stream has no encounter order, then any
* element may be returned. * element may be returned.
* *
* <p>This is a <a href="package-summary.html#StreamOps">short-circuiting * <p>This is a <a href="package-summary.html#StreamOps">short-circuiting
......
...@@ -588,7 +588,7 @@ public interface IntStream extends BaseStream<Integer, IntStream> { ...@@ -588,7 +588,7 @@ public interface IntStream extends BaseStream<Integer, IntStream> {
/** /**
* Returns an {@link OptionalInt} describing the first element of this * Returns an {@link OptionalInt} describing the first element of this
* stream (in the encounter order), or an empty {@code OptionalInt} if the * stream (in the encounter order), or an empty {@code OptionalInt} if the
* stream is empty. If the stream has no encounter order, than any element * stream is empty. If the stream has no encounter order, then any element
* may be returned. * may be returned.
* *
* <p>This is a <a href="package-summary.html#StreamOps">short-circuiting * <p>This is a <a href="package-summary.html#StreamOps">short-circuiting
......
...@@ -588,7 +588,7 @@ public interface LongStream extends BaseStream<Long, LongStream> { ...@@ -588,7 +588,7 @@ public interface LongStream extends BaseStream<Long, LongStream> {
/** /**
* Returns an {@link OptionalLong} describing the first element of this * Returns an {@link OptionalLong} describing the first element of this
* stream (in the encounter order), or an empty {@code OptionalLong} if the * stream (in the encounter order), or an empty {@code OptionalLong} if the
* stream is empty. If the stream has no encounter order, than any element * stream is empty. If the stream has no encounter order, then any element
* may be returned. * may be returned.
* *
* <p>This is a <a href="package-summary.html#StreamOps">short-circuiting * <p>This is a <a href="package-summary.html#StreamOps">short-circuiting
......
...@@ -754,7 +754,7 @@ public interface Stream<T> extends BaseStream<T, Stream<T>> { ...@@ -754,7 +754,7 @@ public interface Stream<T> extends BaseStream<T, Stream<T>> {
/** /**
* Returns an {@link Optional} describing the first element of this stream * Returns an {@link Optional} describing the first element of this stream
* (in the encounter order), or an empty {@code Optional} if the stream is * (in the encounter order), or an empty {@code Optional} if the stream is
* empty. If the stream has no encounter order, than any element may be * empty. If the stream has no encounter order, then any element may be
* returned. * returned.
* *
* <p>This is a <a href="package-summary.html#StreamOps">short-circuiting * <p>This is a <a href="package-summary.html#StreamOps">short-circuiting
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册