public class JreVersion extends Object implements Comparable<JreVersion>
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(JreVersion other) |
static JreVersion |
current()
Returns the version of the current Java Runtime Environment (JRE).
|
boolean |
equals(Object other) |
int |
getBuild()
Returns the build number of this version.
|
int |
getMajor()
Returns the major version number of this version.
|
int |
getMinor()
Returns the minor version number of this version.
|
int |
getRevision()
Returns the revision number of this version.
|
int |
getUpdate()
Returns the update number of this version.
|
int |
hashCode() |
static JreVersion |
parse(String string)
Parses the given version.
|
String |
toString() |
public int compareTo(JreVersion other)
compareTo in interface Comparable<JreVersion>public static JreVersion current()
public int getBuild()
public int getMajor()
public int getMinor()
public int getRevision()
public int getUpdate()
public static JreVersion parse(String string)
IllegalArgumentException - if string is null or emptyJreVersionParseException - if the version cannot be parsed
since 1.0