Created
October 12, 2020 13:24
-
-
Save ch8n/da429123261caf699a7602be831f0104 to your computer and use it in GitHub Desktop.
hashMap kotlin java kotlin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun <K, V> hashMapOf(): HashMap<K, V> = HashMap<K, V>() | |
// hashmapOf directly create HashMap object default constructor | |
// Java HashMap default constructor create HashMap with | |
// * inital capacity 16 and * LoadFactor 0.75 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment