Package org.apache.commons.lang3
Class ArchUtils
- java.lang.Object
-
- org.apache.commons.lang3.ArchUtils
-
public class ArchUtils extends java.lang.ObjectProvides 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()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ProcessorgetProcessor()Gets aProcessorobject of the current JVM.static ProcessorgetProcessor(java.lang.String value)Gets aProcessorobject the given valueString.
-
-
-
Method Detail
-
getProcessor
public static Processor getProcessor()
Gets aProcessorobject of the current JVM.Important: The
"os.arch"system property returns the architecture used by the JVM not of the operating system.- Returns:
- A
Processorwhen supported, elsenull.
-
getProcessor
public static Processor getProcessor(java.lang.String value)
Gets aProcessorobject the given valueString. TheStringmust be like a value returned by the"os.arch"system property.- Parameters:
value- AStringlike a value returned by theos.archSystem Property.- Returns:
- A
Processorwhen it exists, elsenull.
-
-