Class ImmutableMap.SerializedForm

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    ImmutableBiMap.SerializedForm, ImmutableSortedMap.SerializedForm
    Enclosing class:
    ImmutableMap<K,​V>

    static class ImmutableMap.SerializedForm
    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 java.lang.Object[] values  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) java.lang.Object createMap​(ImmutableMap.Builder<java.lang.Object,​java.lang.Object> builder)  
      (package private) java.lang.Object readResolve()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • keys

        private final java.lang.Object[] keys
      • values

        private final java.lang.Object[] values
    • Constructor Detail

      • SerializedForm

        SerializedForm​(ImmutableMap<?,​?> map)
    • Method Detail

      • readResolve

        java.lang.Object readResolve()
      • createMap

        java.lang.Object createMap​(ImmutableMap.Builder<java.lang.Object,​java.lang.Object> builder)