Package com.google.protobuf
Class MapField.MutatabilityAwareMap<K,V>
java.lang.Object
com.google.protobuf.MapField.MutatabilityAwareMap<K,V>
- All Implemented Interfaces:
Map<K,
V>
An internal map that checks for mutability before delegating.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
An internal collection that checks for mutability before delegating.private static class
An internal iterator that checks for mutability before delegating.private static class
An internal set that checks for mutability before delegating. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
mutabilityOracle
-
delegate
-
-
Constructor Details
-
MutatabilityAwareMap
MutatabilityAwareMap(MutabilityOracle mutabilityOracle, Map<K, V> delegate)
-
-
Method Details
-
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
- Specified by:
containsKey
in interfaceMap<K,
V>
-
containsValue
- Specified by:
containsValue
in interfaceMap<K,
V>
-
get
-
put
-
remove
-
putAll
-
clear
public void clear() -
keySet
-
values
-
entrySet
-
equals
-
hashCode
public int hashCode() -
toString
-