public class RuntimeVersion
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
RuntimeVersion.VersionException |
Modifier and Type | Field and Description |
---|---|
static int |
MAJOR
Current runtime major version.
|
static int |
MINOR
Current runtime minor version.
|
static int |
PATCH
Current runtime patch version.
|
static java.lang.String |
RUNTIME_VERSION
Current runtime version.
|
Constructor and Description |
---|
RuntimeVersion() |
Modifier and Type | Method and Description |
---|---|
static void |
checkVersion(java.lang.String compilerVersion)
Compare major and minor version
|
public static final java.lang.String RUNTIME_VERSION
public static final int MAJOR
public static final int MINOR
public static final int PATCH
public static void checkVersion(java.lang.String compilerVersion) throws RuntimeVersion.VersionException
compilerVersion
- version to compareRuntimeVersion.VersionException
- when a difference is found