Package me.friwi.jcefmaven
Enum EnumPlatform
- All Implemented Interfaces:
Serializable,Comparable<EnumPlatform>,java.lang.constant.Constable
Enum representing all supported operating system and architecture combinations.
Fetch the currently applying platform using
getCurrentPlatform().
Use getOs() to extract the operating system only.- Author:
- Fritz Windisch
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic EnumPlatformFetches the platform this program is running on.Method used internally to fetch the identifier used in jcefbuild.getOs()Fetch the operating system of this platformstatic EnumPlatformReturns the enum constant of this type with the specified name.static EnumPlatform[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
MACOSX_AMD64
-
MACOSX_ARM64
-
LINUX_AMD64
-
LINUX_ARM64
-
LINUX_ARM
-
WINDOWS_AMD64
-
WINDOWS_I386
-
WINDOWS_ARM64
-
-
Field Details
-
PROPERTY_OS_NAME
- See Also:
-
PROPERTY_OS_ARCH
- See Also:
-
-
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
-
getCurrentPlatform
Fetches the platform this program is running on.- Returns:
- the current platform
- Throws:
UnsupportedPlatformException- if the platform could not be determined
-
getIdentifier
Method used internally to fetch the identifier used in jcefbuild.- Returns:
- the platform identifier, a lower case string in the format of os-arch (e.g. linux-amd64)
-
getOs
Fetch the operating system of this platform- Returns:
- the os
-