Enum Class Platform.OperatingSystem
java.lang.Object
java.lang.Enum<Platform.OperatingSystem>
de.infolektuell.gradle.jextract.model.Platform.OperatingSystem
- All Implemented Interfaces:
Serializable, Comparable<Platform.OperatingSystem>, Constable
- Enclosing class:
Platform
Describes an operating system for a given platform.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic Platform.OperatingSystemTries to find the matching operating system for a given string.static Platform.OperatingSystemReturns the enum constant of this class with the specified name.static Platform.OperatingSystem[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
WINDOWS
The MS Windows operating system -
MAC
The Apple macOS operating system -
LINUX
The Linux operating system
-
-
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
-
create
Tries to find the matching operating system for a given string.- Parameters:
value- The string to match, e.g., from system properties.- Returns:
- The matching architecture, LINUX if no match was found.
-