public class JvmVersionUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
JAVA_VERSION_5 |
static String |
JAVA_VERSION_6 |
Constructor and Description |
---|
JvmVersionUtil() |
Modifier and Type | Method and Description |
---|---|
int |
getBuildNumber(String javaVersion) |
int |
getMajorVersion(String javaVersion) |
int |
getMinorVersion(String javaVersion) |
public static final String JAVA_VERSION_6
public static final String JAVA_VERSION_5
public int getMajorVersion(String javaVersion)
javaVersion
- the full Java version stringpublic int getMinorVersion(String javaVersion)
javaVersion
- the full Java version stringpublic int getBuildNumber(String javaVersion)
javaVersion
- the full Java version stringCopyright © 2002-2015 Atlassian. All Rights Reserved.