-
Enhancement
-
Resolution: Fixed
-
P4
-
None
-
None
-
b12
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.
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.
- csr for
-
JDK-8301293 java.util.Locale method to stream available Locales
-
- Closed
-