Package com.googlecode.cmakemavenproject
Enum OperatingSystem.Architecture
- java.lang.Object
-
- java.lang.Enum<OperatingSystem.Architecture>
-
- com.googlecode.cmakemavenproject.OperatingSystem.Architecture
-
- All Implemented Interfaces:
Serializable,Comparable<OperatingSystem.Architecture>
- Enclosing class:
- OperatingSystem
public static enum OperatingSystem.Architecture extends Enum<OperatingSystem.Architecture>
The architecture of an operating system.Naming convention based on os-maven-plugin.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ARM_32ARM, 32-bit.ARM_64ARM, 64-bit.LOONGARCH64LOONGARCH64, 64-bit.X86_32x86, 32-bit.X86_64x86, 64-bit.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OperatingSystem.Architecturedetected()Returns the architecture of the detected operating system.static OperatingSystem.ArchitecturevalueOf(String name)Returns the enum constant of this type with the specified name.static OperatingSystem.Architecture[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
X86_32
public static final OperatingSystem.Architecture X86_32
x86, 32-bit.
-
X86_64
public static final OperatingSystem.Architecture X86_64
x86, 64-bit.
-
ARM_32
public static final OperatingSystem.Architecture ARM_32
ARM, 32-bit.
-
ARM_64
public static final OperatingSystem.Architecture ARM_64
ARM, 64-bit.
-
LOONGARCH64
public static final OperatingSystem.Architecture LOONGARCH64
LOONGARCH64, 64-bit.
-
-
Method Detail
-
values
public static OperatingSystem.Architecture[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (OperatingSystem.Architecture c : OperatingSystem.Architecture.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OperatingSystem.Architecture valueOf(String name)
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
-
detected
public static OperatingSystem.Architecture detected()
Returns the architecture of the detected operating system.- Returns:
- the architecture of the detected operating system
-
-