Package com.google.common.collect
Class ImmutableMap.SerializedForm<K,V>
java.lang.Object
com.google.common.collect.ImmutableMap.SerializedForm<K,V>
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ImmutableBiMap.SerializedForm
,ImmutableSortedMap.SerializedForm
- Enclosing class:
ImmutableMap<K,
V>
Serialized type for all ImmutableMap instances. It captures the logical contents and they are
reconstructed using public factory methods. This ensures that the implementation types remain
as implementation details.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) final Object
(package private) ImmutableMap.Builder
<K, V> makeBuilder
(int size) Returns a builder that builds the unserialized type.(package private) final Object
-
Field Details
-
USE_LEGACY_SERIALIZATION
private static final boolean USE_LEGACY_SERIALIZATION- See Also:
-
keys
-
values
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
SerializedForm
SerializedForm(ImmutableMap<K, V> map)
-
-
Method Details
-
readResolve
-
legacyReadResolve
-
makeBuilder
Returns a builder that builds the unserialized type. Subclasses should override this method.
-