Stream support for BreakIterator

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: None
    • Component/s: 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.

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

              Created:
              Updated: