public enum Architecture extends java.lang.Enum<Architecture>
Created by covers1624 on 10/30/21.
| Enum Constant and Description |
|---|
AARCH64
AArch64.
|
ARM
ARMv7.
|
PPC
PowerPC.
|
UNKNOWN
Represents an Unknown Architecture.
|
X64 |
X86 |
| Modifier and Type | Method and Description |
|---|---|
static Architecture |
current()
Returns the current system's Architecture.
|
static Architecture |
parse(java.lang.String arch)
Parse an architecture string.
|
static Architecture |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Architecture[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Architecture X86
public static final Architecture X64
public static final Architecture ARM
public static final Architecture AARCH64
public static final Architecture PPC
public static final Architecture UNKNOWN
public static Architecture[] values()
for (Architecture c : Architecture.values()) System.out.println(c);
public static Architecture valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static Architecture current()
Architecture.public static Architecture parse(java.lang.String arch)
This method will support the result of System.getProperty(java.lang.String) with
the key of os.arch.
arch - The Arch to parse.Architecture. Will return UNKNOWN if the
architecture is not known.