Class SerialVersionUID

java.lang.Object
EDU.purdue.cs.bloat.editor.SerialVersionUID

public class SerialVersionUID extends 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

  • Constructor Details

    • SerialVersionUID

      public SerialVersionUID()
  • Method Details

    • 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