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 to test(int).
IsNewerThan
public IsNewerThan(int constraintBuildNumber)
IsNewerThan
public IsNewerThan(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 String toString()
- Overrides:
toString in class Object
Copyright © 2003-2012 Atlassian. All Rights Reserved.