MCPcopy
hub / github.com/oshi/oshi / getOperatingSystem

Method getOperatingSystem

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

Creates a new instance of the appropriate platform-specific oshi.software.os.OperatingSystem. @return A new instance of oshi.software.os.OperatingSystem.

()

Source from the content-addressed store, hash-verified

95 * @return A new instance of {@link oshi.software.os.OperatingSystem}.
96 */
97 public OperatingSystem getOperatingSystem() {
98 return os.get();
99 }
100
101 private static OperatingSystem createOperatingSystem() {
102 switch (CURRENT_PLATFORM) {

Callers 15

mainMethod · 0.95
getComputerIdentifierMethod · 0.95
mainMethod · 0.95
setUpMethod · 0.95
testFileSystemMethod · 0.95
testNetworkParamsMethod · 0.95
testGetCommandLineMethod · 0.95
testGetArgumentsMethod · 0.95
testGetEnvironmentMethod · 0.95
testGetServicesMethod · 0.95

Calls 1

getMethod · 0.45

Tested by 14

mainMethod · 0.76
setUpMethod · 0.76
testFileSystemMethod · 0.76
testNetworkParamsMethod · 0.76
testGetCommandLineMethod · 0.76
testGetArgumentsMethod · 0.76
testGetEnvironmentMethod · 0.76
testGetServicesMethod · 0.76
testGetSessionsMethod · 0.76
testGetDesktopWindowsMethod · 0.76