|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.resilientedge.util.VersionInfo
Describes a versioned item and provides convienance methods for testing compatibility between versions.
Constructor Summary | |
VersionInfo()
|
Method Summary | |
boolean |
equals(java.lang.Object target)
Returns true if target is an instance of Version info, and if the major, minor, micro, and patch levels match. |
void |
fromStrings(java.lang.String major,
java.lang.String minor,
java.lang.String micro,
java.lang.String patch,
java.lang.String buildNum,
java.lang.String date)
Description of the Method |
java.lang.String |
getBuildDate()
Get the value of buildDate. |
int |
getBuildNumber()
Get the value of buildNumber. |
int |
getMajorVersion()
Get the value of majorVersion. |
int |
getMicroVersion()
Get the value of microVersion. |
int |
getMinorVersion()
Get the value of minorVersion. |
java.lang.String |
getPatchLevel()
Get the value of patchLevel. |
boolean |
greaterThan(VersionInfo targetInfo)
Returns true if this instance is greater than the target |
boolean |
lessThan(VersionInfo targetInfo)
Returns true if this instance is less than the target |
void |
setBuildDate(java.lang.String v)
Set the value of buildDate. |
void |
setBuildNumber(int v)
Set the value of buildNumber. |
void |
setMajorVersion(int v)
Set the value of majorVersion. |
void |
setMicroVersion(int v)
Set the value of microVersion. |
void |
setMinorVersion(int v)
Set the value of minorVersion. |
void |
setPatchLevel(java.lang.String v)
Set the value of patchLevel. |
java.lang.String |
toString()
Returns a string version of the instance that includes all fields in the format: |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public VersionInfo()
Method Detail |
public void setMajorVersion(int v)
v
- Value to assign to majorVersion.public void setMinorVersion(int v)
v
- Value to assign to minorVersion.public void setMicroVersion(int v)
v
- Value to assign to microVersion.public void setPatchLevel(java.lang.String v)
v
- Value to assign to patchLevel.public void setBuildNumber(int v)
v
- Value to assign to buildNumber.public void setBuildDate(java.lang.String v)
v
- Value to assign to buildDate.public int getMajorVersion()
public int getMinorVersion()
public int getMicroVersion()
public java.lang.String getPatchLevel()
public int getBuildNumber()
public java.lang.String getBuildDate()
public java.lang.String toString()
<major>.<minor>.<micro><patch> Build
<buildnum> <builddate>
toString
in class java.lang.Object
public boolean lessThan(VersionInfo targetInfo)
targetInfo
- the target version infopublic boolean greaterThan(VersionInfo targetInfo)
targetInfo
- the target version infopublic boolean equals(java.lang.Object target)
equals
in class java.lang.Object
target
- the version instance to compare to this onepublic void fromStrings(java.lang.String major, java.lang.String minor, java.lang.String micro, java.lang.String patch, java.lang.String buildNum, java.lang.String date)
major
- Description of Parameterminor
- Description of Parametermicro
- Description of Parameterpatch
- Description of ParameterbuildNum
- Description of Parameterdate
- Description of Parameter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |