Package org.apache.commons.lang3.arch
Class Processor
java.lang.Object
org.apache.commons.lang3.arch.Processor
The 
Processor represents a microprocessor and defines
 some properties like architecture and type of the microprocessor.- Since:
- 3.6
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic enumTheProcessor.Archenum defines the architecture of a microprocessor.static enumTheProcessor.Typeenum defines types of a microprocessor.
- 
Constructor SummaryConstructorsConstructorDescriptionProcessor(Processor.Arch arch, Processor.Type type) Constructs aProcessorobject with the given parameters.
- 
Method SummaryModifier and TypeMethodDescriptiongetArch()Gets the processor architecture as anProcessor.Archenum.getType()Gets the processor type asProcessor.Typeenum.booleanis32Bit()Tests ifProcessoris 32 bit.booleanis64Bit()Tests ifProcessoris 64 bit.booleanTests ifProcessoris type of Aarch64.booleanisIA64()Tests ifProcessoris type of Intel Itanium.booleanisPPC()Tests ifProcessoris type of Power PC.booleanisRISCV()Tests ifProcessoris type of RISC-V.booleanisX86()Tests ifProcessoris type of x86.toString()
- 
Constructor Details- 
ProcessorConstructs aProcessorobject with the given parameters.- Parameters:
- arch- The processor architecture.
- type- The processor type.
 
 
- 
- 
Method Details- 
getArchGets the processor architecture as anProcessor.Archenum. The processor architecture defines, if the processor has a 32 or 64 bit architecture.- Returns:
- A Processor.Archenum.
 
- 
getTypeGets the processor type asProcessor.Typeenum. The processor type defines, if the processor is for example an x86 or PPA.- Returns:
- A Processor.Typeenum.
 
- 
is32BitTests ifProcessoris 32 bit.- Returns:
- true, if- Processoris- Processor.Arch.BIT_32, else- false.
 
- 
is64BitTests ifProcessoris 64 bit.- Returns:
- true, if- Processoris- Processor.Arch.BIT_64, else- false.
 
- 
isAarch64Tests ifProcessoris type of Aarch64.- Returns:
- true, if- Processoris- Processor.Type.AARCH_64, else- false.
- Since:
- 3.13.0
 
- 
isIA64Tests ifProcessoris type of Intel Itanium.- Returns:
- true. if- Processoris- Processor.Type.IA_64, else- false.
 
- 
isPPCTests ifProcessoris type of Power PC.- Returns:
- true. if- Processoris- Processor.Type.PPC, else- false.
 
- 
isRISCVTests ifProcessoris type of RISC-V.- Returns:
- true. if- Processoris- Processor.Type.RISC_V, else- false.
- Since:
- 3.14.0
 
- 
isX86Tests ifProcessoris type of x86.- Returns:
- true, if- Processoris- Processor.Type.X86, else- false.
 
- 
toString
 
-