| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableMap.ImmutableMapBuilder<K,V> |
| Constructor and Description |
|---|
ImmutableMap() |
| Modifier and Type | Method and Description |
|---|---|
static <K,V> ImmutableMap.ImmutableMapBuilder<K,V> |
builder() |
static <K,V> Map<K,V> |
copyOf(Map<K,V> map) |
static <K,V> Map<K,V> |
of(K key,
V value) |
static <K,V> Map<K,V> |
of(K key1,
V value1,
K key2,
V value2) |
static <K,V> Map<K,V> |
of(K key1,
V value1,
K key2,
V value2,
K key3,
V value3) |
static <K,V> Map<K,V> |
of(K key1,
V value1,
K key2,
V value2,
K key3,
V value3,
K key4,
V value4) |
static <K,V> Map<K,V> |
of(K key1,
V value1,
K key2,
V value2,
K key3,
V value3,
K key4,
V value4,
K key5,
V value5) |
public static <K,V> Map<K,V> copyOf(Map<K,V> map)
map - public static <K,V> Map<K,V> of(K key, V value)
key1 - value1 - public static <K,V> Map<K,V> of(K key1, V value1, K key2, V value2)
key1 - value1 - key2 - value2 - public static <K,V> Map<K,V> of(K key1, V value1, K key2, V value2, K key3, V value3)
key1 - value1 - key2 - value2 - key3 - value3 - public static <K,V> Map<K,V> of(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4)
key1 - value1 - key2 - value2 - key3 - value3 - key4 - value4 - public static <K,V> Map<K,V> of(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4, K key5, V value5)
key1 - value1 - key2 - value2 - key3 - value3 - key4 - value4 - key5 - value5 - public static <K,V> ImmutableMap.ImmutableMapBuilder<K,V> builder()
Copyright © 2017. All rights reserved.