com.atlassian.confluence.upgrade
Class IsNewerThan

java.lang.Object
  extended by 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)
           
 
Method Summary
 int getConstraintBuildNumber()
           
 boolean test(int buildNumber)
           
 java.lang.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(java.lang.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 java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2003-2014 Atlassian. All Rights Reserved.