Package com.google.common.collect
Class ImmutableBiMap.SerializedForm<K,V>
java.lang.Object
com.google.common.collect.ImmutableMap.SerializedForm<K,V>
com.google.common.collect.ImmutableBiMap.SerializedForm<K,V>
- All Implemented Interfaces:
Serializable
- Enclosing class:
ImmutableBiMap<K,
V>
Serialized type for all ImmutableBiMap instances. It captures the logical contents and they are
reconstructed using public factory methods. This ensures that the implementation types remain
as implementation details.
Since the bimap is immutable, ImmutableBiMap doesn't require special logic for keeping the bimap and its inverse in sync during serialization, the way AbstractBiMap does.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) ImmutableBiMap.Builder
<K, V> makeBuilder
(int size) Returns a builder that builds the unserialized type.Methods inherited from class com.google.common.collect.ImmutableMap.SerializedForm
legacyReadResolve, readResolve
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
SerializedForm
SerializedForm(ImmutableBiMap<K, V> bimap)
-
-
Method Details
-
makeBuilder
Description copied from class:ImmutableMap.SerializedForm
Returns a builder that builds the unserialized type. Subclasses should override this method.- Overrides:
makeBuilder
in classImmutableMap.SerializedForm<K,
V>
-