Modifier and Type | Field and Description |
---|---|
(package private) int |
major
Major version number.
|
(package private) int |
minor
Minor version number.
|
(package private) int |
patch
Patch update number.
|
(package private) int |
revision
Revision number.
|
Constructor and Description |
---|
JavaUtils.JavaVersion(int major,
int minor,
int revision,
int patch)
Constructs an instance of Java VM version number.
|
Modifier and Type | Method and Description |
---|---|
int |
comapreTo(JavaUtils.JavaVersion version)
Compares this
JavaVersion object against another one. |
JavaSEPlatform |
toPlatform()
Return
JavaSEPlatform matching this Java SE version. |
String |
toString()
Return
String representation of Java VM version object. |
final int major
final int minor
final int revision
final int patch
public JavaUtils.JavaVersion(int major, int minor, int revision, int patch)
major
- public int comapreTo(JavaUtils.JavaVersion version)
JavaVersion
object against another one.
version
- JavaVersion
object to compare with
this
object.1
if this
value
is greater than supplied version
value.
Value -1
if this
value
is lesser than supplied version
value.
Value 0
if both this
value
and supplied version
values are equal.
public String toString()
String
representation of Java VM version object.
public JavaSEPlatform toPlatform()
JavaSEPlatform
matching this Java SE version.
JavaSEPlatform
matching this Java SE version.Copyright © 2013. All Rights Reserved.