Modifier and Type | Method and Description |
---|---|
static <K,V> HashMap<K,V> |
newHashMap()
Returns a new mutable, empty
HashMap instance. |
static <K,V> LinkedHashMap<K,V> |
newLinkedHashMap()
Returns a new mutable, empty, insertion-ordered
LinkedHashMap instance. |
static <K extends Comparable<?>,V> |
newTreeMap()
Returns a new mutable, empty
TreeMap instance using the natural ordering of its
elements. |
public static <K,V> HashMap<K,V> newHashMap()
HashMap
instance.public static <K,V> LinkedHashMap<K,V> newLinkedHashMap()
LinkedHashMap
instance.public static <K extends Comparable<?>,V> TreeMap<K,V> newTreeMap()
TreeMap
instance using the natural ordering of its
elements.Copyright © 2011–2020 Google. All rights reserved.