Class SerialVersionUIDComputer


  • public class SerialVersionUIDComputer
    extends java.lang.Object
    Computes the SerialVersion UID value
    Author:
    George Gastaldi
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static long compute​(JavaClassSource source)
      This is not the official algorithm as defined in the JLS spec, but it is close
      • Methods inherited from class java.lang.Object

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

      • compute

        public static long compute​(JavaClassSource source)
        This is not the official algorithm as defined in the JLS spec, but it is close
        Parameters:
        source - the source of which the UUID is base
        Returns:
        the computed serialVersionUID value
        See Also:
        ObjectStreamClass.getSerialVersionUID()