| Package | Description |
|---|---|
| tech.mlsql.common.utils.collect |
| Modifier and Type | Class and Description |
|---|---|
class |
ImmutableBiMap<K,V>
An immutable
BiMap with reliable user-specified iteration order. |
| Modifier and Type | Method and Description |
|---|---|
static <K,V> BiMap<K,V> |
Maps.filterEntries(BiMap<K,V> unfiltered,
Predicate<? super Map.Entry<K,V>> entryPredicate)
Returns a bimap containing the mappings in
unfiltered that satisfy a predicate. |
static <K,V> BiMap<K,V> |
Maps.filterKeys(BiMap<K,V> unfiltered,
Predicate<? super K> keyPredicate)
Returns a bimap containing the mappings in
unfiltered whose keys satisfy a predicate. |
static <K,V> BiMap<K,V> |
Maps.filterValues(BiMap<K,V> unfiltered,
Predicate<? super V> valuePredicate)
Returns a bimap containing the mappings in
unfiltered whose values satisfy a
predicate. |
BiMap<V,K> |
BiMap.inverse()
Returns the inverse view of this bimap, which maps each of this bimap's
values to its associated key.
|
static <K,V> BiMap<K,V> |
Maps.synchronizedBiMap(BiMap<K,V> bimap)
Returns a synchronized (thread-safe) bimap backed by the specified bimap.
|
static <K,V> BiMap<K,V> |
Maps.unmodifiableBiMap(BiMap<? extends K,? extends V> bimap)
Returns an unmodifiable view of the specified bimap.
|
| Modifier and Type | Method and Description |
|---|---|
static <A,B> Converter<A,B> |
Maps.asConverter(BiMap<A,B> bimap)
Returns a
Converter that converts values using bimap.get(),
and whose inverse view converts values using
bimap.inverse().get() |
static <K,V> BiMap<K,V> |
Maps.filterEntries(BiMap<K,V> unfiltered,
Predicate<? super Map.Entry<K,V>> entryPredicate)
Returns a bimap containing the mappings in
unfiltered that satisfy a predicate. |
static <K,V> BiMap<K,V> |
Maps.filterKeys(BiMap<K,V> unfiltered,
Predicate<? super K> keyPredicate)
Returns a bimap containing the mappings in
unfiltered whose keys satisfy a predicate. |
static <K,V> BiMap<K,V> |
Maps.filterValues(BiMap<K,V> unfiltered,
Predicate<? super V> valuePredicate)
Returns a bimap containing the mappings in
unfiltered whose values satisfy a
predicate. |
static <K,V> BiMap<K,V> |
Maps.synchronizedBiMap(BiMap<K,V> bimap)
Returns a synchronized (thread-safe) bimap backed by the specified bimap.
|
static <K,V> BiMap<K,V> |
Maps.unmodifiableBiMap(BiMap<? extends K,? extends V> bimap)
Returns an unmodifiable view of the specified bimap.
|
Copyright © 2020. All rights reserved.