Package com.google.api.client.util
Class Maps
- java.lang.Object
-
- com.google.api.client.util.Maps
-
public final class Maps extends java.lang.ObjectStatic utility methods pertaining toMapinstances.NOTE: this is a copy of a subset of Guava's
Maps. The implementation must match as closely as possible to Guava's implementation.- Since:
- 1.14
-
-
Constructor Summary
Constructors Modifier Constructor Description privateMaps()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <K,V>
java.util.HashMap<K,V>newHashMap()Returns a new mutable, emptyHashMapinstance.static <K,V>
java.util.LinkedHashMap<K,V>newLinkedHashMap()Returns a new mutable, empty, insertion-orderedLinkedHashMapinstance.static <K extends java.lang.Comparable<?>,V>
java.util.TreeMap<K,V>newTreeMap()Returns a new mutable, emptyTreeMapinstance using the natural ordering of its elements.
-
-
-
Method Detail
-
newHashMap
public static <K,V> java.util.HashMap<K,V> newHashMap()
Returns a new mutable, emptyHashMapinstance.
-
newLinkedHashMap
public static <K,V> java.util.LinkedHashMap<K,V> newLinkedHashMap()
Returns a new mutable, empty, insertion-orderedLinkedHashMapinstance.
-
newTreeMap
public static <K extends java.lang.Comparable<?>,V> java.util.TreeMap<K,V> newTreeMap()
Returns a new mutable, emptyTreeMapinstance using the natural ordering of its elements.
-
-