Package org.apache.commons.lang3.arch
Enum Processor.Arch
- All Implemented Interfaces:
Serializable
,Comparable<Processor.Arch>
- Enclosing class:
- Processor
The
Processor.Arch
enum defines the architecture of
a microprocessor. The architecture represents the bit value
of the microprocessor.
The following architectures are defined:
- 32-bit
- 64-bit
- Unknown
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetLabel()
Gets the label suitable for display.static Processor.Arch
Returns the enum constant of this type with the specified name.static Processor.Arch[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
BIT_32
A 32-bit processor architecture. -
BIT_64
A 64-bit processor architecture. -
UNKNOWN
An unknown-bit processor architecture.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getLabel
Gets the label suitable for display.- Returns:
- the label.
-