public class Version extends Object implements Comparable<Version>
| Modifier and Type | Class and Description |
|---|---|
static class |
Version.Significance |
static class |
Version.TestType |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Version o) |
int |
compareTo(Version o,
Version.Significance significance) |
Integer |
getBuild() |
int |
getMajor() |
int |
getMinor() |
int |
getTestLevel()
Returns:
1 if this is a Alpha version
2 if this is a Beta version
Integer.MAX_VALUE if this is final release |
Version.TestType |
getTestType() |
Integer |
getTestVersion() |
boolean |
isAlpha() |
boolean |
isBeta() |
boolean |
isSnapshot() |
void |
setBuild(Integer build) |
void |
setMajor(int major) |
void |
setMinor(int minor) |
void |
setSnapshot(boolean snapshot) |
void |
setTestType(String testType) |
void |
setTestType(Version.TestType testType) |
void |
setTestVersion(Integer testVersion) |
String |
toString() |
public Version(String value)
public int getMajor()
public void setMajor(int major)
public int getMinor()
public void setMinor(int minor)
public Integer getBuild()
public void setBuild(Integer build)
public Version.TestType getTestType()
public void setTestType(Version.TestType testType)
public void setTestType(String testType)
public boolean isAlpha()
public boolean isBeta()
public Integer getTestVersion()
public void setTestVersion(Integer testVersion)
public boolean isSnapshot()
public void setSnapshot(boolean snapshot)
public int getTestLevel()
Integer.MAX_VALUE if this is final releasepublic int compareTo(Version o)
compareTo in interface Comparable<Version>public int compareTo(Version o, Version.Significance significance)
Copyright © 2020 Open Foris. All rights reserved.