public class BijectiveMap<K,V> extends AbstractMap<K,V> implements Serializable
getInverse()). resulting another BijectiveMap, but with keys an values switched.AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
BijectiveMap() |
| Modifier and Type | Method and Description |
|---|---|
Set<Map.Entry<K,V>> |
entrySet() |
BijectiveMap<V,K> |
getInverse()
Returns view on this map where the keys and values have switched their function.
|
K |
inverseGet(V value)
Gets a key by value.
|
V |
put(K key,
V value) |
clear, clone, containsKey, containsValue, equals, get, hashCode, isEmpty, keySet, putAll, remove, size, toString, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic K inverseGet(V value)
public BijectiveMap<V,K> getInverse()
MMBase2 Utils 2.0.0 - 2019-08-08T23:20