-
Enhancement
-
Resolution: Fixed
-
P4
-
None
-
b74
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8136112 | emb-9 | Paul Sandoz | P4 | Resolved | Fixed | team |
Add two new operations to Stream and primitive specializations:
1) Stream.takeWhile(Predicate<? super T> test)
Returns a stream consisting of the longest prefix of elements of this stream
that match the given predicate
2) Stream.dropWhile(Predicate<? super T> test)
Returns a stream consisting of the remaining elements of this stream
after dropping the longest prefix of elements that match the given predicate.
1) Stream.takeWhile(Predicate<? super T> test)
Returns a stream consisting of the longest prefix of elements of this stream
that match the given predicate
2) Stream.dropWhile(Predicate<? super T> test)
Returns a stream consisting of the remaining elements of this stream
after dropping the longest prefix of elements that match the given predicate.
- backported by
-
JDK-8136112 Add Stream dropWhile and takeWhile operations
-
- Resolved
-
- relates to
-
JDK-8131140 Mark some tests from WhileOpStatefulTest.java and WhileOpTest.java as serialization hostile
-
- Closed
-