- All Implemented Interfaces:
Serializable
,Comparable<PlatformEnum>
An enumeration of supported operating systems. The order of declaration matches the osType constants in the JNA
Platform class.
-
Enum Constant Summary
Enum ConstantDescriptionIBM AIXAndroidFreeBSDGNU operating systemDebian GNU/kFreeBSDA flavor of LinuxmacOSNetBSDOpenBSDSolaris (SunOS)An unspecified systemMicrosoft WindowsWindows Embedded Compact -
Method Summary
Modifier and TypeMethodDescriptiongetName()
Gets the friendly name of the platformstatic String
getName
(int osType) Gets the friendly name of the specified JNA Platform typestatic PlatformEnum
getValue
(int osType) Gets the value corresponding to the specified JNA Platform typestatic PlatformEnum
Returns the enum constant of this type with the specified name.static PlatformEnum[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
MACOS
macOS -
LINUX
A flavor of Linux -
WINDOWS
Microsoft Windows -
SOLARIS
Solaris (SunOS) -
FREEBSD
FreeBSD -
OPENBSD
OpenBSD -
WINDOWSCE
Windows Embedded Compact -
AIX
IBM AIX -
ANDROID
Android -
GNU
GNU operating system -
KFREEBSD
Debian GNU/kFreeBSD -
NETBSD
NetBSD -
UNKNOWN
An unspecified system
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getName
Gets the friendly name of the platform- Returns:
- the friendly name of the platform
-
getName
Gets the friendly name of the specified JNA Platform type- Parameters:
osType
- The constant returned from JNA'sPlatform.getOSType()
method.- Returns:
- the friendly name of the specified JNA Platform type
-
getValue
Gets the value corresponding to the specified JNA Platform type- Parameters:
osType
- The constant returned from JNA'sPlatform.getOSType()
method.- Returns:
- the value corresponding to the specified JNA Platform type
-