public final class JavetOSUtils
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
IS_ANDROID
Whether the current platform is Android (Dalvik VM).
|
static boolean |
IS_ARM
Whether the current architecture is 32-bit ARM.
|
static boolean |
IS_ARM64
Whether the current architecture is 64-bit ARM (aarch64).
|
static boolean |
IS_LINUX
Whether the current platform is Linux (and not Android).
|
static boolean |
IS_MACOS
Whether the current platform is macOS (and not Android).
|
static boolean |
IS_WINDOWS
Whether the current platform is Windows (and not Android).
|
static boolean |
IS_X86
Whether the current architecture is 32-bit x86.
|
static boolean |
IS_X86_64
Whether the current architecture is 64-bit x86 (x86_64/amd64).
|
static java.lang.String |
JAVA_VM_NAME
The Java VM name string from the
java.vm.name system property. |
static java.lang.String |
LINE_SEPARATOR
The platform-specific line separator string.
|
static java.lang.String |
OS_ARCH
The OS architecture string from the
os.arch system property. |
static java.lang.String |
OS_NAME
The OS name string from the
os.name system property. |
static long |
PROCESS_ID
The current process ID.
|
static java.lang.String |
TEMP_DIRECTORY
The system temporary directory path.
|
static java.lang.String |
WORKING_DIRECTORY
The current working directory path.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
getCPUCount()
Gets the number of available CPU processors.
|
public static final java.lang.String OS_ARCH
os.arch system property.public static final java.lang.String OS_NAME
os.name system property.public static final java.lang.String JAVA_VM_NAME
java.vm.name system property.public static final boolean IS_ANDROID
public static final boolean IS_LINUX
public static final boolean IS_MACOS
public static final boolean IS_WINDOWS
public static final boolean IS_ARM
public static final boolean IS_ARM64
public static final boolean IS_X86
public static final boolean IS_X86_64
public static final long PROCESS_ID
public static final java.lang.String LINE_SEPARATOR
public static final java.lang.String TEMP_DIRECTORY
public static final java.lang.String WORKING_DIRECTORY