Package com.google.common.collect
Class ImmutableSortedMap.SerializedForm<K,V>
- java.lang.Object
-
- com.google.common.collect.ImmutableMap.SerializedForm<K,V>
-
- com.google.common.collect.ImmutableSortedMap.SerializedForm<K,V>
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- ImmutableSortedMap<K,V>
private static class ImmutableSortedMap.SerializedForm<K,V> extends ImmutableMap.SerializedForm<K,V>
Serialized type for all ImmutableSortedMap 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.util.Comparator<? super K>
comparator
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description SerializedForm(ImmutableSortedMap<K,V> sortedMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) ImmutableSortedMap.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
-
comparator
private final java.util.Comparator<? super K> comparator
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SerializedForm
SerializedForm(ImmutableSortedMap<K,V> sortedMap)
-
-
Method Detail
-
makeBuilder
ImmutableSortedMap.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>
-
-