BiMap whose contents will never change, with many other important properties detailed
at ImmutableCollection.
| Modifier and Type | Class and Description |
|---|---|
| public static class | ImmutableBiMap.
A builder for creating immutable bimap instances, especially |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public static <K, V> ImmutableBiMap. | |
| public static <K, V> ImmutableBiMap. | builderWithExpectedSize(int expectedSize)
Hides com. |
| public static <K, V> ImmutableBiMap | copyOf(Map<? extends K, ? extends V>
a map)Map from which entries are drawn, must be non-nullHides com. map.
|
| public static <K, V> ImmutableBiMap | |
| pack-priv final ImmutableSet | |
| public final V | forcePut(K
the key with which the specified value is to be associated key, V the value to be associated with the specified key value)Implements com.
Deprecated
Unsupported operation.
Guaranteed to throw an exception and leave the bimap unmodified.
|
| public abstract ImmutableBiMap | inverse()
Redeclares com. |
| public static <K, V> ImmutableBiMap | |
| public static <K, V> ImmutableBiMap | of(K
the mapping's key k1, V the mapping's value v1)Hides com. |
| public static <K, V> ImmutableBiMap | of(K
the first mapping's key k1, V the first mapping's value v1, K the second mapping's key k2, V the second mapping's value v2)Hides com. |
| public static <K, V> ImmutableBiMap | of(K
the first mapping's key k1, V the first mapping's value v1, K the second mapping's key k2, V the second mapping's value v2, K the third mapping's key k3, V the third mapping's value v3)Hides com. |
| public static <K, V> ImmutableBiMap | of(K
the first mapping's key k1, V the first mapping's value v1, K the second mapping's key k2, V the second mapping's value v2, K the third mapping's key k3, V the third mapping's value v3, K the fourth mapping's key k4, V the fourth mapping's value v4)Hides com. |
| public static <K, V> ImmutableBiMap | of(K
the first mapping's key k1, V the first mapping's value v1, K the second mapping's key k2, V the second mapping's value v2, K the third mapping's key k3, V the third mapping's value v3, K the fourth mapping's key k4, V the fourth mapping's value v4, K the fifth mapping's key k5, V the fifth mapping's value v5)Hides com. |
| public static <K, V> ImmutableBiMap | of(K
the first mapping's key k1, V the first mapping's value v1, K the second mapping's key k2, V the second mapping's value v2, K the third mapping's key k3, V the third mapping's value v3, K the fourth mapping's key k4, V the fourth mapping's value v4, K the fifth mapping's key k5, V the fifth mapping's value v5, K the sixth mapping's key k6, V the sixth mapping's value v6)Hides com. |
| public static <K, V> ImmutableBiMap | of(K
the first mapping's key k1, V the first mapping's value v1, K the second mapping's key k2, V the second mapping's value v2, K the third mapping's key k3, V the third mapping's value v3, K the fourth mapping's key k4, V the fourth mapping's value v4, K the fifth mapping's key k5, V the fifth mapping's value v5, K the sixth mapping's key k6, V the sixth mapping's value v6, K the seventh mapping's key k7, V the seventh mapping's value v7)Hides com. |
| public static <K, V> ImmutableBiMap | of(K
the first mapping's key k1, V the first mapping's value v1, K the second mapping's key k2, V the second mapping's value v2, K the third mapping's key k3, V the third mapping's value v3, K the fourth mapping's key k4, V the fourth mapping's value v4, K the fifth mapping's key k5, V the fifth mapping's value v5, K the sixth mapping's key k6, V the sixth mapping's value v6, K the seventh mapping's key k7, V the seventh mapping's value v7, K the eighth mapping's key k8, V the eighth mapping's value v8)Hides com. |
| public static <K, V> ImmutableBiMap | of(K
the first mapping's key k1, V the first mapping's value v1, K the second mapping's key k2, V the second mapping's value v2, K the third mapping's key k3, V the third mapping's value v3, K the fourth mapping's key k4, V the fourth mapping's value v4, K the fifth mapping's key k5, V the fifth mapping's value v5, K the sixth mapping's key k6, V the sixth mapping's value v6, K the seventh mapping's key k7, V the seventh mapping's value v7, K the eighth mapping's key k8, V the eighth mapping's value v8, K the ninth mapping's key k9, V the ninth mapping's value v9)Hides com. |
| public static <K, V> ImmutableBiMap | of(K
the first mapping's key k1, V the first mapping's value v1, K the second mapping's key k2, V the second mapping's value v2, K the third mapping's key k3, V the third mapping's value v3, K the fourth mapping's key k4, V the fourth mapping's value v4, K the fifth mapping's key k5, V the fifth mapping's value v5, K the sixth mapping's key k6, V the sixth mapping's value v6, K the seventh mapping's key k7, V the seventh mapping's value v7, K the eighth mapping's key k8, V the eighth mapping's value v8, K the ninth mapping's key k9, V the ninth mapping's value v9, K the tenth mapping's key k10, V the tenth mapping's value v10)Hides com. |
| public static <K, V> ImmutableBiMap | ofEntries(Map.
Map.Entrys containing the keys and values from which the map is populatedHides com. |
| private void | |
| public static <T extends @Nullable Object, K, V> Collector | toImmutableBiMap(Function<? super T, ? extends K> keyFunction, Function<? super T, ? extends V> valueFunction)
Returns a |
| public static <T extends @Nullable Object, K, V> Collector | toImmutableMap(Function<? super T, ? extends K> keyFunction, Function<? super T, ? extends V> valueFunction)
Hides com.
Deprecated
Use
Not supported.
ImmutableBiMap#toImmutableBiMap.
|
| public static <T extends @Nullable Object, K, V> Collector | toImmutableMap(Function<? super T, ? extends K> keyFunction, Function<? super T, ? extends V> valueFunction, BinaryOperator<V> mergeFunction)
Hides com.
Deprecated
Not supported.
|
| public ImmutableSet | values()
Overrides com. Implements com. entrySet.
|
| pack-priv Object | writeReplace()
Overrides com. |