com.atlassian.confluence.upgrade
Class BuildNumber
java.lang.Object
com.atlassian.confluence.upgrade.BuildNumber
- All Implemented Interfaces:
- java.lang.Comparable<BuildNumber>
- Direct Known Subclasses:
- BuildAndVersionNumber
public class BuildNumber
- extends java.lang.Object
- implements java.lang.Comparable<BuildNumber>
Constructor Summary |
BuildNumber(java.lang.Integer buildNumber)
Builds a build number. |
BuildNumber(java.lang.String buildNumber)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
buildNumber
protected final java.lang.String buildNumber
BuildNumber
public BuildNumber(java.lang.String buildNumber)
BuildNumber
public BuildNumber(java.lang.Integer buildNumber)
- Builds a build number.
- Parameters:
buildNumber
- the build number or null
hasSameMajorVersion
public boolean hasSameMajorVersion(BuildNumber other)
- Deprecated. since 5.2, we allow cross-version export, with limitations.
- Tells whether the other build number has the same major version.
- See Also:
UpgradeManager#getExportBuildNumber(boolean)}
and {@link UpgradeManager#getOldestSpaceImportAllowed()}
getPrefix
public int getPrefix()
- Deprecated. since 5.2, we allow cross-version export, with limitations.
- See Also:
UpgradeManager#getExportBuildNumber(boolean)}
and {@link UpgradeManager#getOldestSpaceImportAllowed()}
compareTo
public int compareTo(BuildNumber that)
- Specified by:
compareTo
in interface java.lang.Comparable<BuildNumber>
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
Copyright © 2003-2013 Atlassian. All Rights Reserved.