Package com.google.common.collect
Class MapMakerInternalMap.AbstractSerializationProxy<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>
- All Implemented Interfaces:
Serializable
,ConcurrentMap<K,
,V> Map<K,
V>
- Direct Known Subclasses:
MapMakerInternalMap.SerializationProxy
- Enclosing class:
MapMakerInternalMap<K,
V, E extends MapMakerInternalMap.InternalEntry<K, V, E>, S extends MapMakerInternalMap.Segment<K, V, E, S>>
abstract static class MapMakerInternalMap.AbstractSerializationProxy<K,V>
extends ForwardingConcurrentMap<K,V>
implements Serializable
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
FieldsModifier and TypeFieldDescription(package private) final int
(package private) ConcurrentMap
<K, V> (package private) final Equivalence
<Object> (package private) final MapMakerInternalMap.Strength
private static final long
(package private) final Equivalence
<Object> (package private) final MapMakerInternalMap.Strength
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractSerializationProxy
(MapMakerInternalMap.Strength keyStrength, MapMakerInternalMap.Strength valueStrength, Equivalence<Object> keyEquivalence, Equivalence<Object> valueEquivalence, int concurrencyLevel, ConcurrentMap<K, V> delegate) -
Method Summary
Modifier and TypeMethodDescriptionprotected ConcurrentMap
<K, V> delegate()
Returns the backing delegate instance that methods are forwarded to.(package private) void
(package private) MapMaker
(package private) void
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:
-
keyStrength
-
valueStrength
-
keyEquivalence
-
valueEquivalence
-
concurrencyLevel
final int concurrencyLevel -
delegate
-
-
Constructor Details
-
AbstractSerializationProxy
AbstractSerializationProxy(MapMakerInternalMap.Strength keyStrength, MapMakerInternalMap.Strength valueStrength, Equivalence<Object> keyEquivalence, Equivalence<Object> valueEquivalence, int concurrencyLevel, ConcurrentMap<K, V> delegate)
-
-
Method Details
-
delegate
Description copied from class:ForwardingObject
Returns the backing delegate instance that methods are forwarded to. Abstract subclasses generally override this method with an abstract method that has a more specific return type, such asForwardingSet.delegate()
. Concrete subclasses override this method to supply the instance being decorated.- Specified by:
delegate
in classForwardingConcurrentMap<K,
V>
-
writeMapTo
- Throws:
IOException
-
readMapMaker
- Throws:
IOException
-
readEntries
- Throws:
IOException
ClassNotFoundException
-