public class MapUtils
extends Object
Utilities for working with
Map
s.
-
Method Summary
Modifier and Type |
Method |
Description |
static <K,
V> HashMap<K,V> |
asHashMap(Map<K,V> map) |
|
static <K,
V> Map<K,V> |
mapOf(K k1,
V v1) |
|
static <K,
V> Map<K,V> |
mapOf(K k1,
V v1,
K k2,
V v2) |
|
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
public static <K,
V> HashMap<K,V> asHashMap(
Map<K,V> map)
-
public static <K,
V> Map<K,V> mapOf(
K k1,
V v1)
-
public static <K,
V> Map<K,V> mapOf(
K k1,
V v1,
K k2,
V v2)