com.atlassian.confluence.upgrade
Class IsNewerThan

java.lang.Object
  extended by 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).


Constructor Summary
IsNewerThan(int constraintBuildNumber)
           
IsNewerThan(String constraintBuildNumber)
           
 
Method Summary
 int getConstraintBuildNumber()
           
 boolean test(int buildNumber)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IsNewerThan

public IsNewerThan(int constraintBuildNumber)

IsNewerThan

public IsNewerThan(String constraintBuildNumber)
Method Detail

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–2015 Atlassian. All rights reserved.