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, emptyHashMapinstance.static <K,V> LinkedHashMap <K, V> Returns a new mutable, empty, insertion-orderedLinkedHashMapinstance.static <K extends Comparable<?>,V>
TreeMap<K, V> Returns a new mutable, emptyTreeMapinstance using the natural ordering of its elements.
-
Constructor Details
-
Maps
private Maps()
-
-
Method Details
-
newHashMap
Returns a new mutable, emptyHashMapinstance. -
newLinkedHashMap
Returns a new mutable, empty, insertion-orderedLinkedHashMapinstance. -
newTreeMap
Returns a new mutable, emptyTreeMapinstance using the natural ordering of its elements.
-