public enum ProcessorArchitecture extends Enum<ProcessorArchitecture>
Note that the memory address size might be different than the actual hardware architecture, due to the installed OS (32bit OS) or when installing a 32 bit JRE in a 64 bit OS.
Modifier and Type | Class and Description |
---|---|
static class |
ProcessorArchitecture.MemoryAddressSize
The memory address size of the processor.
|
Enum Constant and Description |
---|
AARCH64
The 64 bit ARM processor architecture.
|
AMD64
The AMD 64 bit processor architecture.
|
ARMv7
The ARM 32 bit processor architecture.
|
PPC64_LE
The little-endian mode of the 64 bit Power-PC architecture.
|
UNKNOWN
Unknown architecture, could not be determined.
|
X86
The Intel x86 processor architecture.
|
Modifier and Type | Method and Description |
---|---|
ProcessorArchitecture.MemoryAddressSize |
getAddressSize()
Gets the address size of the memory (32 bit, 64 bit).
|
List<String> |
getAlternativeNames()
Gets the alternative names for the processor architecture.
|
String |
getArchitectureName()
Gets the primary name of the processor architecture.
|
static ProcessorArchitecture.MemoryAddressSize |
getMemoryAddressSize()
Gets the MemorySize of the ProcessorArchitecture of this process.
|
static ProcessorArchitecture |
getProcessorArchitecture()
Gets the ProcessorArchitecture of the system running this process.
|
static ProcessorArchitecture |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ProcessorArchitecture[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProcessorArchitecture X86
public static final ProcessorArchitecture AMD64
public static final ProcessorArchitecture ARMv7
public static final ProcessorArchitecture AARCH64
public static final ProcessorArchitecture PPC64_LE
public static final ProcessorArchitecture UNKNOWN
public static ProcessorArchitecture[] values()
for (ProcessorArchitecture c : ProcessorArchitecture.values()) System.out.println(c);
public static ProcessorArchitecture 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 ProcessorArchitecture.MemoryAddressSize getAddressSize()
public String getArchitectureName()
public List<String> getAlternativeNames()
public static ProcessorArchitecture getProcessorArchitecture()
public static ProcessorArchitecture.MemoryAddressSize getMemoryAddressSize()
Note that the memory address size might be different than the actual hardware architecture, due to the installed OS (32bit OS) or when installing a 32 bit JRE in a 64 bit OS.
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.