@Deprecated public final class Maps extends Object
Map instances.| Modifier and Type | Method and Description |
|---|---|
static <K,V> Map<K,V> |
of(K k1,
V v1,
K k2,
V v2)
Deprecated.
Construct a
Map of two keys and corresponding values. |
static <K,V> Map<K,V> |
of(K k1,
V v1,
K k2,
V v2,
K k3,
V v3)
Deprecated.
Construct a
Map of three keys and corresponding values. |
static <K,V> Map<K,V> |
of(K k1,
V v1,
K k2,
V v2,
K k3,
V v3,
K k4,
V v4)
Deprecated.
Construct a
Map of four keys and corresponding values. |
static <K,V> Map<K,V> |
of(K k1,
V v1,
K k2,
V v2,
K k3,
V v3,
K k4,
V v4,
K k5,
V v5)
Deprecated.
Construct a
Map of five keys and corresponding values. |
public static <K,V> Map<K,V> of(K k1, V v1, K k2, V v2)
Map of two keys and corresponding values.K - the type of the key elementsV - the type of the value elementsk1 - the first keyv1 - the first valuek2 - the second keyv2 - the second valueMap containing the specified elementspublic static <K,V> Map<K,V> of(K k1, V v1, K k2, V v2, K k3, V v3)
Map of three keys and corresponding values.K - the type of the key elementsV - the type of the value elementsk1 - the first keyv1 - the first valuek2 - the second keyv2 - the second valuek3 - the third keyv3 - the third valueMap containing the specified elementspublic static <K,V> Map<K,V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4)
Map of four keys and corresponding values.K - the type of the key elementsV - the type of the value elementsk1 - the first keyv1 - the first valuek2 - the second keyv2 - the second valuek3 - the third keyv3 - the third valuek4 - the fourth keyv4 - the fourth valueMap containing the specified elementspublic static <K,V> Map<K,V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5)
Map of five keys and corresponding values.K - the type of the key elementsV - the type of the value elementsk1 - the first keyv1 - the first valuek2 - the second keyv2 - the second valuek3 - the third keyv3 - the third valuek4 - the fourth keyv4 - the fourth valuek5 - the fifth keyv5 - the fifth valueMap containing the specified elementsCopyright © 2011. All rights reserved.