Class SerialVersionUID


  • public class SerialVersionUID
    extends java.lang.Object

    This class computes the serial version UID of a class modeled by a ClassEditor. Otherwise, we would have to load the class in order to compute its serial version UID. That would suck.

    The algorithm for computing the serial version UID can be found in the serialization spec

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean implementsSerializable​(ClassEditor ce)
      Returns true if the class modeled by the given ClassEditor implements Serializable.
      static long serialVersionUID​(ClassEditor ce)
      Returns the serial version UID of the class modeled by the given ClassEditor.
      • Methods inherited from class java.lang.Object

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

      • SerialVersionUID

        public SerialVersionUID()
    • Method Detail

      • implementsSerializable

        public static boolean implementsSerializable​(ClassEditor ce)
        Returns true if the class modeled by the given ClassEditor implements Serializable. It checks superclasses.
      • serialVersionUID

        public static long serialVersionUID​(ClassEditor ce)
        Returns the serial version UID of the class modeled by the given ClassEditor.
        Parameters:
        ce - The class must implement Serializable