public class Processor
extends java.lang.Object
Processor represents a microprocessor and defines
some properties like architecture and type of the microprocessor.| Modifier and Type | Class and Description |
|---|---|
static class |
Processor.Arch
The
Processor.Arch enum defines the architecture of
a microprocessor. |
static class |
Processor.Type
The
Processor.Type enum defines types of a microprocessor. |
| Constructor and Description |
|---|
Processor(Processor.Arch arch,
Processor.Type type)
Constructs a
Processor object with the given
parameters. |
| Modifier and Type | Method and Description |
|---|---|
Processor.Arch |
getArch()
Gets the processor architecture as an
Processor.Arch enum. |
Processor.Type |
getType()
Gets the processor type as
Processor.Type enum. |
boolean |
is32Bit()
Tests if
Processor is 32 bit. |
boolean |
is64Bit()
Tests if
Processor is 64 bit. |
boolean |
isAarch64()
Tests if
Processor is type of Aarch64. |
boolean |
isIA64()
Tests if
Processor is type of Intel Itanium. |
boolean |
isPPC()
Tests if
Processor is type of Power PC. |
boolean |
isX86()
Tests if
Processor is type of x86. |
java.lang.String |
toString() |
public Processor(Processor.Arch arch, Processor.Type type)
Processor object with the given
parameters.arch - The processor architecture.type - The processor type.public Processor.Arch getArch()
Processor.Arch enum.
The processor architecture defines, if the processor has
a 32 or 64 bit architecture.Processor.Arch enum.public Processor.Type getType()
Processor.Type enum.
The processor type defines, if the processor is for example
an x86 or PPA.Processor.Type enum.public boolean is32Bit()
Processor is 32 bit.true, if Processor is Processor.Arch.BIT_32, else false.public boolean is64Bit()
Processor is 64 bit.true, if Processor is Processor.Arch.BIT_64, else false.public boolean isAarch64()
Processor is type of Aarch64.true, if Processor is Processor.Type.X86, else false.public boolean isIA64()
Processor is type of Intel Itanium.true. if Processor is Processor.Type.IA_64, else false.public boolean isPPC()
Processor is type of Power PC.true. if Processor is Processor.Type.PPC, else false.public boolean isX86()
Processor is type of x86.true, if Processor is Processor.Type.X86, else false.public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2010 - 2023 Adobe. All Rights Reserved