public enum CpuArchitecture extends java.lang.Enum<CpuArchitecture>
Enum Constant and Description |
---|
ANY
Compatible with any processor type (either x86 or x64).
|
X64
x64 specific CPU type.
|
X86
x86 specific CPU type.
|
Modifier and Type | Method and Description |
---|---|
static CpuArchitecture |
getDefault()
Get the enum constant that is considered to be the default.
|
static CpuArchitecture |
getFromValue(int value)
Get the enum constant that is associated with the given numeric value.
|
int |
getValue()
Get the numeric value associated with this enum constant.
|
static CpuArchitecture |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CpuArchitecture[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CpuArchitecture ANY
This value should be used when your task can run in either 32 or 64 bit. There is no restriction on which process the task will be run on.
public static final CpuArchitecture X86
This value should be used when your task must run in a 32 bit process.
public static final CpuArchitecture X64
This value should be used when your task must run in a 64 bit process.
public static CpuArchitecture[] values()
for (CpuArchitecture c : CpuArchitecture.values()) System.out.println(c);
public static CpuArchitecture 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 int getValue()
public static CpuArchitecture getFromValue(int value)
value
- a numeric value.public static CpuArchitecture getDefault()