public class DoubleMap<K,V> extends HashMap<K,V>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
DoubleMap() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Will clear the map and its reversed one
|
K |
getKey(V value)
Get the key of this value from the reversed map
|
Map<V,K> |
getReversed()
Get the reversed map
|
V |
put(K key,
V value)
Adding in both maps
|
V |
remove(Object key)
Remove the key from both maps
|
clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, putAll, putIfAbsent, remove, replace, replace, replaceAll, size, values
equals, hashCode, toString
public void clear()
@Nullable public K getKey(@NotNull V value)
value
- valueCopyright © 2021. All rights reserved.