Package com.google.common.collect
Class MapMakerInternalMap.SerializationProxy<K,V>
java.lang.Object
com.google.common.collect.ForwardingObject
com.google.common.collect.ForwardingMap<K,V>
com.google.common.collect.ForwardingConcurrentMap<K,V>
com.google.common.collect.MapMakerInternalMap.AbstractSerializationProxy<K,V>
com.google.common.collect.MapMakerInternalMap.SerializationProxy<K,V>
- All Implemented Interfaces:
Serializable
,ConcurrentMap<K,
,V> Map<K,
V>
- Enclosing class:
MapMakerInternalMap<K,
V, E extends MapMakerInternalMap.InternalEntry<K, V, E>, S extends MapMakerInternalMap.Segment<K, V, E, S>>
private static final class MapMakerInternalMap.SerializationProxy<K,V>
extends MapMakerInternalMap.AbstractSerializationProxy<K,V>
The actual object that gets serialized. Unfortunately, readResolve() doesn't get called when a
circular dependency is present, so the proxy must be able to behave as the map itself.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.common.collect.ForwardingMap
ForwardingMap.StandardEntrySet, ForwardingMap.StandardKeySet, ForwardingMap.StandardValues
-
Field Summary
FieldsFields inherited from class com.google.common.collect.MapMakerInternalMap.AbstractSerializationProxy
concurrencyLevel, delegate, keyEquivalence, keyStrength, valueEquivalence, valueStrength
-
Constructor Summary
ConstructorsConstructorDescriptionSerializationProxy
(MapMakerInternalMap.Strength keyStrength, MapMakerInternalMap.Strength valueStrength, Equivalence<Object> keyEquivalence, Equivalence<Object> valueEquivalence, int concurrencyLevel, ConcurrentMap<K, V> delegate) -
Method Summary
Methods inherited from class com.google.common.collect.MapMakerInternalMap.AbstractSerializationProxy
delegate, readEntries, readMapMaker, writeMapTo
Methods inherited from class com.google.common.collect.ForwardingConcurrentMap
putIfAbsent, remove, replace, replace
Methods inherited from class com.google.common.collect.ForwardingMap
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, standardClear, standardContainsKey, standardContainsValue, standardEquals, standardHashCode, standardIsEmpty, standardPutAll, standardRemove, standardToString, values
Methods inherited from class com.google.common.collect.ForwardingObject
toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.concurrent.ConcurrentMap
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, replaceAll
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
SerializationProxy
SerializationProxy(MapMakerInternalMap.Strength keyStrength, MapMakerInternalMap.Strength valueStrength, Equivalence<Object> keyEquivalence, Equivalence<Object> valueEquivalence, int concurrencyLevel, ConcurrentMap<K, V> delegate)
-
-
Method Details
-
writeObject
- Throws:
IOException
-
readObject
- Throws:
IOException
ClassNotFoundException
-
readResolve
-