java.lang.Object
com.speedment.jpastreamer.javanine.Java9StreamUtil
- Author:
- Per Minborg
-
Method Summary
Modifier and TypeMethodDescriptionstatic DoubleStreamdropWhile(DoubleStream stream, DoublePredicate predicate) Delegates a DoubleStream::dropWhile operation to the Java platforms underlying default Stream implementation.static IntStreamdropWhile(IntStream stream, IntPredicate predicate) Delegates an InteStream::dropWhile operation to the Java platforms underlying default Stream implementation.static LongStreamdropWhile(LongStream stream, LongPredicate predicate) Delegates a LongStream::dropWhile operation to the Java platforms underlying default Stream implementation.static <T> Stream<T>Delegates a Stream::dropWhile operation to the Java platforms underlying default Stream implementation.static DoubleStreamtakeWhile(DoubleStream stream, DoublePredicate predicate) Delegates a DoubleStream::takeWhile operation to the Java platforms underlying default Stream implementation.static IntStreamtakeWhile(IntStream stream, IntPredicate predicate) Delegates an IntStream::takeWhile operation to the Java platforms underlying default Stream implementation.static LongStreamtakeWhile(LongStream stream, LongPredicate predicate) Delegates a LongStream::takeWhile operation to the Java platforms underlying default Stream implementation.static <T> Stream<T>Delegates a Stream::takeWhile operation to the Java platforms underlying default Stream implementation.
-
Method Details
-
takeWhile
Delegates a DoubleStream::takeWhile operation to the Java platforms underlying default Stream implementation. If run under Java 8, this method will throw an UnsupportedOperationException.- Parameters:
stream- to apply the takeWhile operation topredicate- to use for takeWhile- Returns:
- a Stream where the takeWhile(predicate) has been applied
- Throws:
UnsupportedOperationException- if run under Java 8
-
dropWhile
Delegates a DoubleStream::dropWhile operation to the Java platforms underlying default Stream implementation. If run under Java 8, this method will throw an UnsupportedOperationException.- Parameters:
stream- to apply the dropWhile operation topredicate- to use for dropWhile- Returns:
- a Stream where the dropWhile(predicate) has been applied
- Throws:
UnsupportedOperationException- if run under Java 8
-
takeWhile
Delegates an IntStream::takeWhile operation to the Java platforms underlying default Stream implementation. If run under Java 8, this method will throw an UnsupportedOperationException.- Parameters:
stream- to apply the takeWhile operation topredicate- to use for takeWhile- Returns:
- a Stream where the takeWhile(predicate) has been applied
- Throws:
UnsupportedOperationException- if run under Java 8
-
dropWhile
Delegates an InteStream::dropWhile operation to the Java platforms underlying default Stream implementation. If run under Java 8, this method will throw an UnsupportedOperationException.- Parameters:
stream- to apply the dropWhile operation topredicate- to use for dropWhile- Returns:
- a Stream where the dropWhile(predicate) has been applied
- Throws:
UnsupportedOperationException- if run under Java 8
-
takeWhile
Delegates a LongStream::takeWhile operation to the Java platforms underlying default Stream implementation. If run under Java 8, this method will throw an UnsupportedOperationException.- Parameters:
stream- to apply the takeWhile operation topredicate- to use for takeWhile- Returns:
- a Stream where the takeWhile(predicate) has been applied
- Throws:
UnsupportedOperationException- if run under Java 8
-
dropWhile
Delegates a LongStream::dropWhile operation to the Java platforms underlying default Stream implementation. If run under Java 8, this method will throw an UnsupportedOperationException.- Parameters:
stream- to apply the dropWhile operation topredicate- to use for dropWhile- Returns:
- a Stream where the dropWhile(predicate) has been applied
- Throws:
UnsupportedOperationException- if run under Java 8
-
takeWhile
Delegates a Stream::takeWhile operation to the Java platforms underlying default Stream implementation. If run under Java 8, this method will throw an UnsupportedOperationException.- Type Parameters:
T- Element type in the Stream- Parameters:
stream- to apply the takeWhile operation topredicate- to use for takeWhile- Returns:
- a Stream where the takeWhile(predicate) has been applied
- Throws:
UnsupportedOperationException- if run under Java 8
-
dropWhile
Delegates a Stream::dropWhile operation to the Java platforms underlying default Stream implementation. If run under Java 8, this method will throw an UnsupportedOperationException.- Type Parameters:
T- Element type in the Stream- Parameters:
stream- to apply the dropWhile operation topredicate- to use for dropWhile- Returns:
- a Stream where the dropWhile(predicate) has been applied
- Throws:
UnsupportedOperationException- if run under Java 8
-