Package com.google.common.collect
Class ImmutableBiMap.SerializedForm
- java.lang.Object
-
- com.google.common.collect.ImmutableMap.SerializedForm
-
- com.google.common.collect.ImmutableBiMap.SerializedForm
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- ImmutableBiMap<K,V>
private static class ImmutableBiMap.SerializedForm extends ImmutableMap.SerializedForm
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<?,?> bimap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) java.lang.Object
readResolve()
-
Methods inherited from class com.google.common.collect.ImmutableMap.SerializedForm
createMap
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SerializedForm
SerializedForm(ImmutableBiMap<?,?> bimap)
-
-
Method Detail
-
readResolve
java.lang.Object readResolve()
- Overrides:
readResolve
in classImmutableMap.SerializedForm
-
-