Package dev.jeka.core.api.utils
Class JkUtilsSystem.Processor
java.lang.Object
dev.jeka.core.api.utils.JkUtilsSystem.Processor
- Enclosing class:
JkUtilsSystem
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumTheJkUtilsSystem.Processor.Archenum defines the architecture of a microprocessor.static enumTheJkUtilsSystem.Processor.Typeenum defines types of a microprocessor. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetArch()Gets the processor architecture as anJkUtilsSystem.Processor.Archenum.getType()Gets the processor type asJkUtilsSystem.Processor.Typeenum.booleanis32Bit()Tests ifJkUtilsSystem.Processoris 32 bit.booleanis64Bit()Tests ifJkUtilsSystem.Processoris 64 bit.booleanTests ifJkUtilsSystem.Processoris type of Aarch64.booleanisIA64()Tests ifJkUtilsSystem.Processoris type of Intel Itanium.booleanisPPC()Tests ifJkUtilsSystem.Processoris type of Power PC.booleanisX86()Tests ifJkUtilsSystem.Processoris type of x86.toString()
-
Field Details
-
OS_ARCH
-
-
Constructor Details
-
Processor
Constructs aJkUtilsSystem.Processorobject with the given parameters.- Parameters:
arch- The processor architecture.type- The processor type.
-
-
Method Details
-
getArch
Gets the processor architecture as anJkUtilsSystem.Processor.Archenum. The processor architecture defines, if the processor has a 32 or 64 bit architecture.- Returns:
- A
JkUtilsSystem.Processor.Archenum.
-
getType
Gets the processor type asJkUtilsSystem.Processor.Typeenum. The processor type defines, if the processor is for example an x86 or PPA.- Returns:
- A
JkUtilsSystem.Processor.Typeenum.
-
is32Bit
public boolean is32Bit()Tests ifJkUtilsSystem.Processoris 32 bit.- Returns:
true, ifJkUtilsSystem.ProcessorisJkUtilsSystem.Processor.Arch.BIT_32, elsefalse.
-
is64Bit
public boolean is64Bit()Tests ifJkUtilsSystem.Processoris 64 bit.- Returns:
true, ifJkUtilsSystem.ProcessorisJkUtilsSystem.Processor.Arch.BIT_64, elsefalse.
-
isAarch64
public boolean isAarch64()Tests ifJkUtilsSystem.Processoris type of Aarch64.- Returns:
true, ifJkUtilsSystem.ProcessorisJkUtilsSystem.Processor.Type.X86, elsefalse.- Since:
- 3.13.0
-
isIA64
public boolean isIA64()Tests ifJkUtilsSystem.Processoris type of Intel Itanium.- Returns:
true. ifJkUtilsSystem.ProcessorisJkUtilsSystem.Processor.Type.IA_64, elsefalse.
-
isPPC
public boolean isPPC()Tests ifJkUtilsSystem.Processoris type of Power PC.- Returns:
true. ifJkUtilsSystem.ProcessorisJkUtilsSystem.Processor.Type.PPC, elsefalse.
-
isX86
public boolean isX86()Tests ifJkUtilsSystem.Processoris type of x86.- Returns:
true, ifJkUtilsSystem.ProcessorisJkUtilsSystem.Processor.Type.X86, elsefalse.
-
toString
-
toMavenArch
-