public final class MapUtil
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static <K,V> java.util.Map<K,V> |
map(K key,
V value,
java.lang.Object... keysValues)
Creates the HashMap of Integers
|
public static <K,V> java.util.Map<K,V> map(K key,
V value,
java.lang.Object... keysValues)
key - first key of the mapvalue - first value of the mapkeysValues - pairs of key value
Example: sMap(1, 2, 2, 4) will create {1 -> 2, 2 -> 4}Copyright © 2014 Yandex. All Rights Reserved.