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:
java.io.Serializable
- Enclosing class:
- ImmutableBiMap<K,V>
private static class ImmutableBiMap.SerializedForm<K,V> extends ImmutableMap.SerializedForm<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 Modifier and Type Field Description private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description SerializedForm(ImmutableBiMap<K,V> bimap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (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 Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SerializedForm
SerializedForm(ImmutableBiMap<K,V> bimap)
-
-
Method Detail
-
makeBuilder
ImmutableBiMap.Builder<K,V> makeBuilder(int size)
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>
-
-