Class Platform
- java.lang.Object
-
- com.inductiveautomation.ignition.common.util.Platform
-
public class Platform extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Platform.Architecture
static class
Platform.OperatingSystem
-
Field Summary
Fields Modifier and Type Field Description static Platform
LINUX_AARCH64
Linux on AARCH64static Platform
LINUX_ARM
Linux on ARMstatic Platform
LINUX_X64
Linux on 64-bitstatic Platform
LINUX_X86
Linux on 32-bitstatic Platform
OSX_X64
OS X on 64-bitstatic Platform
OSX_X86
OS X on 32-bitstatic Platform
WINDOWS_X64
Windows on 64-bitstatic Platform
WINDOWS_X86
Windows on 32-bit
-
Constructor Summary
Constructors Constructor Description Platform(Platform.OperatingSystem operatingSystem, Platform.Architecture architecture)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
Platform.Architecture
getArchitecture()
static Platform
getCurrent()
Determines the currentPlatform
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()
-
-
-
Field Detail
-
WINDOWS_X86
public static final Platform WINDOWS_X86
Windows on 32-bit
-
WINDOWS_X64
public static final Platform WINDOWS_X64
Windows on 64-bit
-
LINUX_X86
public static final Platform LINUX_X86
Linux on 32-bit
-
LINUX_X64
public static final Platform LINUX_X64
Linux on 64-bit
-
LINUX_ARM
public static final Platform LINUX_ARM
Linux on ARM
-
LINUX_AARCH64
public static final Platform LINUX_AARCH64
Linux on AARCH64
-
OSX_X86
public static final Platform OSX_X86
OS X on 32-bit
-
OSX_X64
public static final Platform OSX_X64
OS X on 64-bit
-
-
Constructor Detail
-
Platform
public Platform(Platform.OperatingSystem operatingSystem, Platform.Architecture architecture)
-
-
Method Detail
-
getCurrent
public static Platform getCurrent()
Determines the currentPlatform
based on an interpretation the results of System.getProperty("os.name") and System.getProperty("os.arch").- Returns:
- The current
Platform
.
-
getOperatingSystem
public Platform.OperatingSystem getOperatingSystem()
-
getArchitecture
public Platform.Architecture getArchitecture()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-