java.util.Locale method to stream available Locales

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 21
    • Affects Version/s: None
    • Component/s: core-libs
    • None

      java.util.Local.getAvailableLocales returns an array of Locales.

      A method that returns java.util.stream.Stream<Locale> would be very useful to be able to filter and select Locales.

      It could retain the Locales avoiding the necessity of a defensive copy of the Locale[].

      Or alternatively, return an un-modifiable Set and allow the caller to stream() it.

            Assignee:
            Justin Lu
            Reporter:
            Roger Riggs
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: