Package com.google.protobuf
Class MapField.MutabilityAwareMap<K,V>
java.lang.Object
com.google.protobuf.MapField.MutabilityAwareMap<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 classAn internal collection that checks for mutability before delegating.private static classAn internal iterator that checks for mutability before delegating.private static classAn 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, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
mutabilityOracle
-
delegate
-
-
Constructor Details
-
MutabilityAwareMap
MutabilityAwareMap(MutabilityOracle mutabilityOracle, Map<K, V> delegate)
-
-
Method Details
-
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
- Specified by:
containsKeyin interfaceMap<K,V>
-
containsValue
- Specified by:
containsValuein interfaceMap<K,V>
-
get
-
put
-
remove
-
putAll
-
clear
public void clear() -
keySet
-
values
-
entrySet
-
equals
-
hashCode
public int hashCode() -
toString
-