public enum EProcessorArchitecture extends Enum<EProcessorArchitecture>
sun.arch.data.model.| Enum Constant and Description |
|---|
ARCH_32
32 bit architecture.
|
ARCH_64
64 bit architecture.
|
UNKNOWN
Unknown architecture - could not be determined.
|
| Modifier and Type | Method and Description |
|---|---|
static EProcessorArchitecture |
forBits(int nBits)
Get the processor architecture based on the passed number of bits.
|
int |
getBits() |
int |
getBytes() |
static int |
getCurrentArchitectureBits() |
static EProcessorArchitecture |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EProcessorArchitecture[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EProcessorArchitecture UNKNOWN
public static final EProcessorArchitecture ARCH_32
public static final EProcessorArchitecture ARCH_64
public static EProcessorArchitecture[] values()
for (EProcessorArchitecture c : EProcessorArchitecture.values()) System.out.println(c);
public static EProcessorArchitecture valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic int getBits()
CGlobal.ILLEGAL_UINT for the unknown architecture.public int getBytes()
CGlobal.ILLEGAL_UINT for the unknown architecture.public static int getCurrentArchitectureBits()
CGlobal.ILLEGAL_UINT if this is undetermined.@Nonnull public static EProcessorArchitecture forBits(int nBits)
nBits - The number of bits to get the processor architecture from.UNKNOWN if no processor architecture could be determined.Copyright © 2006–2015 phloc systems. All rights reserved.