|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.electric.database.text.Version
public class Version
A Version is a text-parsing object for Electric's version number.
Electric's current version has the form:
If Details are omitted, then this is a full release of Electric. If Details are present, then this is an interim release. The Details can take two forms: letters (for prereleases) or numbers with a dot in front (for postrelease updates).
For example: "8.00" major=8, minor=0, detail=999 (a Release) "8.01a" major=8, minor=1, detail=1 (a Prerelease) "8.01z" major=8, minor=1, detail=26 (a Prerelease) "8.01aa" major=8, minor=1, detail=27 (a Prerelease) "8.01az" major=8, minor=1, detail=52 (a Prerelease) "8.01ba" major=8, minor=1, detail=53 (a Prerelease) "8.01" major=8, minor=1, detail=999 (a Release) "8.01.1" major=8, minor=1, detail=1001 (a PostRelease update)
Method Summary | |
---|---|
int |
compareTo(Version v)
Compares two Version objects numerically. |
boolean |
equals(java.lang.Object obj)
Compares this Version object to the specified object. |
static java.lang.String |
getApplicationInformation()
Method to return official name of Electric |
static java.lang.String |
getAuthorInformation()
Method to return author information |
static java.lang.String |
getBuildDate()
Method to return build date of main jar file |
static java.lang.String |
getCopyrightInformation()
Method to return copyright information |
int |
getDetail()
Method to return the details part of a parsed Version number. |
int |
getMajor()
Method to return the major part of a parsed Version number. |
int |
getMinor()
Method to return the minor part of a parsed Version number. |
static Version |
getVersion()
Method to return the current Electric version. |
static java.lang.String |
getVersionInformation()
Method to return version and compilation date if available |
static java.lang.String |
getWarrantyInformation()
Method to return a short description of warranty |
int |
hashCode()
Returns a hash code for this Version . |
static Version |
parseVersion(java.lang.String version)
Method to parse the specified Version number and return a Version object. |
java.lang.String |
toString()
Returns a String object representing this Version. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static java.lang.String getAuthorInformation()
public static java.lang.String getApplicationInformation()
public static java.lang.String getCopyrightInformation()
public static java.lang.String getWarrantyInformation()
public static java.lang.String getVersionInformation()
public static Version getVersion()
public static java.lang.String getBuildDate()
public int getMajor()
public int getMinor()
public int getDetail()
public int hashCode()
Version
.
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
true
if and only if the argument is not
null
and is an Version
object that
contains the same major
, minor
and details
as this Version.
equals
in class java.lang.Object
obj
- the object to compare with.
true
if the objects are the same;
false
otherwise.public int compareTo(Version v)
Version
objects numerically.
compareTo
in interface java.lang.Comparable<Version>
v
- the object to be compared.
public java.lang.String toString()
String
object representing this Version.
toString
in class java.lang.Object
public static Version parseVersion(java.lang.String version)
version
- the version of Electric.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |