public class Platform
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Platform.Architecture |
static class |
Platform.OperatingSystem |
Modifier and Type | Field and Description |
---|---|
static Platform |
LINUX_ARM
Linux on ARM
|
static Platform |
LINUX_X64
Linux on 64-bit
|
static Platform |
LINUX_X86
Linux on 32-bit
|
static Platform |
OSX_X64
OS X on 64-bit
|
static Platform |
OSX_X86
OS X on 32-bit
|
static Platform |
WINDOWS_X64
Windows on 64-bit
|
static Platform |
WINDOWS_X86
Windows on 32-bit
|
Constructor and Description |
---|
Platform(Platform.OperatingSystem operatingSystem,
Platform.Architecture architecture) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
Platform.Architecture |
getArchitecture() |
static Platform |
getCurrent()
Determines the current
Platform based on an interpretation the results of
System.getProperty("os.name") and System.getProperty("os.arch"). |
Platform.OperatingSystem |
getOperatingSystem() |
int |
hashCode() |
java.lang.String |
toString() |
public static final Platform WINDOWS_X86
public static final Platform WINDOWS_X64
public static final Platform LINUX_X86
public static final Platform LINUX_X64
public static final Platform LINUX_ARM
public static final Platform OSX_X86
public static final Platform OSX_X64
public Platform(Platform.OperatingSystem operatingSystem, Platform.Architecture architecture)
public static Platform getCurrent()
Platform
based on an interpretation the results of
System.getProperty("os.name") and System.getProperty("os.arch").Platform
.public Platform.OperatingSystem getOperatingSystem()
public Platform.Architecture getArchitecture()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object