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 classPlatform.Architecturestatic classPlatform.OperatingSystem
-
Field Summary
Fields Modifier and Type Field Description static PlatformLINUX_AARCH64Linux on AARCH64static PlatformLINUX_ARMLinux on ARMstatic PlatformLINUX_X64Linux on 64-bitstatic PlatformLINUX_X86Linux on 32-bitstatic PlatformOSX_X64OS X on 64-bitstatic PlatformOSX_X86OS X on 32-bitstatic PlatformWINDOWS_X64Windows on 64-bitstatic PlatformWINDOWS_X86Windows 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 booleanequals(java.lang.Object obj)Platform.ArchitecturegetArchitecture()static PlatformgetCurrent()Determines the currentPlatformbased on an interpretation the results of System.getProperty("os.name") and System.getProperty("os.arch").Platform.OperatingSystemgetOperatingSystem()inthashCode()java.lang.StringtoString()
-
-
-
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 currentPlatformbased 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:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-