Package org.alfresco.repo.module
Class ModuleVersionNumber
- java.lang.Object
-
- org.alfresco.repo.module.ModuleVersionNumber
-
- All Implemented Interfaces:
java.io.Externalizable,java.io.Serializable
public class ModuleVersionNumber extends java.lang.Object implements java.io.ExternalizableThe 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 Summary
Fields Modifier and Type Field Description protected org.apache.maven.artifact.versioning.ComparableVersiondelegatestatic ModuleVersionNumberVERSION_BIGstatic ModuleVersionNumberVERSION_ZERO
-
Constructor Summary
Constructors Constructor Description ModuleVersionNumber()ModuleVersionNumber(java.lang.String versionString)ModuleVersionNumber(org.alfresco.util.VersionNumber versionCurrent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(ModuleVersionNumber installingVersion)booleanequals(java.lang.Object obj)inthashCode()voidreadExternal(java.io.ObjectInput in)java.lang.StringtoString()voidwriteExternal(java.io.ObjectOutput out)
-
-
-
Field Detail
-
VERSION_ZERO
public static final ModuleVersionNumber VERSION_ZERO
-
VERSION_BIG
public static final ModuleVersionNumber VERSION_BIG
-
delegate
protected org.apache.maven.artifact.versioning.ComparableVersion delegate
-
-
Method Detail
-
compareTo
public int compareTo(ModuleVersionNumber installingVersion)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
writeExternal
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException- Specified by:
writeExternalin interfacejava.io.Externalizable- Throws:
java.io.IOException
-
readExternal
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException- Specified by:
readExternalin interfacejava.io.Externalizable- Throws:
java.io.IOExceptionjava.lang.ClassNotFoundException
-
-