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

Stream support for BreakIterator

    XMLWordPrintable

Details

    • Enhancement
    • Status: Open
    • P4
    • Resolution: Unresolved
    • None
    • tbd
    • core-libs
    • None
    • generic
    • generic

    Description

      The current BreakIterator only has the iterator operation, based on its index. It would be useful if it supports stream, such that,

      Stream<String> BreakIterator.graphemes(String);
      Stream<String> BreakIterator.words(String);
      Stream<String> BreakIterator.sentences(String);
      Stream<String> BreakIterator.lines(String);

      Would return stream of string, instead of iterating over the text with the index. This is in addition to the existing iterator operation.

      Attachments

        Issue Links

          Activity

            People

              naoto Naoto Sato
              naoto Naoto Sato
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: