Package com.atlassian.confluence.upgrade
Class IsNewerThan
- java.lang.Object
-
- com.atlassian.confluence.upgrade.IsNewerThan
-
- All Implemented Interfaces:
BuildNumberUpgradeConstraint
public class IsNewerThan extends Object implements BuildNumberUpgradeConstraint
A constraint that will test whether the build number configured on the constraint is newer than the build number passed totest(int)
.
-
-
Constructor Summary
Constructors Constructor Description IsNewerThan(int constraintBuildNumber)
IsNewerThan(String constraintBuildNumber)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getConstraintBuildNumber()
boolean
test(int buildNumber)
String
toString()
-
-
-
Constructor Detail
-
IsNewerThan
public IsNewerThan(int constraintBuildNumber)
-
IsNewerThan
public IsNewerThan(String constraintBuildNumber)
-
-
Method Detail
-
test
public boolean test(int buildNumber)
- Specified by:
test
in 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()
-
-