Package com.google.api.client.util
Class Maps
java.lang.Object
com.google.api.client.util.Maps
Static utility methods pertaining to
Map
instances.
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic <K,
V> HashMap <K, V> Returns a new mutable, emptyHashMap
instance.static <K,
V> LinkedHashMap <K, V> Returns a new mutable, empty, insertion-orderedLinkedHashMap
instance.static <K extends Comparable<?>,
V>
TreeMap<K, V> Returns a new mutable, emptyTreeMap
instance using the natural ordering of its elements.
-
Constructor Details
-
Maps
private Maps()
-
-
Method Details
-
newHashMap
Returns a new mutable, emptyHashMap
instance. -
newLinkedHashMap
Returns a new mutable, empty, insertion-orderedLinkedHashMap
instance. -
newTreeMap
Returns a new mutable, emptyTreeMap
instance using the natural ordering of its elements.
-