public class JavaUtils extends Object
| Constructor and Description |
|---|
JavaUtils() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getJREMajorVersion()
Accessor for the major version number of the JRE.
|
static int |
getJREMinorVersion()
Accessor for the minor version number of the JRE.
|
static boolean |
isEqualsThan(String version)
Check if the current version is equals than the argument version.
|
static boolean |
isGreaterEqualsThan(String version)
Check if the current version is greater or equals than the argument version.
|
static boolean |
isJRE1_5OrAbove()
Accessor for whether the JRE is 1.5 (or above).
|
static boolean |
isJRE1_6OrAbove()
Accessor for whether the JRE is 1.6 (or above).
|
static boolean |
isJRE1_6OrBelow()
Accessor for whether the JRE is 1.6 or below.
|
static boolean |
isJRE1_7OrAbove()
Accessor for whether the JRE is 1.7 (or above).
|
static boolean |
useStackMapFrames() |
public static boolean isJRE1_5OrAbove()
public static boolean isJRE1_6OrAbove()
public static boolean useStackMapFrames()
public static boolean isJRE1_6OrBelow()
public static boolean isJRE1_7OrAbove()
public static int getJREMajorVersion()
public static int getJREMinorVersion()
public static boolean isGreaterEqualsThan(String version)
version - the versionpublic static boolean isEqualsThan(String version)
version - the versionCopyright © 2013. All Rights Reserved.