RFR: 8186958: Need method to create pre-sized HashMap
David Holmes
dholmes at openjdk.java.net
Thu Mar 24 04:55:49 UTC 2022
On Wed, 23 Mar 2022 18:41:59 GMT, XenoAmess <duke at openjdk.java.net> wrote:
> 8186958: Need method to create pre-sized HashMap
src/java.base/share/classes/java/util/Collections.java line 5822:
> 5820: * @param <K> the type of keys maintained by this map
> 5821: * @param <V> the type of mapped values
> 5822: * @return initial capacity for HashMap based classes.
That isn't what is returned.
-------------
PR: https://git.openjdk.java.net/jdk/pull/7928
More information about the core-libs-dev
mailing list