Skip to content

Instantly share code, notes, and snippets.

@ch8n
Created October 12, 2020 13:34
Show Gist options
  • Save ch8n/d9832a1a7016a9a0415427182d1242c2 to your computer and use it in GitHub Desktop.
Save ch8n/d9832a1a7016a9a0415427182d1242c2 to your computer and use it in GitHub Desktop.
linkedHashMap signature in kotlin
// Kotlin signature
typealias LinkedHashMap<K, V> = LinkedHashMap<K, V>
// Java signature
class LinkedHashMap<K,V>
extends HashMap<K,V>
implements Map<K,V>
// Available Constructors
Java LinkedHashMap has three constructors
- LinkedHashMap()
- LinkedHashMap(int initialCapacity)
- LinkedHashMap(int initialCapacity,float fillRatio)
- LinkedHashMap(Map<K,V> fromMap)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment