Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8204022 | 11.0.1 | Jim Laskey | P3 | Resolved | Fixed | team |
Description
String::lines instance method that returns a Stream<String> with elements composed of substrings from the original string delimited by any recognized new line character sequence.
Note: String::lines() behaviour mimics BufferedReader::lines() as it treats new line character sequences as line terminators.
Unlike String::split, String::lines provides better performance by supplying elements lazily and by fast search of new line character sequences.
Note: String::lines() behaviour mimics BufferedReader::lines() as it treats new line character sequences as line terminators.
Unlike String::split, String::lines provides better performance by supplying elements lazily and by fast search of new line character sequences.
Attachments
Issue Links
- backported by
-
JDK-8204022 String::lines
- Resolved
- csr for
-
JDK-8200425 String::lines
- Closed
- relates to
-
JDK-8225031 Consider other whitespace characters as line terminators for String.lines
- Open
-
JDK-8208164 (str) improve specification of String::lines
- Closed
-
JDK-8196005 Library support for Raw String Literals
- Resolved