|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sonyericsson.hudson.plugins.gerrit.trigger.version.GerritVersionChecker
public final class GerritVersionChecker
Util class used to determine if the current Gerrit version is high enough to run a specific feature..
Nested Class Summary | |
---|---|
static class |
GerritVersionChecker.Feature
The feature version we want to compare the current Gerrit version with. |
Method Summary | |
---|---|
static GerritVersionNumber |
createVersionNumber(String version)
Creates a new VersionNumber from the response of the gerrit server. |
static boolean |
isCorrectVersion(GerritVersionChecker.Feature feature,
String serverName)
Tells us if we are running the correct version for a particular feature. |
static boolean |
isCorrectVersion(GerritVersionNumber gerritVersion,
GerritVersionChecker.Feature feature)
Tells us if we are running the correct version for a particular feature. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean isCorrectVersion(GerritVersionChecker.Feature feature, String serverName)
feature
- the feature we want to check.serverName
- the name of the Gerrit server.
public static boolean isCorrectVersion(GerritVersionNumber gerritVersion, GerritVersionChecker.Feature feature)
gerritVersion
- the version of Gerrit we are running.feature
- the feature we want to check.
public static GerritVersionNumber createVersionNumber(String version)
version
- the version as a String.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |