<i18n dev> RFR: 8282319: java.util.Locale method to stream available Locales [v3]

Justin Lu jlu at openjdk.org
Fri Feb 24 18:51:44 UTC 2023


> This PR adds a new method to java.util.Locale which returns Stream<Locale>
> 
> The contents of the Stream are composed of the same underlying elements as Locale.getAvailableLocales().
> 
> This method allows streaming of the Locale array without creating a defensive copy.

Justin Lu has updated the pull request incrementally with one additional commit since the last revision:

  Description return no longer needed with {@return ...

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/12269/files
  - new: https://git.openjdk.org/jdk/pull/12269/files/b2c08e1c..b4d0ceff

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=12269&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=12269&range=01-02

  Stats: 1 line in 1 file changed: 0 ins; 1 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/12269.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/12269/head:pull/12269

PR: https://git.openjdk.org/jdk/pull/12269


More information about the i18n-dev mailing list