public class SystemUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static int |
getJavaMajorVersion()
Parses the "java.version" system property and returns the first digit of
the version number of the Java Runtime Environment (e.g. "1" for
"1.3.0").
|
static int |
getJavaMinorVersion()
Parses the "java.version" system property and returns the second digit of
the version number of the Java Runtime Environment (e.g. "3" for
"1.3.0").
|
static int |
getJavaUpdateVersion()
Parses the "java.version" system property and returns the update release
number of the Java Runtime Environment (e.g. "10" for "1.3.0_10").
|
static int |
hashCode(java.lang.Object... objects)
Computes the hash code of a set of objects.
|
static boolean |
isWindows()
Indicates if the current operating system is in the Windows family.
|
public static int getJavaMajorVersion()
public static int getJavaMinorVersion()
public static int getJavaUpdateVersion()
public static int hashCode(java.lang.Object... objects)
objects
- the objects to compute the hashCodepublic static boolean isWindows()
Copyright © 2005-2024 Restlet.