public enum Architecture extends Enum<Architecture>
Platform| 限定符和类型 | 方法和说明 |
|---|---|
static Architecture |
extractFromSysProperty(String arch)
Extracts architectures based on system properties in Java and a heuristic to overcome
differences between JDK implementations.
|
static Architecture |
getCurrent()
Gets current architecture.
|
int |
getDataModel()
Gets the data model of the architecture.
|
boolean |
is(Architecture compareWith)
Heuristic for comparing two architectures.
|
String |
toString() |
static Architecture |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static Architecture[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final Architecture X86
public static final Architecture X64
public static final Architecture ARM
public static final Architecture MIPS32
public static final Architecture MIPS64
public static final Architecture ANY
public static Architecture[] values()
for (Architecture c : Architecture.values()) System.out.println(c);
public static Architecture valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public boolean is(Architecture compareWith)
compareWith - the architecture to compare withpublic int getDataModel()
public String toString()
toString 在类中 Enum<Architecture>public static Architecture getCurrent()
public static Architecture extractFromSysProperty(String arch)
arch - the architecture name to determine the architecture ofUnsupportedOperationException - if the architecture given is unknown or unsupported