public final class Maps
extends java.lang.Object
Map instances.
NOTE: this is a copy of a subset of Guava's com.google.common.collect.Maps. The
implementation must match as closely as possible to Guava's implementation.
| Modifier and Type | Method and Description |
|---|---|
static <K,V> java.util.HashMap<K,V> |
newHashMap()
Returns a new mutable, empty
HashMap instance. |
static <K,V> java.util.LinkedHashMap<K,V> |
newLinkedHashMap()
Returns a new mutable, empty, insertion-ordered
LinkedHashMap instance. |
static <K extends java.lang.Comparable<?>,V> |
newTreeMap()
Returns a new mutable, empty
TreeMap instance using the natural ordering of its
elements. |
public static <K,V> java.util.HashMap<K,V> newHashMap()
HashMap instance.public static <K,V> java.util.LinkedHashMap<K,V> newLinkedHashMap()
LinkedHashMap instance.public static <K extends java.lang.Comparable<?>,V> java.util.TreeMap<K,V> newTreeMap()
TreeMap instance using the natural ordering of its
elements.Copyright © 2011-2018 Google. All Rights Reserved.