Package com.google.common.collect
Class Synchronized.SynchronizedMap<K,V>
java.lang.Object
com.google.common.collect.Synchronized.SynchronizedObject
com.google.common.collect.Synchronized.SynchronizedMap<K,V>
- All Implemented Interfaces:
Serializable
,Map<K,
V>
- Direct Known Subclasses:
Synchronized.SynchronizedAsMap
,Synchronized.SynchronizedBiMap
,Synchronized.SynchronizedSortedMap
- Enclosing class:
Synchronized
static class Synchronized.SynchronizedMap<K,V>
extends Synchronized.SynchronizedObject
implements Map<K,V>
-
Nested Class Summary
-
Field Summary
FieldsFields inherited from class com.google.common.collect.Synchronized.SynchronizedObject
delegate, mutex
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
computeIfAbsent
(K key, Function<? super K, ? extends V> mappingFunction) computeIfPresent
(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) boolean
containsKey
(Object key) boolean
containsValue
(Object value) delegate()
entrySet()
boolean
void
forEach
(BiConsumer<? super K, ? super V> action) getOrDefault
(Object key, V defaultValue) int
hashCode()
boolean
isEmpty()
keySet()
void
putIfAbsent
(K key, V value) boolean
boolean
void
replaceAll
(BiFunction<? super K, ? super V, ? extends V> function) int
size()
values()
Methods inherited from class com.google.common.collect.Synchronized.SynchronizedObject
toString
-
Field Details
-
keySet
-
values
-
entrySet
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
SynchronizedMap
-
-
Method Details
-
delegate
- Overrides:
delegate
in classSynchronized.SynchronizedObject
-
clear
public void clear() -
containsKey
- Specified by:
containsKey
in interfaceMap<K,
V>
-
containsValue
- Specified by:
containsValue
in interfaceMap<K,
V>
-
entrySet
-
forEach
-
get
-
getOrDefault
- Specified by:
getOrDefault
in interfaceMap<K,
V>
-
isEmpty
public boolean isEmpty() -
keySet
-
put
-
putIfAbsent
- Specified by:
putIfAbsent
in interfaceMap<K,
V>
-
replace
-
replace
-
computeIfAbsent
- Specified by:
computeIfAbsent
in interfaceMap<K,
V>
-
computeIfPresent
@CheckForNull public V computeIfPresent(K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) - Specified by:
computeIfPresent
in interfaceMap<K,
V>
-
compute
-
merge
-
putAll
-
replaceAll
- Specified by:
replaceAll
in interfaceMap<K,
V>
-
remove
-
remove
-
size
public int size() -
values
-
equals
-
hashCode
public int hashCode()
-