Enum Class Platform.Architecture
- All Implemented Interfaces:
Serializable, Comparable<Platform.Architecture>, Constable
- Enclosing class:
Platform
Describes a processor architecture 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.ArchitectureTries to find the matching architecture for a given string.static Platform.ArchitectureReturns the enum constant of this class with the specified name.static Platform.Architecture[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AARCH64
The AArch64 processor architecture -
X64
The X64 processor architecture
-
-
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 architecture for a given string.- Parameters:
value- The string to match, e.g., from system properties.- Returns:
- The matching architecture, X64 if no match was found.
-