com.atlassian.confluence.upgrade
Class IsNewerThan
java.lang.Object
com.atlassian.confluence.upgrade.IsNewerThan
- All Implemented Interfaces:
- BuildNumberUpgradeConstraint
public class IsNewerThan
- extends java.lang.Object
- implements BuildNumberUpgradeConstraint
A constraint that will test whether the build number configured on the constraint is newer
than the build number passed to test(int)
.
Constructor Summary |
IsNewerThan(int constraintBuildNumber)
|
IsNewerThan(java.lang.String constraintBuildNumber)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
IsNewerThan
public IsNewerThan(int constraintBuildNumber)
IsNewerThan
public IsNewerThan(java.lang.String constraintBuildNumber)
test
public boolean test(int buildNumber)
- Specified by:
test
in interface BuildNumberUpgradeConstraint
- Parameters:
buildNumber
- the build number to test the constraint against.
- Returns:
- true if the constraint passes or false if it fails.
getConstraintBuildNumber
public int getConstraintBuildNumber()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2003-2014 Atlassian. All Rights Reserved.