public class JEVersion extends Object implements Comparable<JEVersion>, Serializable
There is one JEVersion object per running JVM and it may be accessed using the static field JEVersion.CURRENT_VERSION.
Modifier and Type | Field and Description |
---|---|
static JEVersion |
CURRENT_VERSION
Release version.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(JEVersion comparedVersion) |
boolean |
equals(Object o) |
int |
getMajor()
Major number of the release version.
|
int |
getMinor()
Minor number of the release version.
|
String |
getNumericVersionString()
The numeric version string, without the patch tag.
|
int |
getPatch()
Patch number of the release version.
|
String |
getVersionString()
Release version, suitable for display.
|
int |
hashCode() |
String |
toString() |
public static final JEVersion CURRENT_VERSION
public JEVersion(String version)
public int getMajor()
public int getMinor()
public int getPatch()
public String getNumericVersionString()
public String getVersionString()
public int compareTo(JEVersion comparedVersion)
compareTo
in interface Comparable<JEVersion>
Copyright (c) 2002, 2015 Oracle and/or its affiliates. All rights reserved.