public final class Version extends Object implements Serializable
Configuration.getVersion()
,
Serialized FormConstructor and Description |
---|
Version(int major,
int minor,
int micro) |
Version(int major,
int minor,
int micro,
String extraInfo,
Boolean gaeCompatible,
Date buildDate) |
Version(String stringValue) |
Version(String stringValue,
Boolean gaeCompliant,
Date buildDate) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Date |
getBuildDate() |
String |
getExtraInfo()
The arbitrary string after the micro version number without leading dot, dash or underscore,
like "RC03" in "2.4.0-RC03".
|
int |
getMajor()
The 1st version number, like 1 in "1.2.3".
|
int |
getMicro()
The 3rd version number, like 3 in "1.2.3".
|
int |
getMinor()
The 2nd version number, like 2 in "1.2.3".
|
int |
hashCode() |
int |
intValue() |
static int |
intValueFor(int major,
int minor,
int micro) |
Boolean |
isGAECompliant() |
String |
toString()
Contains the major.minor.micor numbers and the extraInfo part, not the other information.
|
public Version(String stringValue)
IllegalArgumentException
- if the version string is malformedpublic Version(String stringValue, Boolean gaeCompliant, Date buildDate)
IllegalArgumentException
- if the version string is malformedpublic Version(int major, int minor, int micro)
public static int intValueFor(int major, int minor, int micro)
public String toString()
public int getMajor()
public int getMinor()
public int getMicro()
public String getExtraInfo()
public Boolean isGAECompliant()
null
.public Date getBuildDate()
null
.public int intValue()