Skip to content

Commit ab31bd0

Browse files
committed
hide forEachLazily(Spliterator), again because the Stream and Iterable overloads may be sufficient
1 parent 5c0f039 commit ab31bd0

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

mug/src/main/java/com/google/mu/util/stream/Iteration.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -279,12 +279,6 @@ public final <V> Iteration<T> forEachLazily(IntStream stream, IntConsumer consum
279279
return forEachLazily(stream.spliterator(), consumer);
280280
}
281281

282-
/**
283-
* Applies {@code consumer} lazily on each element from {@code spliterator}.
284-
* An element is only iterated when consumed by the result stream.
285-
*
286-
* @since 9.6
287-
*/
288282
private <V> Iteration<T> forEachLazily(
289283
Spliterator<V> spliterator, Consumer<? super V> consumer) {
290284
requireNonNull(spliterator);
@@ -297,12 +291,6 @@ private <V> Iteration<T> forEachLazily(
297291
}));
298292
}
299293

300-
/**
301-
* Applies {@code consumer} lazily on each int element from {@code spliterator}.
302-
* An element is only iterated when consumed by the result stream.
303-
*
304-
* @since 9.6
305-
*/
306294
private <V> Iteration<T> forEachLazily(
307295
Spliterator.OfInt spliterator, IntConsumer consumer) {
308296
requireNonNull(spliterator);

0 commit comments

Comments
 (0)