Class BitFieldSet.SerializationProxy<E extends java.lang.Enum<E>>

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    BitFieldSet<E extends java.lang.Enum<E>>

    private static class BitFieldSet.SerializationProxy<E extends java.lang.Enum<E>>
    extends java.lang.Object
    implements java.io.Serializable
    This class is used to serialize all EnumSet instances, regardless of implementation type. It captures their "logical contents" and they are reconstructed using public static factories. This is necessary to ensure that the existence of a particular implementation type is an implementation detail.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private long bits
      The bit mask for elements contained in this enum set.
      private java.lang.Class<E> elementType
      The element type of this enum set.
      private static long serialVersionUID  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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

      • elementType

        private final java.lang.Class<E extends java.lang.Enum<E>> elementType
        The element type of this enum set.
      • bits

        private final long bits
        The bit mask for elements contained in this enum set.
    • Constructor Detail

      • SerializationProxy

        SerializationProxy​(BitFieldSet<E> set)
    • Method Detail

      • readResolve

        private java.lang.Object readResolve()