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

Stream support for BreakIterator

XMLWordPrintable

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

      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.

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

              Created:
              Updated: