Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8200380

String::lines

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 11
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b15
    • CPU:
      generic
    • OS:
      generic

      Backports

        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.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  jlaskey Jim Laskey
                  Reporter:
                  jlaskey Jim Laskey
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: