Package com.google.common.collect
Class ImmutableMap.SerializedForm<K,V>
- java.lang.Object
-
- com.google.common.collect.ImmutableMap.SerializedForm<K,V>
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
ImmutableBiMap.SerializedForm
,ImmutableSortedMap.SerializedForm
- Enclosing class:
- ImmutableMap<K,V>
static class ImmutableMap.SerializedForm<K,V> extends java.lang.Object implements java.io.Serializable
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 Modifier and Type Field Description private java.lang.Object
keys
private static long
serialVersionUID
private static boolean
USE_LEGACY_SERIALIZATION
private java.lang.Object
values
-
Constructor Summary
Constructors Constructor Description SerializedForm(ImmutableMap<K,V> map)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) java.lang.Object
legacyReadResolve()
(package private) ImmutableMap.Builder<K,V>
makeBuilder(int size)
Returns a builder that builds the unserialized type.(package private) java.lang.Object
readResolve()
-
-
-
Field Detail
-
USE_LEGACY_SERIALIZATION
private static final boolean USE_LEGACY_SERIALIZATION
- See Also:
- Constant Field Values
-
keys
private final java.lang.Object keys
-
values
private final java.lang.Object values
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SerializedForm
SerializedForm(ImmutableMap<K,V> map)
-
-
Method Detail
-
readResolve
final java.lang.Object readResolve()
-
legacyReadResolve
final java.lang.Object legacyReadResolve()
-
makeBuilder
ImmutableMap.Builder<K,V> makeBuilder(int size)
Returns a builder that builds the unserialized type. Subclasses should override this method.
-
-