xiaozi 2016-06-04 03:52:26

HashMap 大小都是2的次方,不管你设置的大小是什么,都会 roundUpToPowerOf2

java java
Map<String, String> myMap = new HashMap<>(4);

评论

Home - Wiki
Copyright © 2011-2025 iteam. Current version is 2.142.1. UTC+08:00, 2025-04-05 04:47
浙ICP备14020137号-1 $Map of visitor$