Class ModuleVersionNumber

  • All Implemented Interfaces:
    java.io.Externalizable, java.io.Serializable

    public class ModuleVersionNumber
    extends java.lang.Object
    implements java.io.Externalizable
    The exising Alfresco VersionNumber can only be numeric. ModuleVersionNumber allows string literals in the version number. It follows maven conventions and actually uses the ComparableVersion class from the maven code base.
    Author:
    Gethin James
    See Also:
    Serialized Form
    • Field Detail

      • delegate

        protected org.apache.maven.artifact.versioning.ComparableVersion delegate
    • Constructor Detail

      • ModuleVersionNumber

        public ModuleVersionNumber()
      • ModuleVersionNumber

        public ModuleVersionNumber​(java.lang.String versionString)
      • ModuleVersionNumber

        public ModuleVersionNumber​(org.alfresco.util.VersionNumber versionCurrent)
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • writeExternal

        public void writeExternal​(java.io.ObjectOutput out)
                           throws java.io.IOException
        Specified by:
        writeExternal in interface java.io.Externalizable
        Throws:
        java.io.IOException
      • readExternal

        public void readExternal​(java.io.ObjectInput in)
                          throws java.io.IOException,
                                 java.lang.ClassNotFoundException
        Specified by:
        readExternal in interface java.io.Externalizable
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException