public class SystemInfo extends Object
This object provides getters which instantiate the appropriate
platform-specific implementations of OperatingSystem
(software) and HardwareAbstractionLayer (hardware).
| Constructor and Description |
|---|
SystemInfo() |
| Modifier and Type | Method and Description |
|---|---|
static PlatformEnum |
getCurrentPlatformEnum()
Getter for the field
currentPlatformEnum. |
HardwareAbstractionLayer |
getHardware()
Creates a new instance of the appropriate platform-specific
HardwareAbstractionLayer. |
OperatingSystem |
getOperatingSystem()
Creates a new instance of the appropriate platform-specific
OperatingSystem. |
public static PlatformEnum getCurrentPlatformEnum()
Getter for the field currentPlatformEnum.
public OperatingSystem getOperatingSystem()
OperatingSystem.OperatingSystem.public HardwareAbstractionLayer getHardware()
HardwareAbstractionLayer.HardwareAbstractionLayer.Copyright © 2010–2020 oshi. All rights reserved.