APIdia Launch Partner
Top Description Inners Constructors Methods
java.util.stream

pack-priv final Class Streams

extends Object
Class Inheritance
Imports
java.util.Comparator, .Objects, .Spliterator, java.util.function.Consumer, .DoubleConsumer, .IntConsumer, .LongConsumer, jdk.internal.vm.annotation.IntrinsicCandidate

Utility methods for operating on and creating streams.

Unless otherwise stated, streams are created as sequential streams. A sequential stream can be transformed into a parallel stream by calling the parallel() method on the created stream.

Since
1.8

Nested and Inner Type Summary

Modifier and TypeClass and Description
private abstract static class
pack-priv abstract static class
Streams.ConcatSpliterator<T, T_SPLITR extends Spliterator<T>>

pack-priv static class
pack-priv static class
pack-priv static class
pack-priv static class
Streams.RangeIntSpliterator

An int range spliterator.

pack-priv static class
Streams.RangeLongSpliterator

A long range spliterator.

pack-priv static class

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static Runnable
composedClose(BaseStream<?, ?> a, BaseStream<?, ?> b)

Given two streams, return a Runnable that executes both of their BaseStream#close methods in sequence, even if the first throws an exception, and if both throw exceptions, add any exceptions thrown by the second as suppressed exceptions of the first.

pack-priv static Runnable
composeWithExceptions(Runnable a, Runnable b)

Given two Runnables, return a Runnable that executes both in sequence, even if the first throws an exception, and if both throw exceptions, add any exceptions thrown by the second as suppressed exceptions of the first.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait