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

java.lang.Object
com.vladsch.flexmark.util.misc.BitFieldSet.SerializationProxy<E>
All Implemented Interfaces:
Serializable
Enclosing class:
BitFieldSet<E extends Enum<E>>

private static class BitFieldSet.SerializationProxy<E extends Enum<E>> extends Object implements 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:
  • Field Details

    • elementType

      private final Class<E extends 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.
    • serialVersionUID

      private static final long serialVersionUID
      See Also:
  • Constructor Details

    • SerializationProxy

      SerializationProxy(BitFieldSet<E> set)
  • Method Details

    • readResolve

      private Object readResolve()