@AlfrescoPublicApi public final class VersionNumber extends Object implements Comparable<VersionNumber>, Serializable
Modifier and Type | Field and Description |
---|---|
static VersionNumber |
VERSION_BIG
A convenient '999' version
|
static VersionNumber |
VERSION_ZERO
A convenient '0' version
|
Constructor and Description |
---|
VersionNumber(String version)
Constructror, expects a valid version string.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(VersionNumber obj)
Compares the passed version to this.
|
boolean |
equals(Object obj)
Equals implementation
|
int |
getPart(int index)
Helper method to the the part based on the index, if an invalid index is supplied 0 is returned.
|
int[] |
getParts()
Get the various parts of the version
|
int |
hashCode()
Hash code implementation
|
String |
toString() |
public static final VersionNumber VERSION_ZERO
public static final VersionNumber VERSION_BIG
public VersionNumber(String version)
version
- the version stringpublic int[] getParts()
public int compareTo(VersionNumber obj)
compareTo
in interface Comparable<VersionNumber>
obj
- the other version numberpublic int getPart(int index)
index
- the indexCopyright © 2005–2020 Alfresco Software. All rights reserved.