ArchUtils (Apache Commons Lang 3.20.0 API)
Description: declaration: package: org.apache.commons.lang3, class: ArchUtils

# Class ArchUtils

java.lang.Object
org.apache.commons.lang3.ArchUtils

public class ArchUtils extends Object
Provides methods for identifying the architecture of the current JVM based on the `"os.arch"` system property.

Important: The `"os.arch"` system property returns the architecture used by the JVM not of the operating system.

Since:
  3.6

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ArchUtils()`
  Deprecated.
  TODO Make private in 4.0.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static Processor`
  `getProcessor()`
  Gets a `Processor` object of the current JVM.
  `static Processor`
  `getProcessor(String value)`
  Gets a `Processor` object the given value `String`.

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### ArchUtils

    @Deprecated public ArchUtils()
    Deprecated.
    TODO Make private in 4.0.
    Make private in 4.0.

- ## Method Details

  - ### getProcessor

    public static Processor getProcessor()
    Gets a `Processor` object of the current JVM.

    Important: The `"os.arch"` system property returns the architecture used by the JVM not of the operating system.

    Returns:
      A `Processor` when supported, else `null`.

  - ### getProcessor

    public static Processor getProcessor(String value)
    Gets a `Processor` object the given value `String`. The `String` must be like a value returned by the `"os.arch"` system property.
    Parameters:
      `value` - A `String` like a value returned by the `os.arch` System Property.
    Returns:
      A `Processor` when it exists, else `null`.