public class ReverseMap<K,V> extends AbstractMap<K,V>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier and Type | Method and Description |
---|---|
MapChange<K,V,ReverseMap<K,V>> |
computeChange(K key,
BiFunction<? super K,? super V,? extends V> remappingFunction) |
boolean |
containsKey(Object key) |
static <K,V> ReverseMap<K,V> |
empty() |
Set<Map.Entry<K,V>> |
entrySet() |
V |
get(Object key) |
static void |
main(String[] args) |
ReverseMap<K,V> |
putting(K key,
V value) |
ReverseMap<K,V> |
removing(K key) |
ReverseMap<K,V> |
updating(K key,
BiFunction<? super K,? super V,? extends V> fun) |
clear, clone, containsValue, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, toString, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public static <K,V> ReverseMap<K,V> empty()
public MapChange<K,V,ReverseMap<K,V>> computeChange(K key, BiFunction<? super K,? super V,? extends V> remappingFunction)
public ReverseMap<K,V> putting(K key, V value)
public ReverseMap<K,V> removing(K key)
public ReverseMap<K,V> updating(K key, BiFunction<? super K,? super V,? extends V> fun)
public boolean containsKey(Object key)
containsKey
in interface Map<K,V>
containsKey
in class AbstractMap<K,V>
public static void main(String[] args)
see also the complete user documentation .