public final class OperatingSystem
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static OperatingSystem |
getCurrent()
Resolves and returns the current operating system.
|
Requires.Family |
getFamily() |
boolean |
isLinux() |
boolean |
isMacOs() |
boolean |
isSolaris() |
boolean |
isWindows() |
public static OperatingSystem getCurrent()
public boolean isLinux()
true
if the current operating system is in the Linux family.public boolean isWindows()
true
if the current operating system is in the Windows family.public boolean isMacOs()
true
if the current operating system is in the Mac OS family.public boolean isSolaris()
true
if the current operating system is in the Solaris family.public Requires.Family getFamily()