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

Stream support for BreakIterator

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: tbd
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • CPU:
      generic
    • OS:
      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

          Activity

            People

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

              Dates

              • Created:
                Updated: