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