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