public final class MapUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static <K> Map<K,Object> |
of(K k1,
Object v1)
Returns a map containing two mappings.
|
static <K> Map<K,Object> |
of(K k1,
Object v1,
K k2,
Object v2)
Returns a map containing two mappings.
|
static <K> Map<K,Object> |
of(K k1,
Object v1,
K k2,
Object v2,
K k3,
Object v3)
Returns a map containing three mappings.
|
static <K> Map<K,Object> |
of(K k1,
Object v1,
K k2,
Object v2,
K k3,
Object v3,
K k4,
Object v4)
Returns a map containing four mappings.
|
static <K> Map<K,Object> |
of(K k1,
Object v1,
K k2,
Object v2,
K k3,
Object v3,
K k4,
Object v4,
K k5,
Object v5)
Returns a map containing five mappings.
|
public static <K> Map<K,Object> of(K k1, Object v1, K k2, Object v2, K k3, Object v3, K k4, Object v4, K k5, Object v5)
K - the Map's key typek1 - the first mapping's keyv1 - the first mapping's valuek2 - the second mapping's keyv2 - the second mapping's valuek3 - the third mapping's keyv3 - the third mapping's valuek4 - the fourth mapping's keyv4 - the fourth mapping's valuek5 - the fifth mapping's keyv5 - the fifth mapping's valueMap containing the specified mappingsNullPointerException - if any key is nullpublic static <K> Map<K,Object> of(K k1, Object v1, K k2, Object v2, K k3, Object v3, K k4, Object v4)
K - the Map's key typek1 - the first mapping's keyv1 - the first mapping's valuek2 - the second mapping's keyv2 - the second mapping's valuek3 - the third mapping's keyv3 - the third mapping's valuek4 - the fourth mapping's keyv4 - the fourth mapping's valueMap containing the specified mappingsNullPointerException - if any key is nullpublic static <K> Map<K,Object> of(K k1, Object v1, K k2, Object v2, K k3, Object v3)
K - the Map's key typek1 - the first mapping's keyv1 - the first mapping's valuek2 - the second mapping's keyv2 - the second mapping's valuek3 - the third mapping's keyv3 - the third mapping's valueMap containing the specified mappingsNullPointerException - if any key is nullpublic static <K> Map<K,Object> of(K k1, Object v1, K k2, Object v2)
K - the Map's key typek1 - the first mapping's keyv1 - the first mapping's valuek2 - the second mapping's keyv2 - the second mapping's valueMap containing the specified mappingsNullPointerException - if any key is nullpublic static <K> Map<K,Object> of(K k1, Object v1)
K - the Map's key typek1 - the first mapping's keyv1 - the first mapping's valueMap containing the specified mappingsNullPointerException - if any key is nullCopyright © 2020. All rights reserved.