String::lines

XMLWordPrintable

    • Type: New Feature
    • Resolution: Fixed
    • Priority: P3
    • 11
    • Affects Version/s: None
    • Component/s: core-libs
    • None
    • b15
    • generic
    • generic

        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.

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

                Created:
                Updated:
                Resolved: