Creates a new instance of the appropriate platform-specific oshi.software.os.OperatingSystem. @return A new instance of oshi.software.os.OperatingSystem.
()
| 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) { |