Enum Class Platform
- All Implemented Interfaces:
Serializable, Comparable<Platform>, Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIdentifies a FreeBSD ARM 64-bit OSIdentifies a FreeBSD x86 64-bit OSIdentifies a Linux ARM 64-bit OSIdentifies a Linux x86 32-bit OSIdentifies a Linux x86 64-bit OSIdentifies a macOS ARM 64-bit OSIdentifies a macOS x86 32-bit OSIdentifies a macOS x86 64-bit OSIdentifies a OpenBSD ARM 64-bit OSIdentifies a OpenBSD x86 64-bit OSIdentifies an unsupported OSIdentifies a Windows ARM 64-bit OSIdentifies a Windows x86 32-bit OSIdentifies a Windows x86 64-bit OS -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PlatformA constant identifying the current platform. -
Method Summary
Modifier and TypeMethodDescriptionBased on the current platform, returns an operating system specific library paths that are not found on the PATH environment variable.Returns the architecture for this platform.Returns the directory name of the current platform.Returns the library extension for this platform.Returns the operating system for this platform.toString()static PlatformReturns the enum constant of this class with the specified name.static Platform[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
WIN_X86_32
Identifies a Windows x86 32-bit OS -
WIN_X86_64
Identifies a Windows x86 64-bit OS -
WIN_ARM_64
Identifies a Windows ARM 64-bit OS -
LINUX_X86_32
Identifies a Linux x86 32-bit OS -
LINUX_X86_64
Identifies a Linux x86 64-bit OS -
LINUX_ARM_64
Identifies a Linux ARM 64-bit OS -
MAC_X86_32
Identifies a macOS x86 32-bit OS -
MAC_X86_64
Identifies a macOS x86 64-bit OS -
MAC_ARM_64
Identifies a macOS ARM 64-bit OS -
FREEBSD_X86_64
Identifies a FreeBSD x86 64-bit OS -
FREEBSD_ARM_64
Identifies a FreeBSD ARM 64-bit OS -
OPENBSD_X86_64
Identifies a OpenBSD x86 64-bit OS -
OPENBSD_ARM_64
Identifies a OpenBSD ARM 64-bit OS -
UNSUPPORTED
Identifies an unsupported OS
-
-
Field Details
-
CURRENT_PLATFORM
A constant identifying the current platform.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getOperatingSystem
Returns the operating system for this platform.- Returns:
- the operating system for this platform
-
getArchitecture
Returns the architecture for this platform.- Returns:
- the architecture for this platform
-
getDirectoryName
Returns the directory name of the current platform.- Returns:
- the directory name of the current platform
-
getLibraryExtension
Returns the library extension for this platform.- Returns:
- the library extension for this platform
-
getAdditionalLibraryPaths
-
toString
-
getExecutableExtension
-