Package EDU.purdue.cs.bloat.editor
Class SerialVersionUID
- java.lang.Object
-
- EDU.purdue.cs.bloat.editor.SerialVersionUID
-
public class SerialVersionUID extends java.lang.ObjectThis 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 Summary
Constructors Constructor Description SerialVersionUID()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanimplementsSerializable(ClassEditor ce)Returnstrueif the class modeled by the givenClassEditorimplementsSerializable.static longserialVersionUID(ClassEditor ce)Returns the serial version UID of the class modeled by the givenClassEditor.
-
-
-
Method Detail
-
implementsSerializable
public static boolean implementsSerializable(ClassEditor ce)
Returnstrueif the class modeled by the givenClassEditorimplementsSerializable. It checks superclasses.
-
serialVersionUID
public static long serialVersionUID(ClassEditor ce)
Returns the serial version UID of the class modeled by the givenClassEditor.- Parameters:
ce- The class must implementSerializable
-
-