|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.alee.utils.system.JavaVersion
public class JavaVersion
Java version information class.
Constructor Summary | |
---|---|
JavaVersion(double major,
int update)
Constructs JavaVersion with specified major version and update number. |
|
JavaVersion(double major,
int minor,
int update)
Constructs JavaVersion with specified major version, minor version and update number. |
|
JavaVersion(java.lang.String version)
Constructs JavaVersion using the specified java version. |
Method Summary | |
---|---|
void |
applyJavaVersion(java.lang.String version)
Applies specified java version. |
int |
compareVersion(double major,
int minor,
int update)
Returns a negative integer, zero, or a positive integer if this java version is less than, equal to, or greater than the other one. |
double |
getMajorVersion()
Returns major java version. |
int |
getMinorVersion()
Returns minor java version. |
java.lang.String |
getPatch()
Returns java patch. |
int |
getUpdateNumber()
Returns java update number. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JavaVersion(double major, int update)
major
- major java versionupdate
- java update numberpublic JavaVersion(double major, int minor, int update)
major
- major java versionminor
- minor java versionupdate
- java update numberpublic JavaVersion(java.lang.String version)
version
- java version stringMethod Detail |
---|
public void applyJavaVersion(java.lang.String version)
version
- java versionpublic int compareVersion(double major, int minor, int update)
major
- major java versionminor
- minor java versionupdate
- java update number
public double getMajorVersion()
public int getMinorVersion()
public int getUpdateNumber()
public java.lang.String getPatch()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |