RFR: 8294693: Add Collections.shuffle overload that accepts RandomGenerator interface [v2]
Tagir F. Valeev
tvaleev at openjdk.org
Sat Oct 8 15:35:14 UTC 2022
> Java 17 added RandomGenerator interface. However, existing method Collections.shuffle accepts old java.util.Random class. While since Java 19, it's possible to use Random.from(RandomGenerator) wrapper, it would be more convenient to provide direct overload shuffle(List<?> list, RandomGenerator rnd).
Tagir F. Valeev has updated the pull request incrementally with one additional commit since the last revision:
Remove Random -> ThreadLocalRandom change
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/10520/files
- new: https://git.openjdk.org/jdk/pull/10520/files/40a69fec..6fa7d942
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=10520&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=10520&range=00-01
Stats: 7 lines in 1 file changed: 5 ins; 1 del; 1 mod
Patch: https://git.openjdk.org/jdk/pull/10520.diff
Fetch: git fetch https://git.openjdk.org/jdk pull/10520/head:pull/10520
PR: https://git.openjdk.org/jdk/pull/10520
More information about the core-libs-dev
mailing list