K - the key typeV - the value typepublic final class ImmutableBiMap<K,V> extends ImmutableMap<K,V>
ImmutableMap.Builder<K,V>AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier and Type | Method and Description |
|---|---|
static <K,V> ImmutableBiMap<K,V> |
copyOf(BiMap<? extends K,? extends V> map) |
static <K,V> ImmutableMap<K,V> |
copyOf(Map<? extends K,? extends V> map)
Deprecated.
throws
UnsupportedOperationException |
static <K,V> ImmutableBiMap<K,V> |
empty() |
K |
getByValue(Object value)
Gets the by value.
|
static <K,V> ImmutableBiMap<K,V> |
of(BiMap<? extends K,? extends V> map) |
static <K,V> ImmutableBiMap<K,V> |
of(K k1,
V v1) |
static <K,V> ImmutableBiMap<K,V> |
of(K k1,
V v1,
K k2,
V v2) |
static <K,V> ImmutableBiMap<K,V> |
of(K k1,
V v1,
K k2,
V v2,
K k3,
V v3) |
static <K,V> ImmutableBiMap<K,V> |
of(K k1,
V v1,
K k2,
V v2,
K k3,
V v3,
K k4,
V v4) |
static <K,V> ImmutableBiMap<K,V> |
of(K k1,
V v1,
K k2,
V v2,
K k3,
V v3,
K k4,
V v4,
K k5,
V v5) |
static <K,V> ImmutableBiMap<K,V> |
of(K k1,
V v1,
K k2,
V v2,
K k3,
V v3,
K k4,
V v4,
K k5,
V v5,
K k6,
V v6) |
static <K,V> ImmutableBiMap<K,V> |
of(K k1,
V v1,
K k2,
V v2,
K k3,
V v3,
K k4,
V v4,
K k5,
V v5,
K k6,
V v6,
K k7,
V v7) |
static <K,V> ImmutableMap<K,V> |
of(Map<? extends K,? extends V> map)
Deprecated.
throws
UnsupportedOperationException |
builder, builder, clear, containsKey, containsValue, entrySet, get, getOrDefault, isEmpty, keySet, put, putAll, remove, size, valuesequals, hashCode, toStringcompute, computeIfAbsent, computeIfPresent, forEach, merge, putIfAbsent, remove, replace, replace, replaceAllpublic static <K,V> ImmutableBiMap<K,V> empty()
K - the key typeV - the value typepublic static <K,V> ImmutableBiMap<K,V> of(K k1, V v1)
K - the key typeV - the value typek - v - k1 - v1 - public static <K,V> ImmutableBiMap<K,V> of(K k1, V v1, K k2, V v2)
K - the key typeV - the value typek - v - k1 - v1 - k2 - v2 - public static <K,V> ImmutableBiMap<K,V> of(K k1, V v1, K k2, V v2, K k3, V v3)
K - the key typeV - the value typek - v - k1 - v1 - k2 - v2 - k3 - v3 - public static <K,V> ImmutableBiMap<K,V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4)
K - the key typeV - the value typek - v - k1 - v1 - k2 - v2 - k3 - v3 - k4 - v4 - public static <K,V> ImmutableBiMap<K,V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5)
K - the key typeV - the value typek - v - k1 - v1 - k2 - v2 - k3 - v3 - k4 - v4 - k5 - v5 - public static <K,V> ImmutableBiMap<K,V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6)
K - the key typeV - the value typek - v - k1 - v1 - k2 - v2 - k3 - v3 - k4 - v4 - k5 - v5 - k6 - v6 - public static <K,V> ImmutableBiMap<K,V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7)
K - the key typeV - the value typek - v - k1 - v1 - k2 - v2 - k3 - v3 - k4 - v4 - k5 - v5 - k6 - v6 - k7 - v7 - public static <K,V> ImmutableBiMap<K,V> of(BiMap<? extends K,? extends V> map)
K - the key typeV - the value typemap - the elements in this map are shared by the returned ImmutableBiMap.public static <K,V> ImmutableBiMap<K,V> copyOf(BiMap<? extends K,? extends V> map)
K - the key typeV - the value typemap - @Deprecated public static <K,V> ImmutableMap<K,V> of(Map<? extends K,? extends V> map) throws UnsupportedOperationException
UnsupportedOperationExceptionK - the key typeV - the value typemap - UnsupportedOperationException@Deprecated public static <K,V> ImmutableMap<K,V> copyOf(Map<? extends K,? extends V> map) throws UnsupportedOperationException
UnsupportedOperationExceptionK - the key typeV - the value typemap - UnsupportedOperationExceptionCopyright © 2021. All rights reserved.