MCPcopy
hub / github.com/oshi/oshi / getHardware

Method getHardware

oshi-core/src/main/java/oshi/SystemInfo.java:128–130  ·  view source on GitHub ↗

Creates a new instance of the appropriate platform-specific oshi.hardware.HardwareAbstractionLayer. @return A new instance of oshi.hardware.HardwareAbstractionLayer.

()

Source from the content-addressed store, hash-verified

126 * @return A new instance of {@link oshi.hardware.HardwareAbstractionLayer}.
127 */
128 public HardwareAbstractionLayer getHardware() {
129 return hardware.get();
130 }
131
132 private static HardwareAbstractionLayer createHardware() {
133 switch (CURRENT_PLATFORM) {

Callers 15

identifyVMMethod · 0.95
mainMethod · 0.95
mainMethod · 0.95
getComputerIdentifierMethod · 0.95
mainMethod · 0.95
setUpMethod · 0.95
testGlobalMemoryMethod · 0.95
testDisksMethod · 0.95
setUpMethod · 0.95
testSoundCardsMethod · 0.95

Calls 1

getMethod · 0.45

Tested by 14

mainMethod · 0.76
setUpMethod · 0.76
testGlobalMemoryMethod · 0.76
testDisksMethod · 0.76
setUpMethod · 0.76
testSoundCardsMethod · 0.76
testComputerSystemMethod · 0.76
testUsbDevicesMethod · 0.76
testPowerSourceMethod · 0.76
testDisplayMethod · 0.76