Package com.atlassian.confluence.upgrade
Class IsNewerThan
java.lang.Object
com.atlassian.confluence.upgrade.IsNewerThan
- All Implemented Interfaces:
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
ConstructorsConstructorDescriptionIsNewerThan(int constraintBuildNumber) IsNewerThan(String constraintBuildNumber) -
Method Summary
-
Constructor Details
-
IsNewerThan
public IsNewerThan(int constraintBuildNumber) -
IsNewerThan
-
-
Method Details
-
test
public boolean test(int buildNumber) - Specified by:
testin interfaceBuildNumberUpgradeConstraint- 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
-