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

pack-priv final Class WhileOps

extends Object
Class Inheritance
Imports
java.util.Comparator, .Objects, .Spliterator, java.util.concurrent.CountedCompleter, java.util.concurrent.atomic.AtomicBoolean, java.util.function.Consumer, .DoubleConsumer, .DoublePredicate, .IntConsumer, .IntFunction, .IntPredicate, .LongConsumer, .LongPredicate, .Predicate

Factory for instances of a takeWhile and dropWhile operations that produce subsequences of their input stream.
Since
9

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static interface
WhileOps.DropWhileOp<
the type of both input and output elements
T
>

A specialization for the dropWhile operation that controls if elements to be dropped are counted and passed downstream.

pack-priv static interface
WhileOps.DropWhileSink<
the type of both input and output elements
T
>

A specialization for a dropWhile sink.

private static class
WhileOps.DropWhileTask<
Input element type to the stream pipeline
P_IN
,
Output element type from the stream pipeline
P_OUT
>

ForkJoinTask implementing dropWhile computation.

private static class
WhileOps.TakeWhileTask<
Input element type to the stream pipeline
P_IN
,
Output element type from the stream pipeline
P_OUT
>

ForkJoinTask implementing takeWhile computation.

pack-priv abstract static class
WhileOps.UnorderedWhileSpliterator<
the type of elements returned by this spliterator
T
,
the type of the spliterator
T_SPLITR extends Spliterator<T>
>

A spliterator supporting takeWhile and dropWhile operations over an underlying spliterator whose covered elements have no encounter order.

Field Summary

Modifier and TypeField and Description
pack-priv static final int
pack-priv static final int

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static DoubleStream
makeDropWhileDouble(AbstractPipeline<?, Double, ?>
a reference stream with element type T
upstream
,
DoublePredicate
the predicate that returns false to halt dropping.
predicate
)

Appends a "dropWhile" operation to the provided DoubleStream.

pack-priv static IntStream
makeDropWhileInt(AbstractPipeline<?, Integer, ?>
a reference stream with element type T
upstream
,
IntPredicate
the predicate that returns false to halt dropping.
predicate
)

Appends a "dropWhile" operation to the provided IntStream.

pack-priv static LongStream
makeDropWhileLong(AbstractPipeline<?, Long, ?>
a reference stream with element type T
upstream
,
LongPredicate
the predicate that returns false to halt dropping.
predicate
)

Appends a "dropWhile" operation to the provided LongStream.

pack-priv static <
the type of both input and output elements
T
>
Stream<T>
makeDropWhileRef(AbstractPipeline<?, T, ?>
a reference stream with element type T
upstream
,
Predicate<? super T>
the predicate that returns false to halt dropping.
predicate
)

Appends a "dropWhile" operation to the provided Stream.

pack-priv static DoubleStream
makeTakeWhileDouble(AbstractPipeline<?, Double, ?>
a reference stream with element type T
upstream
,
DoublePredicate
the predicate that returns false to halt taking.
predicate
)

Appends a "takeWhile" operation to the provided DoubleStream.

pack-priv static IntStream
makeTakeWhileInt(AbstractPipeline<?, Integer, ?>
a reference stream with element type T
upstream
,
IntPredicate
the predicate that returns false to halt taking.
predicate
)

Appends a "takeWhile" operation to the provided IntStream.

pack-priv static LongStream
makeTakeWhileLong(AbstractPipeline<?, Long, ?>
a reference stream with element type T
upstream
,
LongPredicate
the predicate that returns false to halt taking.
predicate
)

Appends a "takeWhile" operation to the provided LongStream.

pack-priv static <
the type of both input and output elements
T
>
Stream<T>
makeTakeWhileRef(AbstractPipeline<?, T, ?>
a reference stream with element type T
upstream
,
Predicate<? super T>
the predicate that returns false to halt taking.
predicate
)

Appends a "takeWhile" operation to the provided Stream.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait