public final class OsDetector
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
OsDetector.OperatingSystemType |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getLinuxDistribution()
Gets the distribution of the Linux-based operating system that shuffleboard is running on.
|
static OsDetector.OperatingSystemType |
getOperatingSystemType()
Gets the type of the operating system.
|
static boolean |
isLinux() |
static boolean |
isMac() |
static boolean |
isUnknown() |
static boolean |
isWindows() |
public static java.lang.String getLinuxDistribution() throws java.lang.IllegalStateException
java.lang.IllegalStateException
- if the operating system is not Linux-basedpublic static OsDetector.OperatingSystemType getOperatingSystemType()
public static boolean isWindows()
public static boolean isMac()
public static boolean isLinux()
public static boolean isUnknown()